View file vobog-wmzo_ru/system/tfoot.php

File size: 3.11Kb
<?php
$time_now = vremja();

if (!isset($user) || !$user) {
    echo '<div class="cntr-new" style="padding: 20px 0;"><font color="silver">' . $time_now . '<br> Война Богов, 16+</font></div>';
} else {
    $userId = (int)$user['id'];
    $clanId = isset($user['id_clan']) ? (int)$user['id_clan'] : 0;
    
    $clanNotify = (!empty($user['clan_chat_read']) && $user['clan_chat_read'] >= 1) ? ' <b style="color:#00ff00;">+</b>' : '';
    $chatNotify = (!empty($user['chat_read']) && $user['chat_read'] >= 1) ? ' <b style="color:#00ff00;">+</b>' : '';
    $countOnline = (int)db_query("SELECT COUNT(*) FROM `users` WHERE `online` > ?", [time() - 300])->fetchColumn();

    echo '<div class="hr"><div class="hr_end"></div></div>
    <table align="center" width="100%" style="margin-top:10px;"><tbody><tr>
        <td align="center"><a class="no-dec-new" href="/index.php"><div style="width:77px; height:79px; background:url(/design/images/footer-new-style/main_icon.png) no-repeat; background-size:cover; margin:0 auto;"></div><div style="margin-top:5px; color:#49acfc; font-size:11px;">Главная</div></a></td>
        <td align="center"><a class="no-dec-new" href="/profile.php?id=' . $userId . '"><div style="width:77px; height:79px; background:url(/design/images/footer-new-style/user_icon.png) no-repeat; background-size:cover; margin:0 auto;"></div><div style="margin-top:5px; color:#49acfc; font-size:11px;">Герой</div></a></td>
        <td align="center"><a class="no-dec-new" href="/clan/index.php?id=' . $clanId . '"><div style="width:77px; height:79px; background:url(/design/images/footer-new-style/clan_icon.png) no-repeat; background-size:cover; margin:0 auto;"></div><div style="margin-top:5px; color:#49acfc; font-size:11px;">Клан' . $clanNotify . '</div></a></td>
    </tr></tbody></table>

    <div class="cntr-new">
        <br>
        <div class="chest3-new">
            <a href="/forum/"><span class="chest3-new">Форум</span></a> | 
            <a href="/chat/"><span class="chest3-new">Чат' . $chatNotify . '</span></a> | 
            <a href="/news"><span class="chest3-new">Новости</span></a>
        </div>
        <div style="padding-top: 8px;"></div>
        <div class="chest3-new">
            <a href="/about"><span class="chest3-new">Об игре</span></a> | 
            <a href="/user/online.php"><span class="chest3-new">Онлайн: ' . $countOnline . '</span></a> | 
            <a href="/exit.php"><span class="chest3-new">Выход</span></a>
        </div>
        <div style="padding-top: 8px;"></div>
        <div class="chest3-new"><a href="/support"><span class="chest3-new">Техническая поддержка</span></a></div>';

    if (isset($user['admin']) && (int)$user['admin'] === 2) {
        echo '<br><center><a href="/panel/" style="text-decoration:none;"><span class="chest3-new" style="color:#ff4444; border:1px solid #ff4444; padding:2px 10px; border-radius:3px;">Панель управления</span></a></center>';
    }

    echo '<br><font color="silver">' . $time_now . '<br>Война Богов 2026, 16+</font>
    </div>';
}

show_msg();
echo '</body></html>';
?>