Просмотр файла deleting.php

Размер файла: 842B
<?php
session_start();
include"set.php";
include"top.php";
if (@$_SESSION['password'] != @$pass)
{ echo 'Ошибка сессии! Пароль не верный';
exit;
}
$number=$_GET['number'];
$l1=file_get_contents('list.dat');
$l2=file_get_contents('list2.dat');
$name=explode('|||',$l1);
$file=explode('|||',$l2);
@unlink('Text/'.$file[$number].'.txt');
$newlist=str_replace("$name[$number]|||", '', $l1);
$newlist2=str_replace("$file[$number]|||", '', $l2);
unlink('list.dat');
unlink('list2.dat');
@$fl1=fopen('list.dat', 'w+');
fwrite($fl1, $newlist);
fclose($fl1);
@$fl2=fopen('list2.dat', 'w+');
fwrite($fl2, $newlist2);
fclose($fl2);
echo 'Если выше нет ошибок,файл удален удачно!<br>';
echo '<a href="mainadmin.php?password='.$pass.'">В админ-панель</a><br>';
include"bottom.php";
?>