Файл: public_html/light_exit.php
Строк: 26
<?
define('PROTECTOR', 1);
defined('index') or die('Error: restricted access');
@include_once('files/db.php');
@include_once('files/auth.php');
if(!empty($user_id)){
@mysql_query_new("UPDATE `mesto` SET `place` = 'exit',`time`='". time() ."' WHERE `usr` = '$udata[id]'");
}
if($_COOKIE['new_reg']>1){
$_new_reg = $_COOKIE['new_reg'];
}else{
$_new_reg = (time()+3600*12);
}
$_SESSION['log'] = null;
$_SESSION['pas'] = null;
setcookie("log", null, time() + 3600 * 24 * 7 );
setcookie("log", null, time() + 3600 * 24 * 7 );
setcookie("new_reg",$_new_reg, time() + 3600 * 12);
$_SESSION['message_default'] .= "<div class='baloon-inner' style='font-size: 12px;'>Вы успешно покинули игру! Враги не дремлют, а друзья ждут вас в игре! Возвращайтесь скорее...</div>";
@header("Location: /index.php?r=index&exit"); exit;
?>