View file template/designs/shcms_web/head.php

File size: 2.56Kb
<?
header("Content-type: text/html");
echo '<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';?>
<title><?echo $shcmsengine['title'];?></title>
<link rel="stylesheet" href="/template/designs/shcms_web/style.css" type="text/css"/>
<script type="text/javascript" src="/template/designs/shcms_web/js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="/template/designs/shcms_web/js/jquers.js"></script>
<?
$meta_settings = mysql_fetch_array(mysql_query("SELECT * FROM settings_shcms"));
echo '<link rel="shortcut icon" href="favicon.ico" />';
echo '<meta name="description" content="'.$meta_settings['description'].'" />';echo "\n";
echo '<meta name="keywords" content="'.$meta_settings['keywords'].'" />';echo "\n";
echo '<meta name="copyright" content="'.$meta_settings['copyright'].'" />';echo "\n";
echo '<meta name="generator" content="SHCMS Engine (http://shimsidin.ru)" />';echo "\n";
?>
</head>
<div class="head"><h1><?echo "".$shcmsengine['title']."";?></h1>
<body>
<div class="body">


<?
        $new_mail = mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `user` = '" . $login . "' AND `type` = 'in' AND `chit` = 'no'"), 0);
echo ($user_id)? '<a href="'.DIR_SHCMS.'private_menu.php">Меню: '.$login.'</a>  ' : '';
echo $user_id ? ' <a href="' . DIR_SHCMS . 'mails.php?act=inbox&amp;new"> Почта ('.$new_mail.')</a>' : '';
echo $user_id ? '  <a href="'.DIR_SHCMS.'outcome.php">Выйти</a>' : '';
 if ($_SERVER['PHP_SELF']!=='/index.php'){
echo $user_id ? '  <a href="/">Главная</a>' : '';
}
echo $user_id ? '' : '
<a  href="' . DIR_SHCMS . 'authorization.php">Войти</a> 
<a  href="' . DIR_SHCMS . 'registration.php">Регистрация</a> ';
?></div></div>
<?
echo '
<table>
  <tr>
    <td class="menu">
      <div class="menu">';

reklama();
echo '
<div class="user_foot">Навигация</div>
<a href="/uncos/"><div class="posts">Новости  </div></a>
<div class="user_foot">Общение</div>
<a href="/shouts/"><div class="posts">Мини чат  </div></a>
<a href="/forum/"><div class="posts">Форум </div></a>
<div class="user_foot">Загрузки</div>
<a href="/download/"><div class="posts">Обменник</div></a>';
 if ($_SERVER['PHP_SELF']!=='/index.php'){
 echo '<div class="user_foot">Переход</div>
<a href="/"><div class="posts">На главную</div></a>';
 }

echo '</td>
</div><td class="shap">
  <div class="shap">';
echo '<div class="body"><div class="form">';