Файл: vitaliy_nosov/public_html/config/header.php
Строк: 66
<?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 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru"><head><meta http-equiv="Content-Type"
content="text/html; charset=UTF-8" />
<title>'.$title.'</title>
<meta http-equiv="Cache-Control" content="max-age=30, must-revalidate">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/style/style.css" type="text/css"/>
</head><body><div>';
if(isset($user)){
$n_mail = mysql_result(mysql_query("SELECT SUM(`new_msg`) FROM `kont` WHERE `id_user` = '".$user[id]."' AND `new_msg` > 0"),0);
$energy_time = intval($user['energy_time']-time());
if($user['energy'] == $user['max_energy']) $energy_time = NULL;
$time_regen = intval($user['time_regen']-time());
if($user['hp'] == $user['max_hp']) $time_regen = NULL;
if($user['online'] > time() - 60) $onlines = 'user.png';
if($user['online'] < time() - 60) $onlines = 'user.png';
?>
<div class="verh"><img src="/style/health.png"><?=$user['hp'];?>/<?=$user['max_hp'];?> <img src="/style/energy.png"><?=$user['energy'];?>/<?=$user['max_energy'];?> <span style="float: right;"><img src="/style/level.png"><?=$user['level'];?> <img src="/style/gold.png"><?=$user['gold'];?> <img src="/style/silver.png"><?=$user['cristal'];?>
</span></div>
<div class="title"><?=$title;?><span style="float: right;">Время: <?=date("H:i", time());?></span></div>
<?
$op = $user['exp']/$exp_next['exp']*100;
echo '<div class="exp_polos"><div class="progress" style="width:'.$op.'%"> </div></div>';
if(isset($_SESSION['notif'])){
echo ' <div class="block center"><font size="3"> '.$_SESSION['notif'].'</div></font></font>';
$_SESSION['notif']=NULL;
}
if($n_mail != 0){
?>
<div class="block center"> <a href="/pers/my_mail/"><img src="/style/mail.png"> Почта +<?=$n_mail;?></a> </b> </div><?
}
}
?>