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) {