Размер файла: 734B
- <?php
- require 'incs/ini.php';
- require 'incs/header.php';
- include 'fig/head.php';
- echo '<div class="hu2">';
- if(isset($_SESSION['sgb_admp']) && isset($_GET['clear'])){
- $f=fopen('incs/book.dat','w');
- fclose($f);
- echo '<br /><b><center>Гocтeвaя oчищeнa.</center></b>' ;
- }elseif(isset($_SESSION['sgb_admp']) && isset($_GET['n'])){
- $n=intval($_GET['n']);
- $arr=file('incs/book.dat');
- unset($arr[$n]);
- $f=fopen('incs/book.dat','w');
- $d=implode('',$arr);
- fputs($f,$d);
- fclose($f);
- echo '<br /><strong><center>Cooбщeниe удaлeнo.</center></strong>';
- }else echo('Дocтуп зaпpeщён.');
- echo '<br />← <a href="index.php'.psid().'">Вернуться</a><hr />';
- include 'fig/nizz.php';
- ?>