Файл: themes/default.php
Строк: 162
<?php
####################
include "mytheme.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 $title_page
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<style type="text/css">
body { font-size: ".$font_size."px; font-family: Courier new; margin: 5px auto; color: $font_color; background-color: $background_color; background-image: url($background_image) }
form { display: inline; margin: 0px; padding: 0px; }
a:link,a:active,a:visited { text-decoration: none; color : $a_link_color }
a:hover { text-decoration: none; color : $a_hover_color }
p {margin: 1px 0px 1px 0px; padding: 1px 1px 1px 1px; font-size: 12px;}
div { margin: 1px 0px 1px 0px; padding: 1px 1px 1px 1px; font-size: 12px;}
table { margin: 1px 0px 1px 0px; padding: 1px 1px 1px 1px;}
textarea { width: 95%; }
.modul_name { text-align: center; margin: 1px 2px 1px 2px; padding: 1px 1px 1px 1px; font-size: 13px; }
.a {margin: 8px 1px 0px 1px; padding: 4px; border-top: ".$a_border_top."px solid $a_border_top_color; border-left: ".$a_border_left."px solid $a_border_left_color; border-right: ".$a_border_right."px solid $a_border_right_color; border-bottom: ".$a_border_bottom."px solid $a_border_bottom_color; vertical-align: middle; background-color: $a_background_color; font-size: $a_font_size px; color: $a_font_color; background-image: url($a_background_image) }
.b {margin: 1px; border-top: ".$b_border_top."px solid $b_border_top_color; border-left: ".$b_border_left."px solid $b_border_left_color; border-right: ".$b_border_right."px solid $b_border_right_color; border-bottom: ".$b_border_bottom."px solid $b_border_bottom_color; padding: 4px; vertical-align: middle; background-color: $b_background_color;}
.top {margin: 1px; border-top: ".$c_border_top."px solid $c_border_top_color; border-left: ".$c_border_left."px solid $c_border_left_color; border-right: ".$c_border_right."px solid $c_border_right_color; border-bottom: ".$c_border_bottom."px solid $c_border_bottom_color; padding: 4px; vertical-align: middle; background-color: $c_background_color; font-size: $c_font_size px; color: $c_font_color; background-image: url($с_background_image) }
.c {margin: 1px; text-align: center;}
.d {margin: 1px; border: 1px solid #000000;}
.rekl {margin: 1px; text-align: center;}
.foot {margin: 1px; border-top: ".$foot_border_top."px solid $foot_border_top_color; border-left: ".$foot_border_left."px solid $foot_border_left_color; border-right: ".$foot_border_right."px solid $foot_border_right_color; border-bottom: ".$foot_border_bottom."px solid $foot_border_bottom_color; padding: 4px; vertical-align: middle; background-color: $foot_background_color; font-size: $foot_font_size px; color: $foot_font_color; background-image: url($foot_background_image) }
.err {margin: 0px; border-top: ".$err_border_top."px solid $err_border_top_color; border-left: ".$err_border_left."px solid $err_border_left_color; border-right: ".$err_border_right."px solid $err_border_right_color; border-bottom: ".$err_border_bottom."px solid $err_border_bottom_color; padding: 4px; vertical-align: middle; background-color: $err_background_color; font-size: $err_font_size px; color: $err_font_color;}
.toptem {margin: 0 3px 0 0; padding: 0; border: 1px solid #339933; vertical-align: middle; background-color: #99ccff; font-size: 8px; color: #000000;}
.closetem {margin: 0 3px 0 0; padding: 0; border: 1px solid #339933; vertical-align: middle; background-color: #ff9999; font-size: 8px; color: #000000;}
.edited {margin: 0; padding: 0; border: 1px solid #aaa; vertical-align: middle; background-color: #ccc; font-size: 10px; color: #666;}
.code {margin: 0; padding: 0px; border: 0 solid #339933; vertical-align: middle; background-color: #ccc; font-size: 11px; color: #666;}
q {margin: 0; padding: 0px; border: 0 solid #339933; vertical-align: middle; background-color: #ccc; font-size: 10px; color: #666;}
img {border: 0px;}
</style>
</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['pass']) && isset($passw) && $_SESSION['pass'] == $passw)
{
echo"<br /><a href="$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."" class="cc">Личный кабинет</a><br />";
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;
?>