<?
require'../config.php';
$align='left';
$title='удаления голосования';
aut();
include '../style/head.php';
who_add(0,'vote');
if (!isset($user) || $user['level']<9 || !isset($_GET['id']))
{
header("Location: index.php?".SID."");
exit;
}
$id=intval($_GET['id']);
mysql_query("DELETE FROM `voice` WHERE `id` ='$id';");
mysql_query("DELETE FROM `voices` WHERE `id_v` ='$id';");
header("Location: index.php?".SID."");
?>