View file gb/admin.php
<?php include '../system/start.php'; //админ if($user[level]!='5'){ myheader('/gb/'); } $id=fint($_GET[id]); switch($_GET[mode]){ //удаление сообщения case 'del': mysql_query("DELETE FROM `gb` WHERE `id`='$id' LIMIT 1;"); mysql_query("OPTIMIZE TABLE `gb`;"); myheader('/gb/'); break; } include '../system/pagegen.php'; ?>