Размер файла: 2.48Kb
<?
if(is_user()){
$style = mysql_query('SELECT * FROM users WHERE login = "'.$_COOKIE['login'].'"');
$style = mysql_fetch_assoc($style);
if($style['status'] == 101 || $style['status'] == 102){ $my_panel[1] = '<a href="/admin_panel/">Админ-панель</a> | '; } else {$my_panel[1] = '';}
if($style['status'] == 103 || $style['status'] == 104){ $my_panel[2] = '<a href="/admin_panel/">Модер-панель</a> |'; } else {$my_panel[2] = '';}
if($style['theme'] == NULL){ $syt = STYLEINT; } else {$syt = $style['theme']; }
$my_style = ''.STYLE.''.$syt.'/style.css';
} else {
if($_SESSION['themes_index'] == NULL){ $themes = STYLEINT; } else {$themes = $_SESSION['themes_index']; }
$my_style = ''.STYLE.''.$themes.'/style.css';
$syt = $themes;
}
include(BASEDIR.MODUL.'site/site.php');
include(MODUL.'site/site.php');
echo'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="keywords" content="'.$keywords.'" />
<meta name="description" content="'.$description.'" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="/'.IMG.'favicon.ico" />
<link rel="stylesheet" type="text/css" href="'.$my_style.'">
</head><body>
<div class="head"><img src="'.STYLE.''.$syt.'/logo.png" alt="logo"></div>
';
if($_COOKIE['login'] == NULL){
echo'<div align="right"> <a href="/pages/user.php">Вход</a> | <a href="/pages/user.php?mode=reg">Регистрация</a></div>';} else {
echo'<div align="right"> <a href="/users/">'.$_COOKIE['login'].'</a> | '.$my_panel[1].''.$my_panel[2].' <a href="/index.php?mode=index&out=exit">Выход</a></div>'; }
if(is_user()){
$cs = $_COOKIE['login'];
$you = mysql_query("select * from `users` where login = '".$cs."'");
$you = mysql_fetch_assoc($you);
if($you['my_mail'] == $you['new']){ echo''; } else { $qwerty = $you['my_mail'] - $you['new'];
echo'<div class="menu"><img src="/images/mail.gif"> <font color="red"><a href="/users/privat.php?mode=index">Входящее сообщение</a> (<strong>'.$qwerty.'</strong>)</font></div>';
}
}
if($open_site == 'yes'){} else {if($open_site == 'user' && is_user()){} else { header ('location: /pages/site_close.php'); }}
if($keyd == 'off'){} else {if(is_user()){ if($you['act_mail'] == 'on'){} else { if($url== '/users/setting.php?mode=activ_mail' || $url== '/users/setting.php?mode=activ_mail_2' ||$url== '/users/setting.php?mode=activ_mail_3'){} else { header ('location: /users/setting.php?mode=activ_mail');} }}}
?>