Файл: mlord.ru/design/head.php
Строк: 88
<head>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
<link rel="shortcut icon" href="/design/22.ico" type="image/x-icon" />
<link rel="stylesheet" href="/design/style.css" type="text/css"/>
<meta name="description" content="<?=$config['description']?>" />
<meta name="keywords" content="<?=$config['keywords']?>" />
</head>
<title><?=$title?></title>
<?
// Автор проекта GEARBAKC
// Офф.сайт GEARNET.RU
// http://gearnet.ru/users/1
// Только эксклюзивные скрипты!
echo !isset($user['id'])?'<center><a href="/"><img src="/design/mlord.png"></a></center>':null;
echo isset($user['id']) && $user['logo']==0?'<center><a href="/"><img src="/design/mlord.png"></a></center>':null;
if(isset($user['id'])){
echo '<div class="razdmenu14"><img src="/design/img/55.png" width="15"> '.$user['lvl'].' <img src="/design/img/zicz.png">'.$user['boi'].' <img src="/design/img/heart.png" width="15"> '.$user['hp'].'
</div><div class="tbtop90"></div>';
$mail_new=$db->query("SELECT * FROM `mail` WHERE `id_ank` = '$user[id]' AND `read`='1'")->rowCount();
$not_new=$db->query("SELECT * FROM `notice` WHERE `id_user` = '$user[id]' AND `read`='1'")->rowCount();
$count_lvl=$db->query("SELECT id FROM `lvl` WHERE `lvl`='".($user['lvl']+1)."'")->rowCount();
if($count_lvl!=0){
$lvl = $db->query("SELECT * FROM `lvl` WHERE `lvl`='".($user['lvl']+1)."'")->fetch();
$proz=intval(abs($user['exp']/($lvl['exp']/100)));
$p_hp=intval(abs($user['hp']/($user['hp_max']/100)));
echo '<div class="Rating-Bg"><div class="Rating-BgInhp" style="width:'.$p_hp.'%;"></div></div><div class="rzd"></div>
<div class="Rating-Bg"><div class="Rating-BgIn" style="width:'.$proz.'%;"></div></div>';
}
if ($_SERVER['PHP_SELF'] == '/index.php'){
echo '<div class="razdmenu">'.($user['save']==0?'<a href="/save" class=""><div class="links-purple">Сохранить игрока</div></a>':null).'
<a href="/profile" class=""><div class="links-purple">Мой персонаж</div></a>
<a href="/mail" class=""><div class="links-purple">Почта '.($mail_new!=0?'(+'.$mail_new.')':null).'</div></a>
<a href="/notice" class=""><div class="links-purple">Уведомления '.($not_new!=0?'(+'.$not_new.')':null).'</div></a></div>';
}
echo '<div class="rzd"></div>';
require_once(H.'core/news.php');
}
if(isset($_SESSION['msg'])){
echo '<div class="h1"><center>'.$_SESSION['msg'].'</center></div><div class="rzd"></div>';
unset($_SESSION['msg']);
}
if(isset($user['id'])){
if($count_lvl==1){
$lvl = $db->query("SELECT * FROM `lvl` WHERE `lvl`='".($user['lvl']+1)."'")->fetch();
if($user['exp']>=$lvl['exp']){
$stmt = $db->prepare("UPDATE `users` SET `lvl`=?, `gold`=`gold`+?, `exp`='0', `boi_max`=`boi_max`+'1' WHERE `id`=?");
$stmt -> execute(array($lvl['lvl'], $lvl['gold'], $user['id']));
$_SESSION['msg']='Вы достигли '.$lvl['lvl'].' уровня и получили '.$lvl['gold'].' золота!';
header('Location:/');
}
}
}
?>