View file sten/stdel.php
<? include"../template/start.php"; include"../template/log.php"; include"../template/function.php"; include"../template/func.php"; include"../template/data.php"; $idi=$_SESSION['idi']; if(!empty($_GET['del']) && ($idi == $id) || ($_GET['del']!="") && ($admin)) { if(mysql_query("delete from sten where id='$_GET[del]'")){echo'Cообщение удалено';} } ?>