авторизация
Вход на Новостную ленту под своим ником можно произвести из игры «
Грани Реальности
».
Информация > Новостная лента
Популярное
Весенний патч правок xmhgibgog2
День Святого Патрика
Апрельский патчноут
CAPYBARA TIME
Еще один небольшой патчноут
- rss -
Рейтинги | Лидеров склонностей
Рейтинги || Турнирный
heroesList = $this->loadHeroesList($sPath); $this->heroesList_old = $this->loadHeroesList($sPath_old); $this->heroesList_week = $this->loadHeroesList($sPath_week); } 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 = (integer)$this->pageQuantity; $quan=''; if (@$_POST['quan']==null) $tmp2 = 1; else $tmp2 = $_POST['quan']; for ($i=1;$i<=$this->pageQuantity;$i++){ $num = $i; if ($tmp2==$i) $num = "
".$num."
"; $quan .= "
$num
"; } if ($this->pageQuantity>1) $sQuan = "
Страницы: $quan
"; 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
currentHeroRatingById($nId,$this->heroesList); $curhero_old = $this->currentHeroRatingById($nId,$this->heroesList_old); $curhero_week = $this->currentHeroRatingById($nId,$this->heroesList_week); if(@$curhero_old[8]!=0){ @$this->comparedHero[0] = $curhero[8]>$curhero_old[8] ? '+'.($curhero[8]-$curhero_old[8]) : ''.($curhero[8]-$curhero_old[8]); }else @$this->comparedHero[0] = 0; if(@$curhero_week[8]!=0){ @$this->comparedHero[2] = $curhero[8]>$curhero_week[8] ? '+'.($curhero[8]-$curhero_week[8]) : ''.($curhero[8]-$curhero_week[8]); }else{ @$this->comparedHero[2] = 0; } if(@$curhero_old[10]!=count($this->heroesList_old)-1){ @$this->comparedHero[1] = $curhero[10]>$curhero_old[10] ? $curhero_old[10]-$curhero[10] : $curhero_old[10]-$curhero[10]; }else @$this->comparedHero[1] = -1001; if(@$curhero_week[10]!=count($this->heroesList_week)-1){ @$this->comparedHero[3] = $curhero[10]>$curhero_week[10] ? $curhero_week[10]-$curhero[10] : $curhero_week[10]-$curhero[10]; }else{ @$this->comparedHero[3] = -1001; } return $this->comparedHero; } function setArrowPic(){ $sArrows = ""; if ($this->comparedHero[1]==-1001) $sArrows .= "
{$this->comparedHero[0]}
"; elseif ($this->comparedHero[1]>0) $sArrows .= "
+{$this->comparedHero[1]}
{$this->comparedHero[0]}
"; elseif ($this->comparedHero[1]==0) $sArrows .= "
{$this->comparedHero[0]}
"; elseif ($this->comparedHero[1]<0) $sArrows .= "
{$this->comparedHero[1]}
{$this->comparedHero[0]}
"; $sArrows .= "
"; if ($this->comparedHero[3]==-1001) $sArrows .= "
{$this->comparedHero[2]}
"; elseif ($this->comparedHero[3]>0) $sArrows .= "
+{$this->comparedHero[3]}
{$this->comparedHero[2]}
"; elseif ($this->comparedHero[3]==0) $sArrows .= "
{$this->comparedHero[2]}
"; elseif ($this->comparedHero[3]<0) $sArrows .= "
{$this->comparedHero[3]}
{$this->comparedHero[2]}
"; return $sArrows; } function insertTableHead(){ @$pagenum = $_POST['quan']; echo "
". $this->pageQuantity(). "
№
п/п
Персонаж
Очки
Позиция за день
Рост за день
Позиция за неделю
Рост за неделю
"; } function insertRow($num){ $this->currentHero = $this->currentHeroRatingByNum($num,$this->heroesList); $this->compareHeroes($this->currentHero[0]); $sInfo="
"; $historyRating = $this->setArrowPic(); $iter = $num+1; else $clan=""; $sklonnalt[1]="Нейтрал"; $sklonnalt[2]="Усганоли Хоунихи | Игнесс"; $sklonnalt[3]="Кэна ка Кхотсо | Раанор"; $sklonnalt[4]="Тереба-о-Бисса | Тарбис"; $sklonnalt[5]="Тала Иголиига | Витарра"; $sklonnalt[6]="Аскиру Чуратай | Дримнир"; $tmp=$this->currentHero[1]; if ($this->currentHero[1]!=0) $sklonn="
"; else $sklonn=" "; $sRow = "
$iter
$sklonn {$this->currentHero[4]}[{$this->currentHero[5]}] $sInfo
{$this->currentHero[1]}
{$historyRating}
"; echo $sRow; } function insertFooter(){ echo "
". $this->pageQuantity(). "
"; } } $heroes = new CHeroesList('http://ratings.ereality.ru/txt/r6_1.txt','http://www.news.ereality.ru/tip/rat/r6_1.txt','http://www.news.ereality.ru/tip/rat/r6_1_week.txt'); if ($heroes->Error==0){ $heroes->insertTableHead(); if (@$_POST['quan']==null) $quantity=100; else { if ($_POST['quan']!=1) $quantity=(integer)$_POST['quan']*100; else $quantity=(integer)$_POST['quan']+100; } if ($quantity==100 || $quantity==101){ $begin = 0; if ($quantity==101) --$quantity; }else{ $begin = $quantity-100; } for ($i=$begin;$i<$quantity;$i++){ $heroes->insertRow($i); } $heroes->insertFooter(); }else{ Echo "
Сервис временно недоступен
"; return; } ?>
©
SkyDreamer
Цитатник граней
Цитата №20379
15:30:22 Смотритель для [Эльсиора]: Вы получили: `Х` 15:44:01 Смотритель для [Эльсиора]: Вы получили: `У` 15:44:57 Пеплыч для [Эльсиора]: назовёте ...
праздники
cегодня
нет праздников
завтра
праздник Рыбака
ближайшие праздники
Лесоруб - 12564
Повар - 22693
враждующие фракции
Раанор
нет врагов
Тарбис
враги
Дримнир
враги
Игнесс
враги
Витарра
враги
события
Грани. 8 лет
(декабрь 2013)
Грани. 7 лет
(декабрь 2012)
Грани. 5 лет
(декабрь 2011)
Осеннее обострение
(лето 2010)
Грани. 4 года
(декабрь 2009)
Снегурочка - 2009
Летние зарисовки
(лето 2008)
Грани. 2 года
(декабрь 2007)
ERеальная Ненависть
(лето 2007)
{changeskin}