Вход Регистрация
Файл: DarkAge/index.php
Строк: 145
<?
include_once"indexup.php";
if (@
file_exists("local/game/switch.dat")){$status "<center><font color=red>Off</font></center>";}
else {
$status "<center><font color=green>On</font></center>";}
#---------------------#
$file="data/online.dat";
$lines=file("$file");
$online=count($lines);
#---------------------#
$online=round($online);
#---------------------#
$u explode(".",$login);
$file=@file("data/news.dat");
$file array_reverse($file);
$data=explode("||",$file[0]);
#---------------------#
$online=round($online);
$duuu=opendir("data/reg"); 
$all 0
while((
$k=readdir($duuu))!==false){ 
if (
$k=='.'||$k=='..'||$k=='.htaccess'||$k=='index.php') continue; $all++;} closedir($duuu);
#---------------------#

if (isset($error))
{ echo
'<center><font color="red"><b>Пароль или логин неверен.</b></font></center>'; }
switch (
$_GET['view']){
default:
echo 
'<div id="menu6"><div id="line"><div id="off"><center><b>Статус сервера '.$status.'</b></center></div></div><center><div id="vhod">';
if (!@
file_exists("local/game/switch.dat")){
echo
'
<center><font color="red"><b>Логин:</b></font></center>
    <form method="post" action="enter.php">
    <input name="log" type="log" maxlength="15" title="" emptyok="true" value=""/><br>
<center><font color="red"><b>Пароль:</b></font></center>
    <input name="pas" type="password" maxlength="10" title="Ваш пароль" emptyok="true" value=""/><br>
    <span><input class="button" type="image" src="pic/next.gif" value="Войти"></form></span>'
;}
else {
    echo
'<br/><br/><font color="red" size="5px">ИГРА ВРЕМЕННО ЗАКРЫТА</font>';
    }
echo
'
     </div></center></div><br />'
;
echo 
'
<p align="center">
    <div id="menu6"><div id="line"><div id="off"><center><b>Главное меню</b></center></div></div><div id="index_menu"></p><b>
    <p align="center"><a href="index.php?wap&view=news">-='
.$data[0].' ['.$data[1].']=-</a></p>
    <p align="center"><a href="who1.php?wap&view=online">- = Кто в игре? [<font color=lime>'
.$online.'</font>] = -</a></p>
    <p align="center"><a href="soglas.php">-=Регистрация [<font color=lime>1'
.$all.'</font>]=-</a></p>
    <p align="center"><a href="password.php?wap">-=Забыли пароль?=-</a></p>
    <p align="center"><a href="stat.php?wap">-=Статистика=-</a></p>
<p align="center">Рейты сервера:<br> адена - х15<br> опыт - х50<br> sр - х25</p><br><hr/>
<p align="center"><a href="http://vkontakte.ru/club24658994"><font color="0000ff">Мы [В]Контакте</font></a></p><br />
<p align="center">
    <a href="help.php?wap">О игре </a></b></div></div>
<p align="center">
    <a href="byaden.php?wap">Обратная связь </a>
</p>
    '
;
echo
'<p align="center"><a href="knop.php">Наша кнопка</a></p>';
break;

case 
'downloads':
$oper = @file("down/Opera_964_int_Setup.dat");
$Opera_964_int_Setup explode("|"$oper[0]);
echo
'<div id="menu7">
<b>Downloads :<br />Рекомендуемый браузер :<br /><img src="down/Opera_964_int_Setup.jpg" alt="Opera_964_int_Setup"/><li/><a href="'
.$Opera_964_int_Setup[0].'">Opera</a> PC<br /><img src="down/opera.jpg" alt="Opera_mini_5"/><li/><a href="down/opera.jar">Opera mini 5.0 b</a></b><br /><br /></div>';
break;

case 
'online':
include_once(
"online.php");
break;
case 
'news':
$file = @file("data/news.dat"); 
$total=count($file);
$file array_reverse($file);
if (empty(
$_GET['start'])) $start 0;
else 
$start $_GET['start'];
if (
$total $start 25){ $end $total; }
else {
$end $start 25; }
for (
$i $start$i $end$i++){
$udata explode("||",$file[$i]);
echo 
'<div id="menu"><div id="line"><b>'.$udata[0].'</b></div> ['.$udata[1].']<br/><i>'.$udata[2].'</i><br/></div>';
}
echo 
'<a href="index.php?wap"><b>Назад</b></a>';
break;
}

include_once
"down.php";
?>
Онлайн: 0
Реклама