Refactor + BugFix

1. Fix a bug in Admin Panel that you can edit by yourself your rank, now you cannot edit your rank anymore.

2. Now Alliance Leader can edit his own Position

3. Fix negative value on Demolition Building, now in database at lvl is appear new level not -1

4. Refactor Ajax map, now all is alligned (Ajax folder and Map folder)

5. Fix bug from Palace (when change capital now Automation recount population automaticaly on old capital and new capital)
This commit is contained in:
novgorodschi catalin
2026-05-18 09:18:35 +03:00
parent 2bce101a27
commit 55e6dd60b5
96 changed files with 6176 additions and 6763 deletions
+26 -23
View File
@@ -1,26 +1,29 @@
<div id="build" class="gid25"><h1><?php echo RESIDENCE; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
<p class="build_desc">
<a href="#" onClick="return Popup(25,4, 'gid');"
class="build_logo"> <img
class="building g25"
src="img/x.gif" alt="Residence"
title="<?php echo RESIDENCE; ?>" /> </a>
<?php echo RESIDENCE_DESC; ?></p>
<?php
if ($village->capital == 1) {
echo "<p class=\"act\">".CAPITAL."</p>";
}
// 25.tpl - Residence
global $village, $id;
include("25_menu.tpl");
if($village->resarray['f'.$id] >= 10){
include ("25_train.tpl");
}
else{
echo '<div class="c">'.RESIDENCE_TRAIN_DESC.'</div>';
}
include("upgrade.tpl");
$level = (int)$village->resarray['f'.$id];
?>
</div>
<div id="build" class="gid25">
<h1><?php echo RESIDENCE;?> <span class="level"><?php echo LEVEL;?> <?php echo $level;?></span></h1>
<p class="build_desc">
<a href="#" onClick="return Popup(25,4, 'gid');" class="build_logo">
<img class="building g25" src="img/x.gif" alt="Residence" title="<?php echo RESIDENCE;?>" />
</a>
<?php echo RESIDENCE_DESC;?>
</p>
<?php if ($village->capital == 1):?>
<p class="act"><?php echo CAPITAL;?></p>
<?php endif;?>
<?php include("25_menu.tpl"); ?>
<?php if ($level >= 10):?>
<?php include("25_train.tpl");?>
<?php else:?>
<div class="c"><?php echo RESIDENCE_TRAIN_DESC;?></div>
<?php endif;?>
<?php include("upgrade.tpl");?>
</div>