Incremental Refactor Templates 3

Incremental Refactor Templates 2
This commit is contained in:
Catalin Novgorodschi
2026-05-07 11:20:05 +03:00
parent 8901c36c06
commit 60c2ed2f60
24 changed files with 2924 additions and 1057 deletions
+81 -19
View File
@@ -1,32 +1,94 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Version: 06.03.2014 ##
## Filename footer.tpl ##
## Developed by: Advocaite , Shadow , ronix ##
## Refactored by: Shadow Incremental Refactor ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2014. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: http://github.com/Shadowss/TravianZ/ ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## Refactor notes: ##
## - păstrată logica originală 100% ##
## - compatibil PHP 5.6+ / 7+ ##
## - HTML reorganizat corect ##
## - eliminat nesting invalid <center> ##
## - output HTML mai sigur ##
## - comentarii adăugate ##
## ##
#################################################################################
/**
* Escape HTML compatibil PHP vechi
*/
if (!function_exists('safeHTML')) {
function safeHTML($string)
{
return htmlspecialchars($string, ENT_QUOTES, 'UTF-8');
}
}
/**
* Nume server
*/
$serverName = defined('SERVER_NAME')
? SERVER_NAME
: 'TravianZ';
/**
* An curent
*/
$currentYear = date('Y');
/**
* Build version
* Ușor de modificat ulterior
*/
$serverVersion = 'v.9.0 Incremental Refactor';
?>
<!-- ===================== FOOTER ===================== -->
<div id="footer">
<div id="mfoot">
<div class="footer-menu">
<center><br />
<div class="copyright">&copy; 2010 - <?php echo date('Y') . ' ' . (defined('SERVER_NAME') ? SERVER_NAME : 'TravianZ');?> All rights reserved</div>
<div class="copyright">▶ Server running on <a href="version.php" style="color: #FF5555; text-decoration: none; font-weight: bold;transition: 0.3s;" onmouseover="this.style.color='#FFAA00'" onmouseout="this.style.color='#FF5555'">v.8.4.α ⚡ Quantum Build 42β
</a>
</div>
</div>
</div></center>
<div id="cfoot">
</div>
</div>
<div id="mfoot">
<div class="footer-menu">
<div style="text-align:center;">
<br />
<!-- Copyright -->
<div class="copyright">
&copy; 2010 - <?php echo (int)$currentYear; ?>
<?php echo safeHTML($serverName); ?>
All rights reserved
</div>
<!-- Version -->
<div class="copyright">
▶ Server running on
<a href="version.php"
style="color:#FF5555;text-decoration:none;font-weight:bold;transition:0.3s;"
onmouseover="this.style.color='#FFAA00'"
onmouseout="this.style.color='#FF5555'">
<?php echo safeHTML($serverVersion); ?>
</a>
</div>
</div>
</div>
</div>
<!-- Footer extra content -->
<div id="cfoot"></div>
</div>