Идиотская неработающая проверка.
This commit is contained in:
+4
-1
@@ -1,7 +1,10 @@
|
||||
<?php
|
||||
|
||||
session_start();
|
||||
if (!($_SESSION['uid'] >0)) header("Location: index.php");
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
include "config.php";
|
||||
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;"));
|
||||
$in_haos = mysql_fetch_array(mysql_query("SELECT * FROM `cit_haos_status` WHERE `id` = '{$user['id']}' LIMIT 1;"));
|
||||
|
||||
Reference in New Issue
Block a user