Файл: test.masteram.us/lenta_del.php
Строк: 11
<?php
include 'Core.php';
if ($_GET['del'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `lenta` WHERE `id` = '".intval($_GET['del'])."'"),0)==1) {
$post=mysql_fetch_assoc(mysql_query("SELECT * FROM `lenta` WHERE `id` = '".intval($_GET['del'])."' LIMIT 1"));
mysql_query("DELETE FROM `lenta` WHERE `id` = '$post[id]'");
}
if ($_GET['del_all'])
{
$post=$user[id];
mysql_query("DELETE FROM `lenta` WHERE `id_kont` = '$post'");
}
header("Location: lenta.php".SID);
?>