"; + include("Templates/links.tpl"); +} +?>
diff --git a/sysmsg.php b/sysmsg.php
index 065bc7e5..678267f9 100644
--- a/sysmsg.php
+++ b/sysmsg.php
@@ -1,20 +1,30 @@
pageLoadTimeStart();
+
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
-## Project: TravianZ ##
-## Filename sysmsg.php ##
-## Developed by: Dixie ##
-## License: TravianZ Project ##
-## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
-## URLs: http://travian.shadowss.ro ##
-## Source code: https://github.com/Shadowss/TravianZ ##
-## ##
+## 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;
@@ -25,7 +35,7 @@ $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 (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");
@@ -48,10 +58,7 @@ if (@isset($_POST['confirm']))
$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);
- // the following is not really needed and results in fhe file starting with BOM which gets displayed when the message is shown
- // ... also, this very much depends on the underlying system and utf8_encode() is only good if the system is defaulted to ISO-8859-1
- // $text = utf8_encode($text);
+ $text = preg_replace("'%TEKST%'",str_replace('"', '\\"', $_SESSION['m_message']),$text);
fwrite($fh, $text);
mysqli_query($database->dblink, "UPDATE ".TB_PREFIX."users SET ok = 1");
@@ -61,10 +68,10 @@ if (@isset($_POST['confirm']))
}}
?>
-
+
-