Файл: system/head.php
Строк: 50
<?echo '<?xml version="1.0" encoding="utf-8"?>
<!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">
<head>';
list($msec, $sec) = explode(chr(32), microtime()); // время запуска скрипта
$conf['headtime'] = $sec + $msec;
$time=&time();
if(!isset($user)){
if ($sys['thems']=='0')echo '<link rel="stylesheet" type="text/css" href="'.URL.'/style/themas/zima/style.css">';;
if ($sys['thems']=='1')echo '<link rel="stylesheet" type="text/css" href="'.URL.'/style/themas/leto/style.css">';
}else {
if($user['thems'] ==0)echo '<link rel="stylesheet" type="text/css" href="'.URL.'/style/themas/zima/style.css">';
if($user['thems'] ==1)echo '<link rel="stylesheet" type="text/css" href="'.URL.'/style/themas/leto/style.css">';
}
echo '<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml xml;charset=UTF-8"/>
<title>ZeoCMS|'.$title.'</title>
</head>';
if(!isset($user)){
if ($sys['thems']=='0')echo '<div class="head"><img src="/style/themas/zima/logo.png"></div>';
if ($sys['thems']=='1')echo '<div class="head"><img src="/style/themas/leto/logo.png"></div>';
}else {
if($user['thems'] ==0)echo '<div class="head"><img src="/style/themas/zima/logo.png"></div>';
if($user['thems'] ==1)echo '<div class="head"><img src="/style/themas/leto/logo.png"></div>';
}
echo '<div class="title">';
echo ' '.$title.'';
echo '</div>';
if(!isset($user)){echo '<div class="aut"><a href="/aut">Вход</a></td> <td class="r"><a href="/reg">Регистрация</a></div>';
}
else {
echo '<div class="aut">';
echo ' <a href="/'.$user['id'].'">'.$user['nick'].'</a> |';
echo ' <a href="/mycab">Кабинет</a> |';
if(isset($user)){echo ' <a href="/exit">Выход</a>';}
if($admin >= 2)echo ' | <a href="/adminpanel">Админка</a>';
echo '</div>';
$k_new=mysql_result(mysql_query("SELECT COUNT(`mail`.`id`) FROM `mail`
LEFT JOIN `users_konts` ON `mail`.`id_user` = `users_konts`.`id_kont` AND `users_konts`.`id_user` = '$user[id]'
WHERE `mail`.`id_kont` = '$user[id]' AND (`users_konts`.`type` IS NULL OR `users_konts`.`type` = 'common' OR `users_konts`.`type` = 'favorite') AND `mail`.`read` = '0'"),0);
if ($k_new!=0)
echo "<div class='uveds'><img src='/style/imgs/mail.png'><a href='/nmail'>Сообщение +$k_new </a></div>n";
$nj=mysql_result(mysql_query("SELECT COUNT(*) FROM `lenta` WHERE `komy` = '$user[id]' AND `readlen` = '0'"), 0);
if ($nj>0)echo "<div class='uveds'><img src='/style/imgs/lenta.png'> <a href='/lenta'>Журнал<font color='#FF0000'> $nj</font></a></div>";
}
?>