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
-4
View File
@@ -5,10 +5,6 @@
## FIX BY RONIX ##
## TRAVIANZ ##
############################################################
if($session->access == BANNED){
header("Location: banned.php");
exit;
}
if($session->access != ADMIN && ($session->alliance == 0 || ($session->alliance > 0 && !$opt['opt5']))) $alliance->redirect($_GET);
-4
View File
@@ -5,10 +5,6 @@
// # FIX BY RONIX ##
// # TRAVIANZ ##
// ###########################################################
if($session->access == BANNED){
header("Location: banned.php");
exit();
}
$topic_id = $_GET['tid'];
$post_id = $_GET['pod'];
-4
View File
@@ -5,10 +5,6 @@
// # FIX BY RONIX ##
// # TRAVIANZ ##
// ###########################################################
if($session->access == BANNED){
header("Location: banned.php");
exit();
}
$opt = $database->getAlliPermissions($session->uid, $aid);
$displayarray = $database->getUserArray($session->uid, 1);
-4
View File
@@ -5,10 +5,6 @@
## FIX BY RONIX ##
## TRAVIANZ ##
############################################################
if($session->access == BANNED){
header("Location: banned.php");
exit;
}
$topicID = $_GET['idt'];
$showTopic = reset($database->ShowTopic($topicID));
-4
View File
@@ -5,10 +5,6 @@
## FIX BY RONIX ##
## TRAVIANZ ##
############################################################
if($session->access == BANNED){
header("Location: banned.php");
exit;
}
$cat_id = $_GET['fid'];
$forumInfo = $database->ForumCatEdit($cat_id);
-4
View File
@@ -5,10 +5,6 @@
## FIX BY RONIX ##
## TRAVIANZ ##
############################################################
if($session->access == BANNED){
header("Location: banned.php");
exit;
}
$cat_id = $_GET['fid'];
$forumData = reset($database->ForumCatEdit($cat_id));
-4
View File
@@ -5,10 +5,6 @@
// # FIX BY RONIX ##
// # TRAVIANZ ##
// ###########################################################
if($session->access == BANNED){
header("Location: banned.php");
exit();
}
$tid = $_GET['tid'];
$topics = $database->ShowTopic($tid);
-4
View File
@@ -1,9 +1,5 @@
<?php
//////////////// made by TTMTT ////////////////
if($session->access == BANNED){
header("Location: banned.php");
exit;
}
$tid = $_GET['tid'];
$topic = reset($database->ShowTopic($tid));
-4
View File
@@ -5,10 +5,6 @@
## FIX BY RONIX ##
## TRAVIANZ ##
############################################################
if($session->access == BANNED){
header("Location: banned.php");
exit;
}
$forumData = reset($database->ForumCatEdit($_GET['idf']));
if(empty($forumData) || ($forumData['alliance'] == 0 && $session->access != ADMIN) ||
-4
View File
@@ -5,10 +5,6 @@
## FIX BY RONIX ##
## TRAVIANZ ##
############################################################
if($session->access == BANNED){
header("Location: banned.php");
exit;
}
$topic_id = $_GET['idt'];
$topics = $database->ShowTopic($topic_id);
+1 -8
View File
@@ -5,8 +5,7 @@ $allianceinfo = $database->getAlliance($aid);
$memberlist = $database->getAllMember($aid);
echo "<h1>".$allianceinfo['tag']." - ".$allianceinfo['name']."</h1>";
include("alli_menu.tpl");
if($session->access!=BANNED){
include("alli_menu.tpl");
?>
<form method="post" action="allianz.php">
<table cellpadding="1" cellspacing="1" id="position" class="small_option">
@@ -41,9 +40,3 @@ if($session->access!=BANNED){
<button value="ok" name="s1" id="btn_ok" class="trav_buttons">OK</button>
</p>
</form>
<?php
}else{
header("Location: banned.php");
exit;
}
?>