mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 11:54:25 +00:00
more update
This commit is contained in:
@@ -145,6 +145,7 @@ class Automation {
|
||||
|
||||
public function Automation() {
|
||||
|
||||
$this->procClimbers();
|
||||
$this->ClearUser();
|
||||
$this->ClearInactive();
|
||||
$this->oasisResoucesProduce();
|
||||
@@ -205,7 +206,6 @@ class Automation {
|
||||
$this->updateGeneralAttack();
|
||||
$this->checkInvitedPlayes();
|
||||
$this->updateStore();
|
||||
$this->procClimbers();
|
||||
$this->CheckBan();
|
||||
$this->regenerateOasisTroops();
|
||||
$this->artefactOfTheFool();
|
||||
|
||||
@@ -20,9 +20,11 @@
|
||||
|
||||
public function getUserRank($id) {
|
||||
$ranking = $this->getRank();
|
||||
$start = $_SESSION['start']+1;
|
||||
$users = "SELECT * FROM " . TB_PREFIX . "users WHERE access < " . (INCLUDE_ADMIN ? "10" : "8") . "";
|
||||
$users2 = mysql_num_rows(mysql_query($users));
|
||||
$users3 = $users2+1;
|
||||
if(count($ranking) > 0) {
|
||||
for($i=$start;$i<($start+20);$i++) {
|
||||
for($i=0;$i<($users3);$i++) {
|
||||
if($ranking[$i]['userid'] == $id && $ranking[$i] != "pad") {
|
||||
$myrank = $i;
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ if (isset($_POST['name'])) {
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Regeneration</th>
|
||||
<td class="val"><?php echo ($hero_info['regeneration']*5*SPEED); ?>/Day</td>
|
||||
<td class="val"><?php echo ($hero_info['regeneration']*5*ceil(SPEED/10)); ?>/Day</td>
|
||||
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo ($hero_info['regeneration']*2)+1; ?>px;" alt="<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day" title="<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day" /></td>
|
||||
<td class="up"><span class="none">
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user