Сделать стартовой - rss - Добавить в избранное

"; else $sQuan = ""; return $sQuan; } function currentHeroRatingByNum($nNum,$heroesList){ return $curhero = explode("|",$heroesList[$nNum]); } function currentHeroRatingById($nId,$heroesList){ $nNum = 0; do{ $curhero = explode("|",$heroesList[$nNum]); $nNum++; }while($curhero[0]!=$nId && $nNum
". $this->pageQuantity(). "
Рейтинг: Торговые палатки
Рейтинги || Палатки heroesList = $this->loadHeroesList($sPath); } function loadHeroesList($sPath){ $rf=""; @$handle = fopen ($sPath, "r"); if( ! @$handle ) { return $this->Error=1; } else { while (!feof ($handle)) { $rf .= fgets($handle, 4096); } fclose ($handle); $HeroesList = explode("\n",$rf); } return $HeroesList; } function pageQuantity(){ $this->pageQuantity = count($this->heroesList)/100; $this->pageQuantity = ceil($this->pageQuantity); $quan=''; if (@$_GET['quan']==null) $tmp2 = 1; else $tmp2 = $_GET['quan']; for ($i=1;$i<=$this->pageQuantity;$i++){ $num = $i; if ($tmp2==$i) $num = "".$num.""; $quan .= "$num "; } if ($this->pageQuantity>1) $sQuan = "
Страницы: $quan
"; } function insertRow($num){ $sInfo="Информация о персонаже {$this->aAllUsersStats[$num][2]}"; $iter = $num+1; switch ($this->aAllUsersStats[$num][1]){ case 1: $row = ''; break; case 2: $row = ''; break; case 3: $row = ''; break; case 4: $row = ''; break; case 5: $row = ''; break; case 6: $row = ''; break; } if ($this->aAllUsersStats[$num][3]==='' || $this->aAllUsersStats[$num][3]==='0') $name = '-'; else $name = $this->aAllUsersStats[$num][3]; $sRow = " $row "; echo $sRow; } function insertFooter(){ echo "

п/п
№ палатки Ряд Персонаж Название Рейтинг Содержимое
ЗолотойПервый СеребряныйВторой СеребряныйПервый БронзовыйВторой БронзовыйТретий Бронзовый
$iter {$this->aAllUsersStats[$num][0]} {$this->aAllUsersStats[$num][2]} $sInfo {$name} {$this->aAllUsersStats[$num][4]} Вещи

". $this->pageQuantity(). "
"; } function sort(){ /*for ($i=0;$iaAllUsersStats)/2);$i++){ if ($this->aAllUsersStats[$i][4]<$this->aAllUsersStats[$i+1][4]) { $Min=$i+1; $Max=$i; }else{ $Min=$i; $Max=$i+1; } for ($j=$i+2;$jaAllUsersStats)-$i;$j++){ if ($this->aAllUsersStats[$j][4]<$this->aAllUsersStats[$Max][4]) $Max=$j; else if ($this->aAllUsersStats[$j][4]>$this->aAllUsersStats[$Min][4]) $Min=$j; } $tmp=$this->aAllUsersStats[$i]; $this->aAllUsersStats[$i]=$this->aAllUsersStats[$Min]; $this->aAllUsersStats[$Min]=$tmp; if ($Max==$i) $Max=$Min; $tmp=$this->aAllUsersStats[count($this->aAllUsersStats)-$i]; $this->aAllUsersStats[count($this->aAllUsersStats)-$i]=$this->aAllUsersStats[$Max]; $this->aAllUsersStats[$Max]=$tmp; }*/ for($i=0;$iaAllUsersStats)-1;$i++){ $j=count($this->aAllUsersStats)-1; while ($j>$i) { if (@$this->aAllUsersStats[$j-1][4]<$this->aAllUsersStats[$j][4]){ $tmp=$this->aAllUsersStats[$j-1]; $this->aAllUsersStats[$j-1]=$this->aAllUsersStats[$j]; $this->aAllUsersStats[$j]=$tmp; } $j--; } } } function setAllStats(){ for ($i=0;$iheroesList);$i++){ $this->aAllUsersStats[count($this->aAllUsersStats)] = $this->currentHeroRatingByNum($i,$this->heroesList); } } } $heroes = new CHeroesList('http://gapi.ereality.ru/market_rating.txt'); if ($heroes->Error==0){ $heroes->insertTableHead(); $heroes->setAllStats(); $heroes->sort(); if (@$_GET['quan']==null) $quantity=100; else { if ($_GET['quan']!=1) $quantity=(integer)$_GET['quan']*100; else $quantity=(integer)$_GET['quan']+100; } if ($quantity==100 || $quantity==101){ $begin = 0; if ($quantity==101) --$quantity; }else{ $begin = $quantity-100; } if (count($heroes->heroesList)<100) $quantity = count($heroes->heroesList)-1; if (count($heroes->heroesList)<$quantity) $quantity = count($heroes->heroesList)-1; for ($i=$begin;$i<$quantity;$i++){ $heroes->insertRow($i); } $heroes->insertFooter(); }else{ Echo "
Сервис временно недоступен
"; return; } ?>

© Архонт | МатерыйSkyDreamer

золото артефакты образы инструменты +1

Грани Реальности
{changeskin}