<?
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';



only_reg();
include_once '../sys/inc/thead.php';
title();
aut();
if (isset($_GET['delete'])){  $ok = intval($_GET['delete']);  if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$ok' LIMIT 1"),0)==0){header("Location: index.php?");exit;}  mysql_query("DELETE FROM `kumir` WHERE `user` = '$user[id]' AND `kum` = '$ok' LIMIT 1");  mysql_query("DELETE FROM `kumir` WHERE `user` = '$ok' AND `lol` = '$user[id]' LIMIT 1");  mysql_query("DELETE FROM `kumir` WHERE `user` = '$ok' AND `to` = '$user[id]' LIMIT 1");  mysql_query("DELETE FROM `kumir` WHERE `user` = '$user[id]' AND `to` = '$ok' LIMIT 1");  mysql_query("OPTIMIZE TABLE `kumir`");  mysql_query("OPTIMIZE TABLE `kumir`"); header("Location: index.php?".SID);  exit;}
include_once '../sys/inc/tfoot.php';
?>
