Файл: style/head.php
Строк: 44
<?php
# Включаем сессии
ob_start();
session_start();
echo '
<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 http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
<meta name="viewport" content="width=device-width; initial-scale=1.">
<link rel="stylesheet" href="/style/style.css" type="text/css"/>
</head>
';
include_once $_SERVER["DOCUMENT_ROOT"].'/system/system.php';
$t = microtime(1);
if(!$title) $title = 'UpCMS';
echo '<title>'.$title.'</title>';
echo '<div class="title">'.$title.'</div>';
if($user){
echo '<table style="width:100%" cellspacing="0" cellpadding="0"><tr>
<td style= width:50%;><center><div class="head_p"><a href="/kabinet"><center>Кабинет</div></center></a></td>
<td style= width:50%;><div class="head_p2"><a href="/exit"><center>Выход</div></center></a></td> </tr></table>';
}else{
echo '<table style="width:100%" cellspacing="0" cellpadding="0"><tr>
<td style= width:50%;><center><div class="head_p"><a href="/auth"><center>Авторизация</div></center></a></td>
<td style= width:50%;><div class="head_p2"><a href="/reg"><center>Регистрация</div></center></a></td> </tr></table>';
}
if($user){
$coun_jorn = $con->query('SELECT * FROM `journal` WHERE `id_user` = "'.$user['id'].'" and `read` = "0"')->num_rows;
if($coun_jorn > 0){
echo '<div class="link"><a href="/journal">Журнал : '.$coun_jorn.'</a></div>';
}
}
?>