File size: 2.54Kb
<?php
####################
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"ru\" lang=\"ru\">
<head>";
echo "<title>
$title_page | $title
</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />
<meta name=\"description\" content=\"$meta_descr\" />
<meta name=\"keywords\" content=\"$meta_key\" />
<link rel=\"shortcut icon\" href=\"$home/favicon.ico\" type=\"image/x-icon\" />
<link rel=\"stylesheet\" href=\"$home/themes/chuma/style.css\" type=\"text/css\" />
</head>
<body>";
echo "<p align=\"center\" class=\"top\">";
if(!empty($logo))
{
echo '<a href="'.$home.'"><img src="'.$logo.'" alt="'.$title.'" /></a><br />';
}
echo "$textlogo";
if(isset($_SESSION['sespass']) && isset($passw) && $_SESSION['sespass'] == $passw)
{
echo"<br /><a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\" class=\"cc\">Личный кабинет</a><br />";
$nick_name_arr = explode('::', $nick_name);
$nick_name_them = $nick_name_arr[0];
$nick_color_them = $nick_name_arr[1];
if(!empty($nick_name_them))
{
if(!empty($nick_color_them))
{ echo vremya_sut($sdvigclock).' <font color="'.$nick_color_them.'">'.$nick_name_them.'</font><br />'; }
else
{ echo vremya_sut($sdvigclock).' '.$nick_name_them.'<br />'; }
}
else
{
echo vremya_sut($sdvigclock).' '.$login.'<br />';
}
if($new_ls > 0)
{
echo"<a href=\"$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."\" class=\"aerr\">Новые сообщения: $new_ls</a><br />";
}
if($status == 1 || $status == 2 || $status == 3)
{
echo"<a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\" class=\"cc\">Админ панель</a><br />";
}
}
else
{
echo"<br /><a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\" class=\"cc\">Вход</a><br />";
echo"<a href=\"$dob_url/modules/kabinet/reg.php?".session_name()."=".session_id()."\" class=\"cc\">Регистрация</a><br />";
}
echo "</p>";
####################
$file_all_top = file_get_contents($dob_url.'/data/reklama_all_top.txt');
if(!empty($file_all_top))
{
echo'<p class="rekl">'.$file_all_top.'</p>';
}
####################
list($msec,$sec)=explode(chr(32),microtime());
$headtime=$sec+$msec;
?>