Вход Регистрация
Файл: core/head.php
Строк: 78
<?php
echo '<?xml version="1.0" encoding="utf-8"?>';
echo 
'<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">';
echo 
'<meta http-equiv="Content-type" content="text/html;charset=UTF-8">';
echo 
'<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">';
echo 
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">';
echo 
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">';

# Убираем картинки
$header_title no_img($header);
        
echo
'
<head>
    <script src="/js/jquery.min.js"></script>
    <script src="/js/menu_us.js"></script>
    
    <link rel="stylesheet" href="/style/maniac.css" type="text/css"/>
    <link rel="icon" href="/favicon.ico" type="image/x-icon"/>
    
    <title>'
.$header_title.'</title>
</head>
<body>
<div>'
;

// закрывается в foot.php
echo'<div class="content">';

if(isset(
$user['id']))
{
    if(!
check_mail())
    {
        echo
'<div class="listing-information">';
            echo
'<font color="red"><strong>Для полноценного использования функционала игры, пожалуйста, <a href="/profile/mail_edit/">подтвердите E-mail</a> указанный при регистрации!</strong></font>';
        echo
'</div>';
    }
    
    echo
'<div class="header-text-razdel"> ';
        echo
''.($header_link '<a href="'.$header_link.'">'.$header.'</a>' $header).'';
    echo
'</div>';

    
# Блок уведомлений (Ajax)
    
echo' <div id="info_menu" class="class="menu_link3"">';
    echo
'</div>';

    echo

    <div class="class="sndr bl"">
        <div class = "menu_link3">
            '
.($user['rasa']?'<img width="14" src="/images/guild/'.$user['rasa'].'.png">':'').' '.$user['nick'].'
            <span class = "float-right">
            <img src="/images/kristall.png" alt=""/> '
.$user['kristall'].'
            <img src="/images/gold.png" alt=""/> '
.$user['gold'].'
            <img src="/images/life.png" alt=""/> '
.$user['health'].'
            '
.($user['mana']? '<img src="/images/mana.png" alt=""/> '.$user['mana'].'' '').'
            </span>
            '
.level().'
        </div>
    </div>
    '
;


    
# Новости
    
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']))
    {
        
$q mysql_query("SELECT * FROM `news` ORDER BY `id` DESC LIMIT 1");
        
$news mysql_fetch_assoc($q);
        if (
$user[news_read] == 1)
        {
            echo 
"<div class='listing-information'>
            
$news[title]<br />
            <a href='/news/
$news[id]'>[Читать]</a><a href='?news_read'>[Скрыть]</a></div>";
        }
    }
    
#

    
if (isset($_SESSION['message']))
    {
        echo 
"<div class='listing-information'> $_SESSION[message]</div>";
        
$_SESSION['message']=NULL;
    }
    if (isset(
$_SESSION['err']))
    {
        echo 
"<div class='listing-information'> $_SESSION[err]</div>";
        
$_SESSION['err']=NULL;
    }
    if(isset(
$user['id']))
    {
        if (isset(
$_SESSION['light']))
        {
            echo 
"<div class='listing-information'>$_SESSION[light]</div>";
            
$_SESSION['light']=NULL;
        }
    }
}

# Обработка банов
echo ban();
ban_ip();
?>
Онлайн: 0
Реклама