From 1461ce96dec879417a63b140b8de27d30477ed0e Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Wed, 30 Sep 2020 17:20:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=AF=D0=B2=D0=BD=D1=8B=D0=B9=20=D0=B2=D1=8B?= =?UTF-8?q?=D1=85=D0=BE=D0=B4=20=D0=BF=D1=80=D0=B8=20=D0=BE=D1=82=D1=81?= =?UTF-8?q?=D1=82=D1=83=D1=82=D1=81=D1=82=D0=B2=D0=B8=D0=B8=20=D1=81=D0=B5?= =?UTF-8?q?=D1=81=D1=81=D0=B8=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.php | 1 + repair.php | 1 + tower.php | 1 + towerin.php | 1 + 4 files changed, 4 insertions(+) diff --git a/main.php b/main.php index afab028..647886f 100644 --- a/main.php +++ b/main.php @@ -8,6 +8,7 @@ if ($get === 'exit') { } if (empty($_SESSION['uid'])) { header("Location: index.php"); + exit; } require_once 'functions.php'; diff --git a/repair.php b/repair.php index 48878e9..06645b8 100644 --- a/repair.php +++ b/repair.php @@ -2,6 +2,7 @@ session_start(); if (empty($_SESSION['uid'])) { header("Location: index.php"); + exit; } require_once("functions.php"); $d = db::c()->query('SELECT SUM(`massa`) FROM `inventory` WHERE `dressed` = 0 AND `owner` = ?i', $_SESSION['uid'])->fetch_assoc(); diff --git a/tower.php b/tower.php index 50a3c56..1dbee51 100644 --- a/tower.php +++ b/tower.php @@ -2,6 +2,7 @@ session_start(); if (empty($_SESSION['uid'])) { header("Location: index.php"); + exit; } require_once "functions.php"; if ($user->room != 31) { diff --git a/towerin.php b/towerin.php index 31e9036..3801947 100644 --- a/towerin.php +++ b/towerin.php @@ -3,6 +3,7 @@ ob_start("ob_gzhandler"); session_start(); if (empty($_SESSION['uid'])) { header("Location: index.php"); + exit; } require_once "functions.php"; if ($user['in_tower'] != 1) {