more update

This commit is contained in:
unknown
2012-08-09 15:39:52 +03:00
parent 9a481fc821
commit d8e9705405
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -145,6 +145,7 @@ class Automation {
public function Automation() { public function Automation() {
$this->procClimbers();
$this->ClearUser(); $this->ClearUser();
$this->ClearInactive(); $this->ClearInactive();
$this->oasisResoucesProduce(); $this->oasisResoucesProduce();
@@ -205,7 +206,6 @@ class Automation {
$this->updateGeneralAttack(); $this->updateGeneralAttack();
$this->checkInvitedPlayes(); $this->checkInvitedPlayes();
$this->updateStore(); $this->updateStore();
$this->procClimbers();
$this->CheckBan(); $this->CheckBan();
$this->regenerateOasisTroops(); $this->regenerateOasisTroops();
$this->artefactOfTheFool(); $this->artefactOfTheFool();
+4 -2
View File
@@ -20,9 +20,11 @@
public function getUserRank($id) { public function getUserRank($id) {
$ranking = $this->getRank(); $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) { 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") { if($ranking[$i]['userid'] == $id && $ranking[$i] != "pad") {
$myrank = $i; $myrank = $i;
} }
+1 -1
View File
@@ -113,7 +113,7 @@ if (isset($_POST['name'])) {
</tr> </tr>
<tr> <tr>
<th>Regeneration</th> <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="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"> <td class="up"><span class="none">
<?php <?php