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
42 lines
2.2 KiB
Smarty
42 lines
2.2 KiB
Smarty
<?php
|
|
|
|
#################################################################################
|
|
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
|
## --------------------------------------------------------------------------- ##
|
|
## Filename : ACADEMY ##
|
|
## 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 $village, $building, $session, $id;
|
|
|
|
$level = (int)$village->resarray['f'.$id];
|
|
$hasAcademy = $building->getTypeLevel(22) > 0;
|
|
$tribe = (int)$session->tribe;
|
|
?>
|
|
<div id="build" class="gid22">
|
|
<a href="#" onClick="return Popup(22,4);" class="build_logo">
|
|
<img class="building g22" src="img/x.gif" alt="<?php echo ACADEMY; ?>" title="<?php echo ACADEMY;?>" />
|
|
</a>
|
|
<h1><?php echo ACADEMY;?> <span class="level"><?php echo LEVEL;?> <?php echo $level;?></span></h1>
|
|
<p class="build_desc"><?php echo ACADEMY_DESC;?></p>
|
|
|
|
<?php if ($hasAcademy):?>
|
|
<?php include("22_".$tribe.".tpl");?>
|
|
<?php else:?>
|
|
<p><b><?php echo RESEARCH_COMMENCE_ACADEMY;?></b><br /></p>
|
|
<?php endif;?>
|
|
|
|
<?php include("upgrade.tpl");?>
|
|
</div> |