View file fnc/down/deldown.php
<?php include"../../sys/fnc.php"; $d=filtr($_GET['d']); if($user[leval]==4 and $d!="") { $res=$db->query("select * from `down` where `id`='$d'"); $pole = $res->fetch_array(); if($db->query("delete from `down` where `id`='$d'")) { @unlink("../../".$pole[pach]); echo'<font color="red">Файл '.$pole[name].' успешно удален!</font>'; } $res->close(); }