Файл: tortuga/index.php
Строк: 40
<?
require_once 'core/system.php';
$header = 'Тортуга: Южное течение | Лучшая мобильная онлайн игра 2016';
require_once H.'core/head.php';
if (isset($user) && isset($_GET['news_read']))
{
mysql_query("update `user` set `news_read` = '0' where `id` = '$user[id]' limit 1");
$_SESSION['message'] = "Новость успешно скрыта"; // Оповещаем
header("Location: /?");
exit;
}
global $user;
if(isset($user['id'])){
header("Location: /game.php");
}else{
$gamers = mysql_result(mysql_query("SELECT COUNT(*) FROM `user`",$db), 0);
echo "<div class='line'></div>
<div class='player center'>
<div class='panel-inner'>
<img src='/style/theme/img/rcr.png'>
<div class='kn'>
<a href='reg.php'><img src='/style/theme/img/new.png' style = 'margin-top: -25px;'></a>
</div>";
require_once 'vk.php';
$reytie = $rate['exp']*2;
$reytis = $rate['silver']*2;
echo "<div style=' border: 1px solid orange; margin: 30px; padding: 5px; border-radius: 8px; background: #2F4F4F;'>
Только сейчас, получи в подарок за регистрацию импа!
<img src='/img/imps/start.png' width='30' height='30' alt=''/></div>
Серебро: <font color='orange'>x$reytie</font><br>
Опыт: <font color='orange'>x$reytis</font><br><br>
<font color='orange'>«Tortuga»</font> - Это мобильная MMORPG с 2D графикой, присоединяйся к $gamers игрокам!
Сражайся в PvP и PvE боях, создай клан, захвати замок и стань самым сильным пиратом!";
echo '<form class="" method="post" action="/auth.php?act=post"><br />
<input class="text medium-text" type="text" name="nick" /><br />
<input class="text medium-text" type="password" name="pass" />
<div class="bot">
<input type="submit" value=""/>
</div><br />
</form></div></div>';
}
require_once H.'core/foot.php';
?>