pageLoadTimeStart(); ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## ## Filename : plus.php ## ## Type : In Game Plus 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. ## ## --------------------------------------------------------------------------- ## ################################################################################# use App\Utils\AccessLogger; include_once("GameEngine/Village.php"); AccessLogger::logRequest(); if(isset($_GET['newdid'])) { $_SESSION['wid'] = $_GET['newdid']; header("Location: ".$_SERVER['PHP_SELF']); exit; } else $building->procBuild($_GET); // Gold shop: promo-code redemption (player-side). Best-effort; the engine // self-creates its tables and validates the code (active / expiry / uses / // once-per-player) before granting gold. $promoMsg = ''; $promoOk = false; if (isset($_POST['redeem_code']) && class_exists('GoldShop')) { $__uid = isset($session) && isset($session->uid) ? (int)$session->uid : 0; $rr = GoldShop::redeem($__uid, $_POST['redeem_code']); $promoOk = $rr[0]; $promoMsg = $rr[1]; } ?>