|
<?php
/*
-----------------------------------------
Автор: -=КотЭ=-(-=MTV=-) и Shot(Robber)
Бесплатный WAP движок: Strongcms
Контакты: 0664452670(МТС) ибо ICQ(7296000)
Файл: header.php
-------------------------------------------
*/
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">
<head>';
/******** Переменная вывода настроек сайта ******/
$sql = mysql_fetch_assoc(mysql_query("SELECT * FROM `settings` WHERE `id` = '1'"));
/******************* Вывод **********************/
echo '<meta name="description" content="'.$sql['des'].'" />
<meta name="keywords" content="'.$sql['key'].'" />
<link rel="shortcut icon" href="'.$HOME.'/favicon.ico"/>
<link rel="stylesheet" href="'.$HOME.'/design/standart.css" type="text/css"/>
<meta name="Reply-to" content="MTV shunia22 and Shot_"/>
<meta name="copyright" content="'.$HOME.'" />
<meta name="author" content="shunia22 -=КотЭ=-(-=MTV=-) и Shot_(Robber)"/>
<title>'.$title.'</title>
</head><body>';
########################
$len = mysql_result(mysql_query("SELECT COUNT(id) FROM `lenta` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
$mes = mysql_result(mysql_query("SELECT COUNT(id) FROM `message` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
if(!$user['id']) {
echo'<div class="s" style="border-bottom:none;">
<table style="width:100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="vertical-align:top;width:10%;">
<center>
<a href="'.$HOME.'/login.php"class="ap" title="Вход">
Вход
</a>
</center>
</td>
<td style="vertical-align:top;width:10%;">
<center><a href="'.$HOME.'/reg.php"class="ap" title="Регистрация">
Регистрация
</a>
</center>
</td>
</center>
</td>
</tr>
</tbody>
</table>
</div>';
} else {
echo'<div class="s" style="border-bottom:none;">
<table style="width:100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="vertical-align:top;width:10%;">
<center>
<a href="'.$HOME.'/user/cab.php"class="ap" title="Кабинет">
<img class="ico" align="middle" src="/images/vcard.png" alt="*">
</a>
</center>
</td>
<td style="vertical-align:top;width:10%;">
<center><a href="'.$HOME.'/mes/"class="ap" title="Почта">
<img class="ico" align="middle" src="/images/mail2.png" alt="*">('.$mes.')
</a>
</center>
</td>
<td style="vertical-align:top;width:10%;">
<center>
<a href="'.$HOME.'/lenta.php"class="ap" title="Оповещения">
<img class="ico" align="middle" src="/images/warning.png" alt="*">('.$len.')
</a>
</center>
</td>
</tr>
</tbody>
</table>
</div>';
$x=mysql_num_rows(mysql_query("SELECT `id` FROM `friends` WHERE (`user1` = '$user[id]' OR `user2` = '$user[id]') AND `ok` = '0' AND `who` <> '$user[id]'"));
if (($x!=0) && $user)echo '<div class="user"><a href="/user/frends/friends_new.php">др (+'.$x.')</a></div>';
}
########################
$t = microtime(1);
?>