View file themes/themy/dark_style.php

File size: 4.27Kb
<?php
#Системные Цвета
$color_green = 'lime';
$color_red = 'red';
####################
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/dark_style/style.css\" type=\"text/css\" />
      </head>
      <body>";
      
echo '<div class="head">
      <div class="head_r">
      <table height="62px" align="center" cellpadding="0" cellspacing="0" width="100%">
      <tr>
      <td>';

$logo_file = $dob_url.'/themes/dark_style/logo.png'; # Логотип встроенный в тему

# Если раскомментировать следующую строку, то будет выводиться логотип, указанный в админ панели
# $logo_file = $logo;

echo '<a href="'.$home.'"><img src="'.$logo_file.'" alt="'.$title.'" /></a>';
echo '</td><td>'.$textlogo;
echo '</td>
      </tr>
      </table>
      </div>
      </div>';

echo '<div class="title">
      <a href="'.$home.'">Главная</a>
      <a href="'.$dob_url.'/modules/forum/index.php">Форум</a>
      <a href="'.$dob_url.'/modules/zagruz/index.php">Загрузки</a>
      <a href="'.$dob_url.'/modules/book/index.php">Библиотека</a>
      <a href="'.$dob_url.'/modules/guest/index.php">Гостевая</a>
      <a href="'.$dob_url.'/index.php?papka=pages&amp;file=about">О проекте</a>
      </div>';

echo '<div class="user_aut">
      <table cellpadding="0" cellspacing="0">
      <tr>';
if(isset($_SESSION['sespass']) && isset($passw) && $_SESSION['sespass'] == $passw)
 {
  echo '<td class="link_aut_l">&nbsp;</td><td class="link_aut">';
  
  $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>'; }
    else
     { echo vremya_sut($sdvigclock).' '.$nick_name_them; }
   }
  else
   {
    echo vremya_sut($sdvigclock).' '.$login;
   }
   
  echo'</td><td class="link_aut_r">&nbsp;</td><td>&nbsp;</td>';
  echo'<td class="link_aut_l">&nbsp;</td><td class="link_aut"><a href="'.$dob_url.'/modules/kabinet/index.php?'.session_name().'='.session_id().'">Личный кабинет</a></td><td class="link_aut_r">&nbsp;</td><td>&nbsp;</td>';
  if($new_ls > 0)
   {
    echo'<td class="link_aut_l">&nbsp;</td><td class="link_aut"><a href="'.$dob_url.'/modules/kabinet/inbox.php?'.session_name().'='.session_id().'" class="aerr">Новые сообщения: '.$new_ls.'</a></td><td class="link_aut_r">&nbsp;</td><td>&nbsp;</td>';
   }
  if($status == 1 || $status == 2 || $status == 3)
   {
    echo'<td class="link_aut_l">&nbsp;</td><td class="link_aut"><a href="'.$dob_url.'/modules/admin/index.php?'.session_name().'='.session_id().'">Админ панель</a></td><td class="link_aut_r">&nbsp;</td>';
   }
 }
else
 {
  echo'<td class="link_aut_l">&nbsp;</td><td class="link_aut"><a href="'.$dob_url.'/modules/kabinet/index.php?'.session_name().'='.session_id().'">Авторизация</a></td><td class="link_aut_r">&nbsp;</td><td>&nbsp;</td>';
  echo'<td class="link_aut_l">&nbsp;</td><td class="link_aut"><a href="'.$dob_url.'/modules/kabinet/reg.php?'.session_name().'='.session_id().'">Регистрация</a></td><td class="link_aut_r">&nbsp;</td>';
 }
 
echo '</tr>
      </table>
      </div>';

echo '<div class="main_menu">';
####################
$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;
?>