game exit :)

This commit is contained in:
lopar 2019-02-16 00:31:18 +02:00
parent 1f8726eba0
commit c6575fe94e
2 changed files with 3 additions and 1 deletions

View File

@ -2,8 +2,9 @@
ob_start("ob_gzhandler");
session_start();
$errkom = '';
$get = filter_input(INPUT_SERVER, 'QUERY_STRING');
if ($get === 'exit') session_destroy();
if (!isset($_SESSION['uid'])) header("Location: index.php");
require_once 'functions.php';
$tmaz = time();
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);

View File

@ -33,6 +33,7 @@
<a href="/klan.php" title="Клан" target="gameframe">Клан</a>
<a href="/user_abilities.php" title="Особые умения" target="gameframe">Особые умения</a>
<a href="/forum.php" title="Форум" target="gameframe">Форум</a>
<a href="/main.php" title="Выход" target="gameframe">Выход</a>
</div>
</body>
</html>