File size: 4.89Kb
<?php
ob_start();
echo '<!DOCTYPE html>';
echo '<html lang="ru">';
echo '<head>';
echo '<meta charset="utf-8" />';
echo '<meta http-equiv="Content-Style-Type" content="text/css" />';
echo '<meta name="Generator" content="FPORTAL, http://fportal.tk" />'; // ВНИМАНИЕ!!! Данный копирайт удалять нельзя
echo'<meta name="keywords" content="' . SYSTEM_KEY . '" />';
echo'<meta name="description" content="' . SYSTEM_DES. '" />';
echo '<link rel="stylesheet" href="'.HOME.'/design/webstyle/style.css" type="text/css" />';
echo '<title>'.title($mod_name, $act_name).' | FPORTAL</title>';
echo $head_addon;
echo'</head>
<body>';
/*
-----------------------------------------------------------------
Выводим логотип и переключатель языков
-----------------------------------------------------------------
*/
$lng_iso = 'flag_ru';
echo '<table style="width: 100%;"><tr>' .
'<td valign="bottom"><a href="/"><img src="'.HOME.'/design/webstyle/images/logo.png" alt="" width="512" height="128"/></a></td>';
echo '<td align="right">'.$conf_lang['name'].' <img src="'.HOME.'/images/flags/flag_' . $_SESSION['lang'] . '.png" alt="" width="16" height="16"/>
<!-- форма для смены языка -->
<form action="change_language.php" method="post" name="change_lang">
<select name="language" onChange="javascript:submit();">';
echo'<!-- список доступных языков -->';
//echo'<option value="en"'; if ($_SESSION["lang"] != 'en') { echo ' selected="selected"';}echo'>English</option>';
echo'<option value="ru"'; if ($_SESSION["lang"] == 'ru') { echo ' selected="selected"';}echo'>Русский</option>';
//echo'<option value="ua"'; if ($_SESSION["lang"] == 'ua') { echo ' selected="selected"';}echo'>Український</option>';
echo'</select>
</form>
</td></tr></table>';
echo '<div class="main"><div class="head"> ';
echo '<div class="navigation"> <ul>';
echo '<li><a href="/">'.$lng['home'].'</a> </li>';
head_menu('modules');
echo '</ul></div><!-- navigation -->';
echo'<div class="heft">';
if(is_user()){
if (is_file(ROOT.'/modules/'.filtr($_GET['mod']).'/admin.php') && $_GET['act'] != 'admin' && is_admin(array(2,3,4))){
echo'<a class="title_text_menu" href="/?mod='.filtr($_GET['mod']).'&act=admin"><font COLOR="#FF0000">[А]</font></a> | ';
}
echo '<a href="/?mod=user&act=cabinet">'.$lng['cabinet'].'</a> | <a href="/?mod=user&act=exit">'.$lng['exit'].'</a>';
}else{
echo'<a href="/?mod=user&act=login">'.$lng['login'].'</a> | <a href="/?mod=user&act=reg">'.$lng['registration'].'</a>';
}
echo '</div><!-- heft -->
</div><!-- head -->';
echo '<div class="tmn">';
// останется для будущего if (!empty($ban)) echo '<div class="alarm">'.$lng['ban'].'  <a href="/?mod=user&act=ban"> '. $lng['in_detail'].'</a></div>';
/*
-----------------------------------------------------------------
Ссылки на непрочитанное останется для будущего
-----------------------------------------------------------------
*/
/*if (is_user()) {
//$list = array();
// $new_sys_mail = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_mail` WHERE `from_id`='$user_id' AND `read`='0' AND `sys`='1' AND `delete`!='$user_id';"), 0);
if ($new_sys_mail) $list[] = '<a href="' . $home . '/mail/index.php?act=systems">Система</a> (+' . $new_sys_mail . ')';
//$new_mail = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_mail` LEFT JOIN `cms_contact` ON `cms_mail`.`user_id`=`cms_contact`.`from_id` AND `cms_contact`.`user_id`='$user_id' WHERE `cms_mail`.`from_id`='$user_id' AND `cms_mail`.`sys`='0' AND `cms_mail`.`read`='0' AND `cms_mail`.`delete`!='$user_id' AND `cms_contact`.`ban`!='1' AND `cms_mail`.`spam`='0'"), 0);
if ($new_mail) $list[] = '<a href="' . $home . '/mail/index.php?act=new">' . $lng['mail'] . '</a> (+' . $new_mail . ')';
if ($datauser['comm_count'] > $datauser['comm_old']) $list[] = '<a href="/users/profile.php?act=guestbook&user=' . $user_id . '">' . $lng['guestbook'] . '</a> (' . ($datauser['comm_count'] - $datauser['comm_old']) . ')';
//$new_album_comm = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_album_files` WHERE `user_id` = '" . core::$user_id . "' AND `unread_comments` = 1"), 0);
if ($new_album_comm) $list[] = '<a href=/users/album.php?act=top&mod=my_new_comm">' . $lng['albums_comments'] . '</a>';
if (!empty($list)) echo '<div class="ne">' . $lng['unread'].': list </div>';
}*/
echo'<div class="tor">
<i>' . $lng['system_time'].':</i> ' . date("H:i", time()) . '
</div><!-- tor --></div><!-- tmn -->';
// Выводим рекламу под меню
/*if (!empty($cms_ads[1]))*/ echo '<div class="gmenu">'.ads(1,1,'','').'</div>';
echo '<div class="lefts">';
?>