mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-23 18:36:38 +08:00
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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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'];
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
// # FIX BY RONIX ##
|
||||
// # TRAVIANZ ##
|
||||
// ###########################################################
|
||||
if($session->access == BANNED){
|
||||
header("Location: banned.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$tid = $_GET['tid'];
|
||||
$topics = $database->ShowTopic($tid);
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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) ||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user