mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-01 16:17:13 +00:00
update
This commit is contained in:
+24
-15
@@ -45,7 +45,7 @@
|
|||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
$this->procHeroRankArray();
|
$this->procHeroRankArray();
|
||||||
$this->getStart($this->searchRank($session->uid, "owner"));
|
$this->getStart($this->searchRank($session->uid, "userid"));
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
$this->procRankRaceArray(1);
|
$this->procRankRaceArray(1);
|
||||||
@@ -106,6 +106,9 @@
|
|||||||
if(isset($post['ft'])) {
|
if(isset($post['ft'])) {
|
||||||
switch($post['ft']) {
|
switch($post['ft']) {
|
||||||
case "r1":
|
case "r1":
|
||||||
|
case "r11":
|
||||||
|
case "r12":
|
||||||
|
case "r13":
|
||||||
case "r31":
|
case "r31":
|
||||||
case "r32":
|
case "r32":
|
||||||
if(isset($post['rank']) && $post['rank'] != "") {
|
if(isset($post['rank']) && $post['rank'] != "") {
|
||||||
@@ -115,10 +118,18 @@
|
|||||||
$this->getStart($this->searchRank(stripslashes($post['name']), "username"));
|
$this->getStart($this->searchRank(stripslashes($post['name']), "username"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "r2":
|
|
||||||
case "r4":
|
case "r4":
|
||||||
case "r42":
|
case "r42":
|
||||||
case "r41":
|
case "r41":
|
||||||
|
if(isset($post['rank']) && $post['rank'] != "") {
|
||||||
|
$this->getStart($post['rank']);
|
||||||
|
}
|
||||||
|
if(isset($post['name']) && $post['name'] != "") {
|
||||||
|
$this->getStart($this->searchRank(stripslashes($post['name']), "tag"));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "r2":
|
||||||
|
case "r8":
|
||||||
if(isset($post['rank']) && $post['rank'] != "") {
|
if(isset($post['rank']) && $post['rank'] != "") {
|
||||||
$this->getStart($post['rank']);
|
$this->getStart($post['rank']);
|
||||||
}
|
}
|
||||||
@@ -189,7 +200,7 @@
|
|||||||
|
|
||||||
public function procRankArray() {
|
public function procRankArray() {
|
||||||
global $database, $multisort;
|
global $database, $multisort;
|
||||||
if($database->countUser() > 0){
|
if($database->countUser() > 0){
|
||||||
$holder = array();
|
$holder = array();
|
||||||
if(SHOW_NATARS == True){
|
if(SHOW_NATARS == True){
|
||||||
$q = "SELECT " . TB_PREFIX . "users.id userid, " . TB_PREFIX . "users.username username, " . TB_PREFIX . "users.oldrank oldrank, " . TB_PREFIX . "users.alliance alliance, (
|
$q = "SELECT " . TB_PREFIX . "users.id userid, " . TB_PREFIX . "users.username username, " . TB_PREFIX . "users.oldrank oldrank, " . TB_PREFIX . "users.alliance alliance, (
|
||||||
@@ -259,7 +270,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function procRankRaceArray($race) {
|
public function procRankRaceArray($race) {
|
||||||
global $database, $multisort;
|
global $database, $multisort;
|
||||||
//$array = $database->getRanking();
|
//$array = $database->getRanking();
|
||||||
$holder = array();
|
$holder = array();
|
||||||
@@ -298,7 +309,6 @@
|
|||||||
|
|
||||||
|
|
||||||
foreach($datas as $result) {
|
foreach($datas as $result) {
|
||||||
//$value = $array[$result['userid']];
|
|
||||||
$value['userid'] = $result['userid'];
|
$value['userid'] = $result['userid'];
|
||||||
$value['username'] = $result['username'];
|
$value['username'] = $result['username'];
|
||||||
$value['alliance'] = $result['alliance'];
|
$value['alliance'] = $result['alliance'];
|
||||||
@@ -325,7 +335,7 @@
|
|||||||
$this->rankarray = $newholder;
|
$this->rankarray = $newholder;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function procAttRankArray() {
|
public function procAttRankArray() {
|
||||||
global $database, $multisort;
|
global $database, $multisort;
|
||||||
//$array = $database->getRanking();
|
//$array = $database->getRanking();
|
||||||
$holder = array();
|
$holder = array();
|
||||||
@@ -352,10 +362,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach($datas as $key => $row) {
|
foreach($datas as $key => $row) {
|
||||||
//$value = $array[$row['userid']];
|
$value['userid'] = $row['userid'];
|
||||||
$value['username'] = $row['username'];
|
$value['username'] = $row['username'];
|
||||||
$value['totalvillages'] = $row['totalvillages'];
|
$value['totalvillages'] = $row['totalvillages'];
|
||||||
//$value['totalvillage'] = $row['totalvillages'];
|
|
||||||
$value['id'] = $row['userid'];
|
$value['id'] = $row['userid'];
|
||||||
$value['totalpop'] = $row['pop'];
|
$value['totalpop'] = $row['pop'];
|
||||||
$value['apall'] = $row['apall'];
|
$value['apall'] = $row['apall'];
|
||||||
@@ -371,7 +380,7 @@
|
|||||||
$this->rankarray = $newholder;
|
$this->rankarray = $newholder;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function procDefRankArray() {
|
public function procDefRankArray() {
|
||||||
//global $database, $multisort;
|
//global $database, $multisort;
|
||||||
//$array = $database->getRanking();
|
//$array = $database->getRanking();
|
||||||
$holder = array();
|
$holder = array();
|
||||||
@@ -395,10 +404,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach($datas as $key => $row) {
|
foreach($datas as $key => $row) {
|
||||||
//$value = $array[$row['userid']];
|
$value['userid'] = $row['userid'];
|
||||||
$value['username'] = $row['username'];
|
$value['username'] = $row['username'];
|
||||||
$value['totalvillages'] = $row['totalvillages'];
|
$value['totalvillages'] = $row['totalvillages'];
|
||||||
//$value['totalvillage'] = $row['totalvillages'];
|
|
||||||
$value['id'] = $row['userid'];
|
$value['id'] = $row['userid'];
|
||||||
$value['totalpop'] = $row['pop'];
|
$value['totalpop'] = $row['pop'];
|
||||||
$value['dpall'] = $row['dpall'];
|
$value['dpall'] = $row['dpall'];
|
||||||
@@ -414,7 +422,7 @@
|
|||||||
$this->rankarray = $newholder;
|
$this->rankarray = $newholder;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function procVRankArray() {
|
public function procVRankArray() {
|
||||||
global $database, $multisort;
|
global $database, $multisort;
|
||||||
$array = $database->getVRanking();
|
$array = $database->getVRanking();
|
||||||
$holder = array();
|
$holder = array();
|
||||||
@@ -463,13 +471,14 @@
|
|||||||
$this->rankarray = $newholder;
|
$this->rankarray = $newholder;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function procHeroRankArray() {
|
public function procHeroRankArray() {
|
||||||
global $database, $multisort;
|
global $database, $multisort;
|
||||||
$array = $database->getHeroRanking();
|
$array = $database->getHeroRanking();
|
||||||
$holder = array();
|
$holder = array();
|
||||||
foreach($array as $value) {
|
foreach($array as $value) {
|
||||||
$value['owner'] = $database->getUserField($value['uid'], "username", 0);
|
$value['owner'] = $database->getUserField($value['uid'], "username", 0);
|
||||||
$value['level'];
|
$value['level'];
|
||||||
|
$vaule['name'];
|
||||||
$value['uid'];
|
$value['uid'];
|
||||||
|
|
||||||
array_push($holder, $value);
|
array_push($holder, $value);
|
||||||
@@ -482,7 +491,7 @@
|
|||||||
$this->rankarray = $newholder;
|
$this->rankarray = $newholder;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function procAAttRankArray() {
|
public function procAAttRankArray() {
|
||||||
global $database, $multisort;
|
global $database, $multisort;
|
||||||
$array = $database->getARanking();
|
$array = $database->getARanking();
|
||||||
$holder = array();
|
$holder = array();
|
||||||
@@ -510,7 +519,7 @@
|
|||||||
$this->rankarray = $newholder;
|
$this->rankarray = $newholder;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function procADefRankArray() {
|
public function procADefRankArray() {
|
||||||
global $database, $multisort;
|
global $database, $multisort;
|
||||||
$array = $database->getARanking();
|
$array = $database->getARanking();
|
||||||
$holder = array();
|
$holder = array();
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
\** --------------------------------------------------- **/
|
\** --------------------------------------------------- **/
|
||||||
if(!is_numeric($_SESSION['search'])) {
|
if(!is_numeric($_SESSION['search'])) {
|
||||||
?>
|
?>
|
||||||
<center><font color=orange size=2><p class=\"error\">The user <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist or has no hero.</p></font></center>
|
<center><font color=orange size=2><p class=\"error\">The hero <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||||
<?php
|
<?php
|
||||||
$search = 0;
|
$search = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ if(!isset($_GET['id'])){ $_GET['id']='1'; }
|
|||||||
<div class="search">
|
<div class="search">
|
||||||
<span>rank<input type="text" class="text ra" maxlength="5" name="rank" value="<?php echo ($search == 0)? $start : $search; ?>" /></span>
|
<span>rank<input type="text" class="text ra" maxlength="5" name="rank" value="<?php echo ($search == 0)? $start : $search; ?>" /></span>
|
||||||
<span class="or">or</span>
|
<span class="or">or</span>
|
||||||
<span>name<input type="text" class="text name" maxlength="20" name="name" value="<?php if(!is_numeric($search)) {echo $search; } ?>" /></span>
|
<span>name<input type="text" class="text name" maxlength="30" name="name" value="<?php if(!is_numeric($search)) {echo $search; } ?>" /></span>
|
||||||
<input type="hidden" name="ft" value="r<?php echo isset($_GET['id'])? $_GET['id'] : 1; ?>" />
|
<input type="hidden" name="ft" value="r<?php echo isset($_GET['id'])? $_GET['id'] : 1; ?>" />
|
||||||
<input type="image" value="submit" name="submit" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" />
|
<input type="image" value="submit" name="submit" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user