File size: 5.93Kb
<?
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/shcms_web/style.css" type="text/css"/>
<script type="text/javascript" src="/template/shcms_web/js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="/template/shcms_web/js/list.js"></script>
<link rel="stylesheet" href="/template/shcms_web/style.css" type="text/css"/>
<script type="text/javascript" src="/system/inc/jquery.js"></script>
<script type="text/javascript" src="/template/shcms_web/js/jquers.js"></script>
<script type="text/javascript">
function show_hide (objName) {
if ( $(objName).css('display') == 'none' ) {
$(objName).animate({height: 'show'}, 800);
} else {
$(objName).animate({height: 'hide'}, 800);
}
}
</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">
<?
echo '
<div style="display: none; z-index: 1000; outline-color: currentColor; outline-width: 0px; outline-style: none" class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-draggable" tabindex="-1" role="dialog" aria-labelledby="ui-dialog-title-logindialog">
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"></div>
<div id="logindialog" style="" class="ui-dialog-content ui-widget-content">';
$new_mail = mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `user` = '" . $login . "' AND `type` = 'in' AND `chit` = 'no'"), 0);
if($new_mail == 0){echo '<div class="posts"><a href="'.DIR_SHCMS.'mail.php">Почта (<a href="/shcms/mails.php?act=inbox&new"><span style="color:red;font-weight:700;">новых нет</span></a>)</a></div>';}
else{echo '<div class="posts"><a href="'.DIR_SHCMS.'mail.php">Почта (<a href="/shcms/mails.php?act=inbox&new"><span style="color:red;font-weight:700;">новых +' . $new_mail . '</span></a>)</a></div>';}
echo '<div class="posts"><a href="'.DIR_SHCMS.'change_view.php">Посмотреть анкету</a></div>';
echo '<div class="posts"><a href="'.DIR_SHCMS.'change_profile.php">Изменить анкету</a></div>';
if(!is_file('../avatar/files/'.$user_id.'.jpg'))
{echo '<div class="posts"><a href="/avatar/">Установка аватара</a></div>';}
else{echo '<div class="posts"><a href="/avatar/">Замена аватара</a></div>';}
echo '<div class="posts"><a href="'.DIR_SHCMS.'settings.php">Настройки приватности</a></div>';
echo '<div class="posts"><a href="'.DIR_SHCMS.'pass.php">Смена пороля</a></div>';
echo '<div class="posts"><a href="/rules.php">Правила сайта</a></div>';
echo '<div class="posts"><a href="'.DIR_SHCMS.'jurnal_aut.php">Журнал авторизаций</a></div>';
echo '<div class="posts"><a href="'.DIR_SHCMS.'outcome.php">Выход из сайта</a></div>';
$user4 = mysql_fetch_array(mysql_query("SELECT * FROM users WHERE id=$user_id"));
if($user4['team'] == 6)
{
echo '<div class="posts"><a href="/admin_list/">Админ панель</a></div>';
}
echo '</div></div>';
$new_mail = mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `user` = '" . $login . "' AND `type` = 'in' AND `chit` = 'no'"), 0);
echo ($user_id)? '<a id="loginlink" href="#">Меню: '.$login.'</a> ' : '';
echo $user_id ? ' <a href="' . DIR_SHCMS . 'mails.php?act=inbox&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">';
$rek = mysql_query("SELECT * FROM reklama");
$rekl = mysql_fetch_array($rek);
if($rekl == null)
{}
else{
echo '<div class="user_foot">Партнеры</div>';
do
{
echo "<div class='posts'><a href=".$rekl['link'].">".$rekl['title']."</a></div>";
}
while($rekl = mysql_fetch_array($rek));
}
if(!$user_id)
{
echo '<div class="user_foot">Авторизация</div>
<div class="posts">
<form action="/shcms/authorization.php?'.$conservation.'" method="post">
Логин:
<br>
<input type="text" name="login" value="" maxlength="20">
<br>
Пароль:
<br>
<input type="password" name="password" maxlength="20">
<br>
<input type="checkbox" name="save_co" value="1" checked="checked">
Запомнить
<br>
<input type="submit" value="Войти">
</form></div>';}
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">';