diff --git a/Admin/Mods/addTroops.php b/Admin/Mods/addTroops.php index ff81a2d0..0304c294 100644 --- a/Admin/Mods/addTroops.php +++ b/Admin/Mods/addTroops.php @@ -16,7 +16,8 @@ include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); $id = $_POST['id']; $village = $database->getVillage($id); diff --git a/Admin/Mods/cp.php b/Admin/Mods/cp.php index 54c77539..e1dc72e7 100644 --- a/Admin/Mods/cp.php +++ b/Admin/Mods/cp.php @@ -12,7 +12,8 @@ include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); $id = $_POST['id']; $admid = $_POST['admid']; diff --git a/Admin/Mods/deletemedalbyuser.php b/Admin/Mods/deletemedalbyuser.php index 82b72ed5..54b0e0ba 100644 --- a/Admin/Mods/deletemedalbyuser.php +++ b/Admin/Mods/deletemedalbyuser.php @@ -12,7 +12,8 @@ include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); diff --git a/Admin/Mods/deletemedalbyweek.php b/Admin/Mods/deletemedalbyweek.php index 76183dda..1db8e02b 100644 --- a/Admin/Mods/deletemedalbyweek.php +++ b/Admin/Mods/deletemedalbyweek.php @@ -12,7 +12,8 @@ include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); diff --git a/Admin/Mods/editUser.php b/Admin/Mods/editUser.php index a0187c64..f0e391e0 100644 --- a/Admin/Mods/editUser.php +++ b/Admin/Mods/editUser.php @@ -12,7 +12,8 @@ include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); $id = $_POST['id']; $user = $database->getUserArray($id,1); diff --git a/Admin/Mods/gold.php b/Admin/Mods/gold.php index a2656428..fb7d379d 100644 --- a/Admin/Mods/gold.php +++ b/Admin/Mods/gold.php @@ -12,7 +12,8 @@ include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); $id = $_POST['id']; $gold = $_POST['gold']; diff --git a/Admin/Mods/gold_1.php b/Admin/Mods/gold_1.php index 0f71d61a..0fec94a8 100644 --- a/Admin/Mods/gold_1.php +++ b/Admin/Mods/gold_1.php @@ -12,7 +12,8 @@ include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); $id = $_POST['id']; $admid = $_POST['admid']; diff --git a/Admin/Mods/medals.php b/Admin/Mods/medals.php index 0a2cdbad..573a0610 100644 --- a/Admin/Mods/medals.php +++ b/Admin/Mods/medals.php @@ -14,7 +14,8 @@ include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); $medalid = $_POST['medalid']; $uid = $_POST['uid']; diff --git a/Admin/Mods/renameVillage.php b/Admin/Mods/renameVillage.php index 7ff3c77b..062675c8 100644 --- a/Admin/Mods/renameVillage.php +++ b/Admin/Mods/renameVillage.php @@ -13,7 +13,8 @@ include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); $did = $_POST['did']; $name = $_POST['villagename']; diff --git a/Admin/Mods/sendMessage.php b/Admin/Mods/sendMessage.php index 82ec74cb..51c2ee90 100644 --- a/Admin/Mods/sendMessage.php +++ b/Admin/Mods/sendMessage.php @@ -11,7 +11,8 @@ include_once("../../GameEngine/Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); $uid = $_POST['uid']; $topic = $_POST['topic']; diff --git a/GameEngine/Admin/Mods/addTroops.php b/GameEngine/Admin/Mods/addTroops.php index a0db5c74..21f14b1e 100644 --- a/GameEngine/Admin/Mods/addTroops.php +++ b/GameEngine/Admin/Mods/addTroops.php @@ -10,7 +10,8 @@ ## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/addUsers.php b/GameEngine/Admin/Mods/addUsers.php index aa50db13..e5fdda85 100644 --- a/GameEngine/Admin/Mods/addUsers.php +++ b/GameEngine/Admin/Mods/addUsers.php @@ -7,7 +7,8 @@ ## Copyright: TravianZ (c) 2014. All rights reserved. ## ############################################################################ - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); include_once("../../Session.php"); include_once("../../Automation.php"); diff --git a/GameEngine/Admin/Mods/additional.php b/GameEngine/Admin/Mods/additional.php index db8f35f0..914418f8 100644 --- a/GameEngine/Admin/Mods/additional.php +++ b/GameEngine/Admin/Mods/additional.php @@ -8,9 +8,9 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - include_once("../../config.php"); - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); diff --git a/GameEngine/Admin/Mods/cp.php b/GameEngine/Admin/Mods/cp.php index 1080f9d2..8955efd0 100644 --- a/GameEngine/Admin/Mods/cp.php +++ b/GameEngine/Admin/Mods/cp.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/delallymedal.php b/GameEngine/Admin/Mods/delallymedal.php index bd90f7db..8ac886fc 100644 --- a/GameEngine/Admin/Mods/delallymedal.php +++ b/GameEngine/Admin/Mods/delallymedal.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/delallymedalbyaid.php b/GameEngine/Admin/Mods/delallymedalbyaid.php index 914e4779..7160a3d6 100644 --- a/GameEngine/Admin/Mods/delallymedalbyaid.php +++ b/GameEngine/Admin/Mods/delallymedalbyaid.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/delallymedalbyweek.php b/GameEngine/Admin/Mods/delallymedalbyweek.php index dcd99d2d..3605fc08 100644 --- a/GameEngine/Admin/Mods/delallymedalbyweek.php +++ b/GameEngine/Admin/Mods/delallymedalbyweek.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/deletemedalbyuser.php b/GameEngine/Admin/Mods/deletemedalbyuser.php index 1812c0b6..aba4f3c3 100644 --- a/GameEngine/Admin/Mods/deletemedalbyuser.php +++ b/GameEngine/Admin/Mods/deletemedalbyuser.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/deletemedalbyweek.php b/GameEngine/Admin/Mods/deletemedalbyweek.php index 872d0f5f..018fbf23 100644 --- a/GameEngine/Admin/Mods/deletemedalbyweek.php +++ b/GameEngine/Admin/Mods/deletemedalbyweek.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editAccess.php b/GameEngine/Admin/Mods/editAccess.php index deeb1e6a..ec834cbf 100644 --- a/GameEngine/Admin/Mods/editAccess.php +++ b/GameEngine/Admin/Mods/editAccess.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editBuildings.php b/GameEngine/Admin/Mods/editBuildings.php index f3cb3891..f358b594 100644 --- a/GameEngine/Admin/Mods/editBuildings.php +++ b/GameEngine/Admin/Mods/editBuildings.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editOverall.php b/GameEngine/Admin/Mods/editOverall.php index f1605e7e..4331cc5f 100644 --- a/GameEngine/Admin/Mods/editOverall.php +++ b/GameEngine/Admin/Mods/editOverall.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editPassword.php b/GameEngine/Admin/Mods/editPassword.php index fd342fc4..98aec328 100644 --- a/GameEngine/Admin/Mods/editPassword.php +++ b/GameEngine/Admin/Mods/editPassword.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editPlus.php b/GameEngine/Admin/Mods/editPlus.php index c9e87ccf..51ca0a09 100644 --- a/GameEngine/Admin/Mods/editPlus.php +++ b/GameEngine/Admin/Mods/editPlus.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editProtection.php b/GameEngine/Admin/Mods/editProtection.php index 862b00e9..7f2caf11 100644 --- a/GameEngine/Admin/Mods/editProtection.php +++ b/GameEngine/Admin/Mods/editProtection.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editResources.php b/GameEngine/Admin/Mods/editResources.php index d53479bb..28784775 100644 --- a/GameEngine/Admin/Mods/editResources.php +++ b/GameEngine/Admin/Mods/editResources.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editSitter.php b/GameEngine/Admin/Mods/editSitter.php index ae77131a..d155a2d5 100644 --- a/GameEngine/Admin/Mods/editSitter.php +++ b/GameEngine/Admin/Mods/editSitter.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editUser.php b/GameEngine/Admin/Mods/editUser.php index bb162898..dc37b6f0 100644 --- a/GameEngine/Admin/Mods/editUser.php +++ b/GameEngine/Admin/Mods/editUser.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editUsername.php b/GameEngine/Admin/Mods/editUsername.php index 289c3fa4..742e5cfa 100644 --- a/GameEngine/Admin/Mods/editUsername.php +++ b/GameEngine/Admin/Mods/editUsername.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editVillageOwner.php b/GameEngine/Admin/Mods/editVillageOwner.php index 66edca28..12f0901b 100644 --- a/GameEngine/Admin/Mods/editVillageOwner.php +++ b/GameEngine/Admin/Mods/editVillageOwner.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/editWeek.php b/GameEngine/Admin/Mods/editWeek.php index 0d0094e2..2d5e0271 100644 --- a/GameEngine/Admin/Mods/editWeek.php +++ b/GameEngine/Admin/Mods/editWeek.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/givePlus.php b/GameEngine/Admin/Mods/givePlus.php index f1de5133..c21917f1 100644 --- a/GameEngine/Admin/Mods/givePlus.php +++ b/GameEngine/Admin/Mods/givePlus.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/givePlusRes.php b/GameEngine/Admin/Mods/givePlusRes.php index 61fe0acb..6afe55f3 100644 --- a/GameEngine/Admin/Mods/givePlusRes.php +++ b/GameEngine/Admin/Mods/givePlusRes.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/giveResBonus.php b/GameEngine/Admin/Mods/giveResBonus.php index aac82464..e674b9d1 100644 --- a/GameEngine/Admin/Mods/giveResBonus.php +++ b/GameEngine/Admin/Mods/giveResBonus.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); error_reporting(E_ALL); diff --git a/GameEngine/Admin/Mods/gold.php b/GameEngine/Admin/Mods/gold.php index 18f1e736..56a95dca 100644 --- a/GameEngine/Admin/Mods/gold.php +++ b/GameEngine/Admin/Mods/gold.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); error_reporting(E_ALL); diff --git a/GameEngine/Admin/Mods/gold_1.php b/GameEngine/Admin/Mods/gold_1.php index 3a2b7857..accb1869 100644 --- a/GameEngine/Admin/Mods/gold_1.php +++ b/GameEngine/Admin/Mods/gold_1.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/mainteneceBan.php b/GameEngine/Admin/Mods/mainteneceBan.php index b45ad0e0..a2cae567 100644 --- a/GameEngine/Admin/Mods/mainteneceBan.php +++ b/GameEngine/Admin/Mods/mainteneceBan.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/mainteneceCleanBanData.php b/GameEngine/Admin/Mods/mainteneceCleanBanData.php index e4b6347b..3287b794 100644 --- a/GameEngine/Admin/Mods/mainteneceCleanBanData.php +++ b/GameEngine/Admin/Mods/mainteneceCleanBanData.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/mainteneceResetGold.php b/GameEngine/Admin/Mods/mainteneceResetGold.php index 5f65ca08..0e9982d0 100644 --- a/GameEngine/Admin/Mods/mainteneceResetGold.php +++ b/GameEngine/Admin/Mods/mainteneceResetGold.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/mainteneceResetPlus.php b/GameEngine/Admin/Mods/mainteneceResetPlus.php index 20c77576..b27bbcdc 100644 --- a/GameEngine/Admin/Mods/mainteneceResetPlus.php +++ b/GameEngine/Admin/Mods/mainteneceResetPlus.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php b/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php index 777e3f87..27915af8 100644 --- a/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php +++ b/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/mainteneceUnban.php b/GameEngine/Admin/Mods/mainteneceUnban.php index 303d0213..cca25b97 100644 --- a/GameEngine/Admin/Mods/mainteneceUnban.php +++ b/GameEngine/Admin/Mods/mainteneceUnban.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/medals.php b/GameEngine/Admin/Mods/medals.php index 8d23dc37..9e924ac2 100644 --- a/GameEngine/Admin/Mods/medals.php +++ b/GameEngine/Admin/Mods/medals.php @@ -8,13 +8,15 @@ ## License: TravianX Project ## ## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../Account.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysql_select_db(SQL_DB); -if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); $medalid = $_POST['medalid']; $uid = $_POST['uid']; diff --git a/GameEngine/Admin/Mods/recalcWH.php b/GameEngine/Admin/Mods/recalcWH.php index bb77e871..2d99ec56 100644 --- a/GameEngine/Admin/Mods/recalcWH.php +++ b/GameEngine/Admin/Mods/recalcWH.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/renameVillage.php b/GameEngine/Admin/Mods/renameVillage.php index f597b9d3..392b3e9b 100644 --- a/GameEngine/Admin/Mods/renameVillage.php +++ b/GameEngine/Admin/Mods/renameVillage.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); diff --git a/GameEngine/Admin/Mods/sendMessage.php b/GameEngine/Admin/Mods/sendMessage.php index b139cb64..cf6e1ecb 100644 --- a/GameEngine/Admin/Mods/sendMessage.php +++ b/GameEngine/Admin/Mods/sendMessage.php @@ -8,7 +8,8 @@ ## Copyright: TravianX (c) 2010-2012. All rights reserved. ## ## ## ################################################################################# - +if (!isset($_SESSION)) session_start(); +if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);