General fixes

+Removed almost all "BANNED" controls to template and .php UI files. The
control will be done only once and in the Session class
This commit is contained in:
iopietro
2018-06-11 02:22:22 +02:00
parent 56f4e799e0
commit 79eb6a73d6
38 changed files with 681 additions and 1026 deletions
+2 -6
View File
@@ -5,7 +5,7 @@ $start_timer = $generator->pageLoadTimeStart();
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename banned.php ##
## Filename packages.php ##
## Developed by: yi12345 ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
@@ -17,7 +17,6 @@ include_once("GameEngine/Village.php");
AccessLogger::logRequest();
$id = $_GET['id'];
if($session->access != BANNED){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
@@ -111,7 +110,4 @@ echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
<div id="ce"></div>
</body>
</html>
<?php
}
else{header("Location: banned.php");exit;}?>
</html>