"; include("Templates/links.tpl"); } ?>
pageLoadTimeStart(); ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## ## Filename : allianz.php ## ## Type : In Game Alliance Page ## ## --------------------------------------------------------------------------- ## ## Developed by : Dzoki ## ## Refactored by : Shadow ## ## Redesign by : Shadow ## ## --------------------------------------------------------------------------- ## ## Contact : cata7007@gmail.com ## ## Project : TravianZ ## ## URLs: : https://travianz.org ## ## GitHub : https://github.com/Shadowss/TravianZ ## ## --------------------------------------------------------------------------- ## ## License : TravianZ Project ## ## Copyright : TravianZ (c) 2010-2026. All rights reserved. ## ## --------------------------------------------------------------------------- ## ################################################################################# //fix by ronix use App\Utils\AccessLogger; if(isset($_GET['aid']) && !is_numeric($_GET['aid'])) { header("location: allianz.php"); exit; } include_once("GameEngine/Village.php"); include_once("GameEngine/Chat.php"); AccessLogger::logRequest(); $alliance->procAlliance($_GET); if(isset($_GET['newdid'])) { $_SESSION['wid'] = $_GET['newdid']; if(isset($_GET['s'])){ header("Location: ".$_SERVER['PHP_SELF']."?s=".preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['s'])); exit; }else if(isset($_GET['aid'])){ header("Location: ".$_SERVER['PHP_SELF']."?aid=".preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['aid'])); exit; }else{ header("Location: ".$_SERVER['PHP_SELF']); exit; } } if(isset($_GET['fid']) || isset($_GET['fid2'])){ $fid = preg_replace("/[^0-9]/","",!empty($_GET['fid']) ? $_GET['fid'] : $_GET['fid2']); $forumInfos = $database->ForumCatEdit($fid); if(empty($forumInfos)){ header("Location: ".$_SERVER['PHP_SELF']); exit; } $forum_type = reset($forumInfos); if (!empty($forum_type)) { if($forum_type['forum_area'] != 1 && !$alliance->isForumAccessible($fid)){ if($forum_type['alliance'] != $session->alliance){ header("Location: ".$_SERVER['PHP_SELF']); exit; } } } } if(isset($_GET['aid']) || isset($_GET['fid']) || isset($_GET['fid2']) || $session->alliance > 0 || ($session->alliance == 0 && isset($_GET['s']) && $_GET['s'] == 2)){ ?>