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
+1 -4
View File
@@ -1,6 +1,6 @@
<?php
////////////// made by alq0rsan, improved by evader /////////////////////////
if($session->access != BANNED && $session->gold >= 10){
if($session->gold >= 10){
$MyGold = mysqli_query($database->dblink,"SELECT gold, plus FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
if($session->sit == 0) {
@@ -24,8 +24,5 @@ if($session->access != BANNED && $session->gold >= 10){
}
header("Location: plus.php?id=3");
exit;
} else {
header("Location: banned.php");
exit;
}
?>