Размер файла: 1.28Kb
<?php
header('Cache-control: no-cache');
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>
<link rel="shortcut icon" href="http://'.$set['site'].'/favicon.ico"/>
<link rel="stylesheet" href="http://'.$set['site'].'/style/style.css" type="text/css"/>
<title>'.$title.'</title>
</head>
<body>';
echo '<div class="logo"><img src="/style/img/logo.png"></div>';
if ($user['id']) {
echo '<table style="width:100%" cellspacing="0" cellpadding="0" class="panelk"><tr>
<td class="menu" ><a href="/kab"><center>Кабинет</font></a></td>
<td class="menu" ><a href="/exit.php"><center>Выход</font></a></td></tr></table>';
$message = mysql_result(mysql_query("SELECT COUNT(id) FROM `message` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
echo ''.($message > 0 ? '<div class="menu"><a href="/message">Новое сообщение' : '') . '</a></div>';
}else{
echo '<table style="width:100%" cellspacing="0" cellpadding="0" class="panelk"><tr>
<td class="menu" ><a href="/login.php"><center>Авторизация</font></a></td>
<td class="menu" ><a href="/reg.php"><center>Регистрация</font></a></td></tr></table>';
}
?>