game exit :)
This commit is contained in:
parent
1f8726eba0
commit
c6575fe94e
3
main.php
3
main.php
@ -2,8 +2,9 @@
|
|||||||
ob_start("ob_gzhandler");
|
ob_start("ob_gzhandler");
|
||||||
session_start();
|
session_start();
|
||||||
$errkom = '';
|
$errkom = '';
|
||||||
|
$get = filter_input(INPUT_SERVER, 'QUERY_STRING');
|
||||||
|
if ($get === 'exit') session_destroy();
|
||||||
if (!isset($_SESSION['uid'])) header("Location: index.php");
|
if (!isset($_SESSION['uid'])) header("Location: index.php");
|
||||||
|
|
||||||
require_once 'functions.php';
|
require_once 'functions.php';
|
||||||
$tmaz = time();
|
$tmaz = time();
|
||||||
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);
|
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
<a href="/klan.php" title="Клан" target="gameframe">Клан</a>
|
<a href="/klan.php" title="Клан" target="gameframe">Клан</a>
|
||||||
<a href="/user_abilities.php" title="Особые умения" target="gameframe">Особые умения</a>
|
<a href="/user_abilities.php" title="Особые умения" target="gameframe">Особые умения</a>
|
||||||
<a href="/forum.php" title="Форум" target="gameframe">Форум</a>
|
<a href="/forum.php" title="Форум" target="gameframe">Форум</a>
|
||||||
|
<a href="/main.php" title="Выход" target="gameframe">Выход</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user