Файл: index.php
Строк: 67
<?php
if (isset($_COOKIE['nick'])){
header("Location: igra.php");
}
include ("niz/head.php");
include ("db_bse/bssest.php");
$cfg = mysql_query("SELECT * FROM `turaga_config`");
$configs = mysql_fetch_array($cfg);
echo "<div class='foot'>";
echo "<center><font color='#e1e493'>Браузерная онлайн игра <b>Тюряга</b></center></font></div>";
if(isset($error)){
echo "<font color=red><center><b><i>Данные не верны!</i></b></center></font><hr>";
}
if(isset($error2)){
echo "<font color=red><center><b><i>Профиль успешно сохранен!<br>Пройдите авторизацию!</i></b></center></font><hr>";
}
echo "<center><img src="pictures/logo.jpg" height=132 width=200><br/></center>";
$koli4estvo = mysql_query("SELECT COUNT(`nick`) FROM `turaga_pers`;");
$koluser = mysql_result($koli4estvo, 0);
$koli4estvo = mysql_query("SELECT COUNT(`usr`) FROM `turaga_online`;");
$online = mysql_result($koli4estvo, 0);
echo "<div class='foot'>";
echo "<center><font color=#999999>Сейчас в игре <b><font color=red>$online</font></b> человек, всего <b>$koluser</b></font></div>";
echo "<center>".$configs[history]."</center>";
echo '<div class="bts"></div>';
echo "<center><div class="menus"><a href="register.php">Начать играть</a></center>";
echo '<div class="bts"></div>';
echo'<form method="post" action="login.php">';
echo "<center>Логин:<br/>";
echo "<input class="button" name="nick" maxlength="200" title="Логин" emptyok="true"/><br/>";
echo "Пароль:<br/>";
echo "<input class="button" name="pass" maxlength="200" title="Пароль" emptyok="true"/><br/>";
echo '<input class="button" type="submit" value="Войти"/></center></form>';
$tik=mysql_query("SELECT * FROM `turaga_news` ORDER by `id` DESC");
$dat=mysql_fetch_array($tik);
echo "<center><div class="menus"> <a href="newsindex.php">Новости</a><small>($dat[time])</small></div>";
echo "<div class="menus"><a href="info_index.php">Об игре</a>";
echo "<a href="register.php">Регистрация</a>";
echo "<a href="newpass.php">Напомнить пароль?</a></div>";
include ("niz/niz.php");
?>