mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-17 15:47:16 +00:00
security update
This commit is contained in:
@@ -16,7 +16,8 @@ include_once("../../Account.php");
|
|||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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'];
|
$id = $_POST['id'];
|
||||||
$village = $database->getVillage($id);
|
$village = $database->getVillage($id);
|
||||||
|
|||||||
+2
-1
@@ -12,7 +12,8 @@
|
|||||||
include_once("../../Account.php");
|
include_once("../../Account.php");
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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'];
|
$id = $_POST['id'];
|
||||||
$admid = $_POST['admid'];
|
$admid = $_POST['admid'];
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
include_once("../../Account.php");
|
include_once("../../Account.php");
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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!");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
include_once("../../Account.php");
|
include_once("../../Account.php");
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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!");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
include_once("../../Account.php");
|
include_once("../../Account.php");
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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'];
|
$id = $_POST['id'];
|
||||||
$user = $database->getUserArray($id,1);
|
$user = $database->getUserArray($id,1);
|
||||||
|
|||||||
+2
-1
@@ -12,7 +12,8 @@
|
|||||||
include_once("../../Account.php");
|
include_once("../../Account.php");
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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'];
|
$id = $_POST['id'];
|
||||||
$gold = $_POST['gold'];
|
$gold = $_POST['gold'];
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
include_once("../../Account.php");
|
include_once("../../Account.php");
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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'];
|
$id = $_POST['id'];
|
||||||
$admid = $_POST['admid'];
|
$admid = $_POST['admid'];
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ include_once("../../Account.php");
|
|||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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'];
|
$medalid = $_POST['medalid'];
|
||||||
$uid = $_POST['uid'];
|
$uid = $_POST['uid'];
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ include_once("../../Account.php");
|
|||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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'];
|
$did = $_POST['did'];
|
||||||
$name = $_POST['villagename'];
|
$name = $_POST['villagename'];
|
||||||
|
|||||||
@@ -11,7 +11,8 @@
|
|||||||
include_once("../../GameEngine/Account.php");
|
include_once("../../GameEngine/Account.php");
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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'];
|
$uid = $_POST['uid'];
|
||||||
$topic = $_POST['topic'];
|
$topic = $_POST['topic'];
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
## 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");
|
include_once("../../Account.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
## Copyright: TravianZ (c) 2014. All rights reserved. ##
|
## 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("../../config.php");
|
||||||
include_once("../../Session.php");
|
include_once("../../Session.php");
|
||||||
include_once("../../Automation.php");
|
include_once("../../Automation.php");
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
include_once("../../config.php");
|
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_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
mysql_select_db(SQL_DB);
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,13 +8,15 @@
|
|||||||
## License: TravianX Project ##
|
## License: TravianX Project ##
|
||||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
## 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");
|
include_once("../../Account.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
mysql_select_db(SQL_DB);
|
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'];
|
$medalid = $_POST['medalid'];
|
||||||
$uid = $_POST['uid'];
|
$uid = $_POST['uid'];
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
## 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");
|
include_once("../../config.php");
|
||||||
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||||
|
|||||||
Reference in New Issue
Block a user