mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-11 23:26:08 +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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user