mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fe6ff01396
Fix Some PHP 8+ view error in Build & Credits TO DO : Full audit in build directory
35 lines
2.0 KiB
Smarty
35 lines
2.0 KiB
Smarty
<?php
|
|
|
|
#################################################################################
|
|
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
|
## --------------------------------------------------------------------------- ##
|
|
## Filename : TOWNHALL TIMING ##
|
|
## Type : BUILDING TEMPLATE ##
|
|
## --------------------------------------------------------------------------- ##
|
|
## Refactored by : Shadow ##
|
|
## Redesign by : Shadow ##
|
|
## --------------------------------------------------------------------------- ##
|
|
## Contact : cata7007@gmail.com ##
|
|
## Project : TravianZ ##
|
|
## Test Server : https://travianz.org ##
|
|
## GitHub : https://github.com/Shadowss/TravianZ ##
|
|
## --------------------------------------------------------------------------- ##
|
|
## License : TravianZ Project ##
|
|
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
|
## --------------------------------------------------------------------------- ##
|
|
#################################################################################
|
|
|
|
global $database, $village, $generator, $session;
|
|
|
|
$timeleft = (int)$database->getVillageField($village->wid, 'celebration');
|
|
if ($timeleft > time()):
|
|
?>
|
|
<br>
|
|
<table cellpadding="0" cellspacing="0" id="building_contract">
|
|
<tr>
|
|
<td><?php echo TZ_CELEBRATION_STILL_NEEDS; ?></td>
|
|
<td><span id="timer<?php echo ++$session->timer;?>"><?php echo $generator->getTimeFormat($timeleft - time());?></span> <?php echo TZ_HRS_2; ?></td>
|
|
<td><?php echo DONE_AT; ?> <?php echo date('H:i', $timeleft);?></td>
|
|
</tr>
|
|
</table>
|
|
<?php endif;?> |