diff --git a/c_haos.php b/c_haos.php index 9d37277..73e236e 100644 --- a/c_haos.php +++ b/c_haos.php @@ -1,7 +1,9 @@ 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;")); @@ -104,7 +106,7 @@ mysql_query("UPDATE `users`,`online` SET `users`.`room` = '601',`online`.`room` = '601' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); mysql_query("UPDATE `cit_haos_status` SET room='1' WHERE id = '{$user['id']}'; "); header('location: c_haos_in.php'); - }; + } } $in_haos = mysql_fetch_array(mysql_query("SELECT * FROM `cit_haos_status` WHERE `id` = '{$user['id']}' LIMIT 1;")); ?> diff --git a/c_haos_in.php b/c_haos_in.php index 16313ac..ab681db 100644 --- a/c_haos_in.php +++ b/c_haos_in.php @@ -1,7 +1,10 @@ 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;")); diff --git a/c_park.php b/c_park.php index 3e020c3..b37db06 100644 --- a/c_park.php +++ b/c_park.php @@ -1,7 +1,10 @@ 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_park = mysql_fetch_array(mysql_query("SELECT * FROM `cit_park` WHERE `id` = '{$user['id']}' LIMIT 1;")); diff --git a/clan_castle.php b/clan_castle.php index 52116c7..3c4b53a 100644 --- a/clan_castle.php +++ b/clan_castle.php @@ -1,7 +1,10 @@ 0)) header("Location: index.php"); + if (empty($_SESSION['uid'])) { +header("Location: index.php"); +exit; +} include "config.php"; diff --git a/library.php b/library.php index e324187..3600da9 100644 --- a/library.php +++ b/library.php @@ -1,7 +1,10 @@ 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;")); include "functions.php";