Файл: tiket/delete.php
Строк: 37
<?php
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
if ($_GET['del'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `tiket_kom` WHERE `id` = '".intval($_GET['del'])."'"),0)==1) {
$post=mysql_fetch_assoc(mysql_query("SELECT * FROM `tiket_kom` WHERE `id` = '".intval($_GET['del'])."' LIMIT 1"));
mysql_query("DELETE FROM `tiket_kom` WHERE `id` = '$post[id]'");
}
if ($_GET['del_all'])
{
$post=$user['id'];
mysql_query("DELETE FROM `tiket_kom` WHERE `id_user` = '$post'");
}
if ($_GET['delete'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `tiket_kom` WHERE `id` = '".intval($_GET['delete'])."'"),0)==1) {
$post=mysql_fetch_assoc(mysql_query("SELECT * FROM `tiket_kom` WHERE `id` = '".intval($_GET['delete'])."' LIMIT 1"));
mysql_query("DELETE FROM `tiket_kom` WHERE `id` = '$post[id]'");
}
header("Location: /tiket/tiket.php?id=$post[id_list]".SID);
?>