Файл: DarkAge/index3.php
Строк: 98
<?
include_once"up.php";
if (@file_exists("local/game/switch.dat")){$status = "<font color=red>Off</font>";}
else {$status = "<font color=green>On</font>";}
#---------------------#
$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"><b>Статус сервера '.$status.'</b></div></div><center><div id="vhod">';
if (!@file_exists("local/game/switch.dat")){
echo'
<form method="post" action="enter.php">
<input name="log" type="log" maxlength="15" title="Ваш логин" emptyok="true" value="логин"/><br>
<input name="pas" type="password" maxlength="10" title="Ваш пароль" emptyok="true" value="фмиа."/><br>
<input class="button" type="submit" title="Войти в игру" value="Войти"/></form>';}
else {
echo'<br/><br/><font color="red" size="5px">GAME CLOSED</font>';
}
echo'
</div></center></div><br />';
echo '
<div id="menu6"><div id="line"><div id="off"><b>Главное меню</b></div></div><div id="index_menu"><b>
<a href="index.php?wap&view=news">Новости ['.$data[1].']</a><br />
<a href="index.php?wap&view=online">Кто в игре? ['.$online.']</a><br />
<a href="reg.php">Регистрация ['.$all.']</a><br />
<a href="password.php?wap">Забыли пароль?</a><br />
<a href="stat.php?wap">Статистика</a><br />
<a href="index.php?wap&view=downloads">Downloads</a><br />
<a href="gameshop.php">Магазин</a><br />
<a href="help.php?wap">О игре </a></b></div></div>
';
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";
?>