View file themes/default.php

File size: 9.47Kb
<?php
####################
include $dob_url.'/data/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_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\" />
      
      <style type=\"text/css\">
      body { font-size: ".$font_size."px; font-family: Courier new;
margin: auto;
max-width: 500px;
	font: 12px Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
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 '<img src="/logo.gif" alt="Лого" title="Лого" /><br />';
}
echo '</p></div>';
echo '<div class="auth">';
if(isset($_SESSION['sespass']) && isset($passw) && $_SESSION['sespass'] == $passw)
{
if($icon_text == "1" || $icon_text == "")
{
echo "<a href=\"$dob_url/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/home.gif\"align=\"top\"alt=\"\" title=\"Дом\"></a> | ";
if($pol == "1")
{
if($status == "4")
{
echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/m.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
}
elseif($status == "5")
{
echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/m_nov.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
}
elseif($status == "3" || $status == "2" || $status == "1")
{
echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/m.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
}
}
elseif($pol == "0")
{
if($status == "4")
{
echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/w.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
}
elseif($status == "5")
{
echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/w_nov.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
}
elseif($status == "3" || $status == "2" || $status == "1")
{
echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/w.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
}
}

if($new_ls > 0)
{
echo " | <a href=\"$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."\" class=\"aerr\"><img src=\"/themes/2011/0.gif\"align=\"top\"alt=\"\" title=\"Новые сообщения\"><font color=\"blue\">+$new_ls</font></a>";
}

else
{
echo " | <a href=\"$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."\" class=\"aerr\"><img src=\"/themes/2011/0.gif\"align=\"top\"alt=\"\" title=\"Почта\"></a>";
}
if($pol == "1")
{
if($status == '3')
{
echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/mod_m.gif\"alt=\"\" title=\"Модерка\"/></a><br />";
}

elseif($status == '2')
{
echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/gmod_m.gif\"alt=\"\" title=\"Модерка\"/></a><br />";
}
elseif($status == '1')
{
echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/admin_m.gif\"alt=\"\" title=\"Админка\"/></a><br />";
}
}
elseif($pol == "0")
{
if($status == '3')
{
echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/mod_w.gif\"alt=\"\" title=\"Модерка\"/></a><br />";
}
elseif($status == '2')
{
echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/gmod_w.gif\"alt=\"\" title=\"Модерка\"/></a><br />";
}
elseif($status == '1')
{
echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/admin_w.gif\"alt=\"\" title=\"Админка\"/></a><br />";
}
}
}

if($icon_text == "0")
{
echo "<a href=\"$dob_url/index.php?".session_name()."=".session_id()."\">Дом</a> | ";

echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\">Кабинет</a>";


if($new_ls > 0)
{
echo " | <a href=\"$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."\" class=\"aerr\">Почта <font color=\"blue\">+$new_ls</font></a>";
}

else
{
echo " | <a href=\"$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."\" class=\"aerr\">Почта</a>";
}

if($status == '3')
{
echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\">Модерка</a><br />";
}
elseif($status == '2')
{
echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\">Модерка</a><br />";
}
elseif($status == '1')
{
echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\">Админка</a><br />";
}
}
}
else
{
  echo"<br /><a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\" class=\"cc\">Вход</a> |";
  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;
?>