diff --git a/Admin/Templates/ban_msg.tpl b/Admin/Templates/ban_msg.tpl
index 8f9e0e05..2ca46a69 100644
--- a/Admin/Templates/ban_msg.tpl
+++ b/Admin/Templates/ban_msg.tpl
@@ -2,38 +2,66 @@
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
-## Filename ban_msq.tpl ##
+## Filename ban_msg.tpl ##
## Developed by: yi12345 ##
-## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
+## Reworked: Shadow ##
+## License: TravianZ Project ##
+## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
#################################################################################
-$time = time();
-$ban = mysqli_query($GLOBALS["link"], "SELECT * FROM ".TB_PREFIX."banlist WHERE `uid` = '".(int) $session->uid."' and active = 1");
-$ban1 = mysqli_fetch_array($ban);
+
+$uid = isset($session->uid) ? (int)$session->uid : 0;
+$name = isset($session->username) ? $session->username : 'Unknown';
+$reason = 'No reason specified';
+
+
+ /* =========================
+ DB CONNECTION SAFE CHECK
+ ========================= */
+
+if($uid > 0){
+
+ $query = "SELECT reason FROM ".TB_PREFIX."banlist WHERE uid = $uid LIMIT 1";
+
+ // ๐ฅ AICI E FIXUL IMPORTANT
+ $res = mysqli_query($database->dblink, $query);
+
+ if($res && mysqli_num_rows($res) > 0){
+ $row = mysqli_fetch_assoc($res);
+ if(!empty($row['reason'])){
+ $reason = $row['reason'];
+ }
+ }
+}
?>
-
-Hello !
-You have been banned due to a violation of the rules.
-
-Your banning reason is .
-
+
+
+Hello !
+You have been banned due to a violation of the rules.
+
+Your banning reason is .
+
+
+
+To ensure that you won't get banned again in the future, you should read the rules carefully:
+
+
+
+ ยป Game rules
+
+
+
- To ensure that you won't get banned again in the future, you should read the rules carefully:
- ยป Game rules"; ?>
-
To continue playing contact the Multihunter and put things straight with him/her
- ยป Write Message"; ?>
-
-Heed the following advice when writing your message:
-
-โ There is always a reason for a ban. Try to think about possible reasons for this ban and put things straight with the Multihunter.
-
-โ Multihunters can review enormous amounts of information about accounts. Stick to the truth and do not make excuses to justify your violation of the rules.
-
-โ Be cooperative and insightful, this might reduce the punishment.
-
-โ If the Multihunter does not answer immediately, then he/she is probably not online. The issue will not be resolved any faster by sending multiple messages, especially if he/she did not even read the first one yet.
-
-โ If you have really been banned unjustly, try to stay calm and polite while talking to the Multihunter and telling him/her about your point of view.
-
\ No newline at end of file
+
+
+
+ ยป Write Message
+
+ Heed the following advice when writing your message:
+ โ There is always a reason for a ban. Try to think about possible reasons for this ban and put things straight with the Multihunter.
+ โ Multihunters can review enormous amounts of information about accounts. Stick to the truth and do not make excuses to justify your violation of the rules.
+ โ Be cooperative and insightful, this might reduce the punishment.
+ โ If the Multihunter does not answer immediately, then he/she is probably not online. The issue will not be resolved any faster by sending multiple messages, especially if he/she did not even read the first one yet.
+ โ If you have really been banned unjustly, try to stay calm and polite while talking to the Multihunter and telling him/her about your point of view.
\ No newline at end of file
diff --git a/Admin/Templates/home.tpl b/Admin/Templates/home.tpl
index 089d6aed..e900d5c2 100644
--- a/Admin/Templates/home.tpl
+++ b/Admin/Templates/home.tpl
@@ -4,42 +4,72 @@
## --------------------------------------------------------------------------- ##
## Filename home.tpl ##
## Developed by: Dzoki ##
-## Reworked: aggenekech ##
+## Reworked: aggenekech ##
## License: TravianZ Project ##
-## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
-## ##
+## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
#################################################################################
?>
-
-
-
- WELCOME TO
-
- CONTROL PANEL
-
-
-
+
+
+
+ WELCOME TO
+
+ CONTROL PANEL
+
+
-
+
- Hello , You are logged in as: Administrator
-
+
+
+if ($_SESSION['access'] == MULTIHUNTER) {
+ $role = 'MultiHunter';
+ $color = '#e67e22';
+} else if ($_SESSION['access'] == ADMIN) {
+ $role = 'Administrator';
+ $color = '#c0392b';
+} else {
+ $role = 'User';
+}
+?>
+
+ Hello ,
+ You are logged in as:
+
+
+
+
-
- Credits: Akakori & Elmar
- Fixed, remade and new features added by Dzoki
- Reworked by aggenkeech
- Remaked by Shadow
-
+
+
+
+
+
+
+
+ Credits: Akakori & Elmar
+ Fixed, remade and new features added by Dzoki
+ Reworked by aggenkeech
+ Remaked by Shadow
+
\ No newline at end of file
diff --git a/Admin/Templates/server_info.tpl b/Admin/Templates/server_info.tpl
index 8f9f0600..01a6fc55 100644
--- a/Admin/Templates/server_info.tpl
+++ b/Admin/Templates/server_info.tpl
@@ -10,6 +10,13 @@
## Improoved by: Shadow ##
#################################################################################
+function formatNum($n) {
+ if ($n >= 1000000000) return round($n / 1000000000, 2).'B';
+ if ($n >= 1000000) return round($n / 1000000, 2).'M';
+ if ($n >= 1000) return round($n / 1000, 1).'K';
+ return $n;
+}
+
$tribe1 = mysqli_query($GLOBALS["link"], "SELECT * FROM ".TB_PREFIX."users WHERE tribe = 1");
$tribe2 = mysqli_query($GLOBALS["link"], "SELECT * FROM ".TB_PREFIX."users WHERE tribe = 2");
$tribe3 = mysqli_query($GLOBALS["link"], "SELECT * FROM ".TB_PREFIX."users WHERE tribe = 3");
@@ -112,70 +119,74 @@ $users = mysqli_num_rows(mysqli_query($GLOBALS["link"], "SELECT * FROM ".TB_PREF
-
-
-
- | Troops on the Server |
-
-
+
+
+ | Troops on the Server |
+
+
';
- }
+ for($i=1; $i<11; $i++) {
+ echo ' | ';
+ }
- echo '';
- for($i=1; $i<11; $i++) {
- echo ''.($units_villages['u'.$i] + $units_enforcements['u'.$i]).' | ';
- }
+ echo '';
+ for($i=1; $i<11; $i++) {
+ $total = ($units_villages['u'.$i] + $units_enforcements['u'.$i]);
+ echo ''.formatNum($total).' | ';
+ }
- echo "";
- for($i=11; $i<21; $i++) {
- echo ' | ';
- }
+ echo "";
+ for($i=11; $i<21; $i++) {
+ echo ' | ';
+ }
- echo '';
- for($i=11; $i<21; $i++) {
- echo ''.($units_villages['u'.$i] + $units_enforcements['u'.$i]).' | ';
- }
+ echo '';
+ for($i=11; $i<21; $i++) {
+ $total = ($units_villages['u'.$i] + $units_enforcements['u'.$i]);
+ echo '| '.formatNum($total).' | ';
+ }
- echo "
";
- for($i=21; $i<31; $i++) {
- echo ' | ';
- }
+ echo "";
+ for($i=21; $i<31; $i++) {
+ echo ' | ';
+ }
- echo '';
- for($i=21; $i<31; $i++) {
- echo ''.($units_villages['u'.$i] + $units_enforcements['u'.$i]).' | ';
- }
+ echo '';
+ for($i=21; $i<31; $i++) {
+ $total = ($units_villages['u'.$i] + $units_enforcements['u'.$i]);
+ echo '| '.formatNum($total).' | ';
+ }
- echo "
";
- for($i=31; $i<41; $i++) {
- echo ' | ';
- }
+ echo "";
+ for($i=31; $i<41; $i++) {
+ echo ' | ';
+ }
- echo '';
- for($i=31; $i<41; $i++) {
- echo ''.($units_villages['u'.$i] + $units_enforcements['u'.$i]).' | ';
- }
+ echo '';
+ for($i=31; $i<41; $i++) {
+ $total = ($units_villages['u'.$i] + $units_enforcements['u'.$i]);
+ echo '| '.formatNum($total).' | ';
+ }
- echo "
";
- for($i=41; $i<51; $i++) {
- echo ' | ';
- }
+ echo "";
+ for($i=41; $i<51; $i++) {
+ echo ' | ';
+ }
- echo '';
- for($i=41; $i<51; $i++) {
- echo ''.($units_villages['u'.$i] + $units_enforcements['u'.$i]).' | ';
- }
- ?>
-
-
-
+ echo '
';
+ for($i=41; $i<51; $i++) {
+ $total = ($units_villages['u'.$i] + $units_enforcements['u'.$i]);
+ echo '| '.formatNum($total).' | ';
+ }
+ ?>
+
+
diff --git a/install/data/constant_format.tpl b/install/data/constant_format.tpl
index 2b7c8901..8aedff97 100644
--- a/install/data/constant_format.tpl
+++ b/install/data/constant_format.tpl
@@ -6,7 +6,7 @@
## Version 8.0 ##
## Developed by: Dzoki and Dixie Edited by Advocaite ##
## License: TravianZ Project ##
-## Copyright: TravianZ (c) 2013-2025. All rights reserved. ##
+## Copyright: TravianZ (c) 2013-2026. All rights reserved. ##
## Modified by: Shadow and ronix ##
## ##
#################################################################################
@@ -365,8 +365,8 @@ $requse = 0;
## Filename config.php ##
## Version 4.8.5 ##
## Developed by: Dzoki and Dixie Edited by Advocaite ##
-## License: TravianX Project ##
-## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
+## License: TravianZ Project ##
+## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
#################################################################################
diff --git a/install/include/accounts.php b/install/include/accounts.php
index 294913b7..f06c1acf 100644
--- a/install/include/accounts.php
+++ b/install/include/accounts.php
@@ -1,4 +1,19 @@
Error creating constant.php check cmod.
";
diff --git a/install/templates/dataform.tpl b/install/templates/dataform.tpl
index 24857ddc..801d98ea 100644
--- a/install/templates/dataform.tpl
+++ b/install/templates/dataform.tpl
@@ -1,19 +1,18 @@
Thanks for installing TravianZ.
diff --git a/install/templates/menu.tpl b/install/templates/menu.tpl
index 24977125..821f4f6e 100644
--- a/install/templates/menu.tpl
+++ b/install/templates/menu.tpl
@@ -5,15 +5,12 @@
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
-## Version: 22.06.2015 ##
-## Filename menu.tpl ##
-## Developed by: Mr.php , Advocaite , brainiacX , yi12345 , Shadow , ronix ##
-## Fixed by: Shadow - STARVATION , HERO FIXED COMPL. ##
-## Fixed by: InCube - double troops ##
+## Filename menu.php ##
+## Developed by: Dzoki ##
## License: TravianZ Project ##
-## Copyright: TravianZ (c) 2010-2015. All rights reserved. ##
-## URLs: http://travian.shadowss.ro ##
-## Source code: https://github.com/Shadowss/TravianZ ##
+## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
+## URLs: http://travian.shadowss.ro ##
+## Source code: https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
diff --git a/install/templates/wdata.tpl b/install/templates/wdata.tpl
index f7bc384d..06ed63c9 100644
--- a/install/templates/wdata.tpl
+++ b/install/templates/wdata.tpl
@@ -4,16 +4,12 @@
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
-## Version: 28.10.2025 ##
-## Filename wdata.tpl ##
-## Developed by: Mr.php , Advocaite , brainiacX , yi12345 , Shadow , ronix ##
-## Fixed by: Shadow - STARVATION , HERO FIXED COMPL. ##
-## Fixed by: InCube - double troops ##
-## Fixed by: lietuvis10 - crop finder ##
+## Filename dataform.php ##
+## Developed by: Dzoki ##
## License: TravianZ Project ##
-## Copyright: TravianZ (c) 2010-2015. All rights reserved. ##
-## URLs: http://travian.shadowss.ro ##
-## Source code: https://github.com/Shadowss/TravianZ ##
+## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
+## URLs: http://travian.shadowss.ro ##
+## Source code: https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################