vname; if($village->loyalty!='100'){ if($village->loyalty>'33'){ $color="gr"; }else{ $color="re"; } ?> loyalty); ?>%
NewBuilding) include("Templates/Building.tpl"); ?>
"; include("Templates/links.tpl"); } ?>
pageLoadTimeStart(); ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## ## Project: TravianZ ## ## Filename dorf1.php ## ## Developed by: Dzoki ## ## License: TravianZ Project ## ## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## ## URLs: http://travian.shadowss.ro ## ## Source code: https://github.com/Shadowss/TravianZ ## ## ## ################################################################################# use App\Utils\AccessLogger; include_once("GameEngine/Village.php"); AccessLogger::logRequest(); if(isset($_GET['ok'])){ $database->updateUserField($session->uid,'ok', 0, 1); $_SESSION['ok'] = '0'; // Invalidate the 30s session user-cache (see Session::PopulateVar); otherwise // it re-seeds $_SESSION['ok'] from the stale row and the welcome/maintenance // redirect keeps firing for up to 30s after acknowledging. unset($_SESSION['cache_user_' . ($_SESSION['username'] ?? '')]); } if(isset($_GET['newdid'])) { $_SESSION['wid'] = $_GET['newdid']; $database->query("UPDATE ".TB_PREFIX."users SET village_select=".$database->escape((int) $_GET['newdid'])." WHERE id=".$session->uid); header("Location: ".$_SERVER['PHP_SELF']); exit; } else $building->procBuild($_GET); ?>