pageLoadTimeStart(); ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## ## Filename : sysmsg.tpl ## ## Type : Admin Panel System Messages ## ## --------------------------------------------------------------------------- ## ## Developed by : Dzoki (Original) ## ## Refactored by : Shadow ## ## Redesign by : Shadow ## ## --------------------------------------------------------------------------- ## ## Contact : cata7007@gmail.com ## ## Project : TravianZ ## ## GitHub : https://github.com/Shadowss/TravianZ ## ## --------------------------------------------------------------------------- ## ## License : TravianZ Project ## ## Copyright : TravianZ (c) 2010-2025. All rights reserved. ## ## --------------------------------------------------------------------------- ## ################################################################################# use App\Utils\AccessLogger; include_once("GameEngine/Account.php"); include_once("GameEngine/Village.php"); AccessLogger::logRequest(); $max_per_pass = 1000; // Default flow flags used later in template conditions. $NextStep = false; $NextStep2 = false; $done = false; $Interupt = false; if (mysqli_num_rows(mysqli_query($database->dblink,"SELECT id FROM ".TB_PREFIX."users WHERE access = 9 AND id = ".$session->uid))!= '1') die("Hacking attempt!"); if(isset($_GET['del'])){ mysqli_query($database->dblink, "UPDATE ".TB_PREFIX."users SET ok = 0"); } if (@$_POST['submit'] == "Send") { unset ($_SESSION['m_message']); $_SESSION['m_message'] = $_POST['message']; $NextStep = true; } if (@isset($_POST['confirm'])) { if ($_POST['confirm'] == 'No' ) $Interupt = true; if ($_POST['confirm'] == 'Yes'){ if(file_exists("Templates/text.tpl")) { $myFile = "Templates/text.tpl"; $fh = fopen($myFile, 'w') or die("


Can't open file: templates/text.tpl"); $text = file_get_contents("Templates/text_format.tpl"); $text = preg_replace("'%TEKST%'",str_replace('"', '\\"', $_SESSION['m_message']),$text); fwrite($fh, $text); mysqli_query($database->dblink, "UPDATE ".TB_PREFIX."users SET ok = 1"); $done = true; } else { die("


wrong"); } }} ?> <?php echo SERVER_NAME?> - System Message gpack == null || GP_ENABLE == false) { echo " "; } else { echo " "; } ?>



"; include("Templates/links.tpl"); } ?>
pageLoadTimeEnd() - $start_timer) * 1000);?> ms