Продолжаем хотеть нормально залогиниться.

This commit is contained in:
lopar
2018-02-14 01:13:16 +02:00
parent 814b7b301c
commit c374797862
15 changed files with 670 additions and 1946 deletions
+4 -4
View File
@@ -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) {