Вход Регистрация
Файл: rusikanlove/rusikanlove/exit.php
Строк: 19
<?php


include_once"template/session.php";
include_once
"ini.php";

if(
$_SESSION['auth']=="1"){
 
$id $_SESSION['id'];
 
mysql_query("UPDATE user SET time='0',online='0',lastdate=CURRENT_TIMESTAMP() WHERE id='$id'");
 
mysql_query("UPDATE chat_online SET cid='0',online='0',time='0' WHERE id='$id'");
 
session_destroy();
 
header('Location: index.php');
 } else { 
session_destroy(); header('Location: index.php'); }
?>
Онлайн: 1
Реклама