Вход Регистрация
Файл: public_html/modules/shop/index.php
Строк: 34
<?php
$root 
$_SERVER['DOCUMENT_ROOT'];
include_once (
$root.'/core/base.php');
falseauth();
$header "Магазин снаряжения";
include_once (
$root.'/core/head.php');
echo
'<div class="index-shop">
<div class="block center">
<div class="menu">
      <table>
        <tr>
          <td class="menu-link">
            <a href="/shop/head"><img src="/images/heads.png" width="35" height="35"><br> Шлем</a>
          </td>
                        <td class="menu-link">
                <a href="/shop/body"><img src="/images/tors.png" width="40" height="35"><br> Доспех</a>
              </td>
                  </tr>
      </table>
      <table>
        <tr>
          <td class="menu-link">
            <a href="/shop/boots"><img src="/images/foot.png" width="35" height="35"><br> Обувь</a>
          </td>
          <td class="menu-link">
            <a href="/shop/weapon"><img src="/images/attack.png" width="35" height="35"><br> Оружие</a>
          </td>
        </tr>
      </table>
      <table>
        <tr>
          <td class="menu-link">
            <a href="/potions"><img src="/images/zel.png" width="35" height="35"><br> Зелья</a>
          </td>
          <td class="menu-link">
            <a href="/skills"><img src="/images/vip.jpg" width="35" height="35"><br> Навыки</a>
          </td>
        </tr>
      </table>
          '
;
$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())
{
    echo 
'<td class="menu-link">
            <a href="/sell"><img src="/images/resources/'
.$resId.'.png" width="40" height="40"><br> Продать 
            ресурсы</a>
          </td>'
;
}
echo 
'</tr></table></div></div></div>';
echo 
"<div class = 'line'></div>";
include_once (
$root.'/core/foot.php');
Онлайн: 2
Реклама