<?
include 'header/config.inc.php';
include 'header/connect.inc.php';
mysql_query("update `".prefix."users` set `mesto`='Вышел из системы', `online`='".time()."'-300 where `id` = '".$_USER['id']."';");
unset($_SESSION['id_user']);
unset($_SESSION['password']);
unset($_SESSION['login']);
unset($_SESSION['code']);
setcookie('id_user', $_USER['id'], time()-3600);
setcookie('password',$_USER['password'],time()-3600);
header('Location: index.php?'.SID);
?>