Идиотская неработающая проверка.

This commit is contained in:
Igor Barkov (iwork)
2020-09-30 16:00:53 +03:00
parent 2f723e02b8
commit 823817728e
5 changed files with 21 additions and 7 deletions
+4 -1
View File
@@ -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;"));