Продолжаем хотеть нормально залогиниться.
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
session_start();
|
||||
header("Cache-Control: no-cache");
|
||||
if(!isset($_SESSION['uid'])) { echo "<script>top.window.location='index.php'</script>"; die(); }
|
||||
include('config.php');
|
||||
include('functions.php');
|
||||
include_once 'config.php';
|
||||
include_once 'functions.php';
|
||||
|
||||
mysql_query("UPDATE `online` SET `real_time` = ".time()." WHERE `id` = '".$user['id']."' LIMIT 1");
|
||||
$user = db::c()->query('SELECT * FROM `users` WHERE `id` = ?i', $_SESSION['uid'])->fetch_assoc();
|
||||
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(),$user['id']);
|
||||
|
||||
function tolink($buf) {
|
||||
$x = explode(" ", $buf);
|
||||
@@ -20,7 +21,6 @@ function tolink($buf) {
|
||||
return $newbuf;
|
||||
}
|
||||
|
||||
|
||||
if(isset($_GET['online']) && $_GET['online'] != null) {
|
||||
if($_GET['room'] && (int)$_GET['room'] < 500) { $user['room'] = (int)$_GET['room']; }
|
||||
if($_GET['chview'] == 2) {
|
||||
|
||||
Reference in New Issue
Block a user