From 823817728e781e96a0ead4bc603f8501276067a9 Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Wed, 30 Sep 2020 16:00:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B4=D0=B8=D0=BE=D1=82=D1=81=D0=BA?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=BD=D0=B5=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0?= =?UTF-8?q?=D1=8E=D1=89=D0=B0=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=BA=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c_haos.php | 8 +++++--- c_haos_in.php | 5 ++++- c_park.php | 5 ++++- clan_castle.php | 5 ++++- library.php | 5 ++++- 5 files changed, 21 insertions(+), 7 deletions(-) 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";