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']);