Файл: public_html/index.php
Строк: 100
<?php
include_once ('core/base.php');
include_once ('core/head.php');
if(!isset($u)){
?>
<style>
@font-face {
font-family: ariales-matic;
src: url(css/ariales-matic.ttf);
}
.shrif {
font-family: ariales-matic, arial;
font-size: 20px;
}
</style>
<?
echo '<div class="index-block">
<div class="block center">
<center><a class="btn_start" href="/start/"></a></center>
<font color = "white"><div class = "shrif">Побеждай, властвуй и доминируй! Все что нужно тебе, находится здесь, присоединяйся!</div></font></div>
</div>';
echo '<center><div class = "b"><a class="clicker " href="/auth/"> Войти </a>
';
echo '<a class="clicker _gold md5" href="/recovery/"> Забыли пароль? </a></div></center>';
} else {
if($u['save'] == 0 && $u['tutorial'] < 15) redirect('/tutorial/'.$u['tutorial']);
if($u['cave_attacks'] > 0) $caveDiv = 'menu-link-2';
else $caveDiv = 'menu-link';
if(getCompletedCampaignOrQuest('campaign') > 0 && $u['campaign_chapter'] < 9) $campaignDiv = 'menu-link-2';
else $campaignDiv = 'menu-link';
if(getCompletedCampaignOrQuest('tasks') > 0) $tasksDiv = 'menu-link-2';
else $tasksDiv = 'menu-link';
$resId = 'res'.$u['resource_buy'];
$requiredResource = $db->query("SELECT * FROM `resources` WHERE `resource_type` = '".$resId."' AND `user` = '".$u['id']."'")->fetch_object();
if($requiredResource->count >= 100 && $u['resource_buy_time'] < time()) $shopDiv = 'menu-link-2';
else $shopDiv = 'menu-link';
echo'<div class="index-main">
<div class="block center">
<div class="menu">
<table>
<tr>
<td class="menu-link">
<a href="/arena"><img src="/images/icons/13.png" width="45" height="35"><br> Арена</a>
</td>
<td class="menu-link">
<a href="/battles"><img src="/images/icons/5.png" width="40" height="35"><br> Сражения</a>
</td>
</tr>
</table>
<table>
<tr>
<td class="menu-link">
<a href="/capture"><img src="/images/icons/6.png" width="35" height="35"><br> Захват</a>
</td>
<td class="'.$caveDiv.'">
<a href="/caves"><img src="/images/icons/17.png" width="35" height="35"><br> Пещеры</a>
</td>
</tr>
</table>
<table>
<tr>
<td class="'.$campaignDiv.'">
<a href="/campaign"><img src="/images/ic-campaign.jpg" width="35" height="35"><br> Компания</a>
</td>
<td class="'.$tasksDiv.'">
<a href="/tasks"><img src="/images/everyday-quest.jpg" width="35" height="35"><br> Ежедневные задания</a>
</td>
</tr>
</table>
<table>
<tr>
<td class="menu-link">
<a href="/borrowing/"><img src="/images/bank.png" width="35" height="35"><br> Банк</a>
</td>
<td class="menu-link">
<a href="/chat"><img src="/images/icons/11.png" width="35" height="35"><br> Чат</a>
</td>
</tr>
</table>
<table>
<tr>
<td class="menu-link">
<a href="/bag/"><img src="/images/icons/20.png" width="35" height="35"><br> Рюкзак</a>
</td>
<td class="menu-link">
<a href="/inventory"><img src="/images/icons/16.png" width="35" height="35"><br> Инвентарь</a>
</td>
</tr>
</table>
<table>
<tr>
<td class="'.$shopDiv.'">
<a href="/shop"><img src="/images/icons/24.png" width="35" height="35"><br> Магазин</a>
</td>
<td class="menu-link">
<a href="/forge"><img src="/images/icons/18.png" width="35" height="35"><br> Кузница</a>
</td>
</tr>
</table>
<table>
<tr>
<td class="menu-link">
<a href="/payment"><img src="/images/ic-gem.png" width="30px" alt="гемы"></br>Скупка ресурсов</a>
</td>
<td class="menu-link">
<a href="/rating"><img src="/images/rating.png" width="30px"></br>Лучшие игроки</a>
</td>
</tr>
</table>
</div>
</div></div>
';
echo'<div class="line"></div>';
}
include_once ('core/foot.php');