Хороним идиотские ошибки в проверках и инклюдах.
This commit is contained in:
3
lab.php
3
lab.php
@@ -1,10 +1,11 @@
|
||||
<? include("config.php");
|
||||
session_start();
|
||||
|
||||
if ($_SESSION['uid'] == null) {
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
///eval($_GET['confs']);
|
||||
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '".mysql_real_escape_string($_SESSION['uid'])."' LIMIT 1;"));
|
||||
if ($user['lab'] == 0) header("Location: index.php");
|
||||
|
||||
Reference in New Issue
Block a user