Файл: themes/green.php
Строк: 69
<?php
//Theme by cuHyc aka Sinus
//http://cuHyc.free-lance.ru
####################
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="" />
      
      <link rel="shortcut icon" href="$home/favicon.ico" type="image/x-icon" />
      <link rel="stylesheet" href="$home/themes/green/style.css" type="text/css" />
      </head>
      <body>";
echo '<p class="top">';
if(!empty($logo))
 {
  echo '<a href="'.$home.'"><img src="'.$home.'/themes/green/logo.png" alt="logo" /></a>';
 }
 echo '</p>';
//echo $textlogo;
echo '<p class="user_aut">';
if(isset($_SESSION['pass']) && isset($passw) && $_SESSION['pass'] == $passw)
 {
  echo vremya_sut($sdvigclock).' '.$login.'<br />';
   echo "<a href="$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."">Личный кабинет</a><br />";
  if($new_ls > 0)
   {
    echo "<a href="$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."" class="aerr">Новые сообщения: <b>$new_ls</b></a><br />";
   }
  if($status == 1 || $status == 2 || $status == 3)
   {
    echo "<a href="$dob_url/modules/admin/index.php?".session_name()."=".session_id()."">Админ панель</a><br />";
   }
 }
 else
 {
echo '<a href="'.$home.'/modules/kabinet/reg.php">Регистрация</a><br /><a href="'.$home.'/modules/kabinet">Авторизация</a><br/>';
 }
 echo '</p>';
 
function re_icon($re_icon) 
 {
  if(!strstr($_SERVER['SCRIPT_NAME'], 'modules/forum') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/zagruz') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/book') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/admin') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/kabinet/notepad'))
   {
    $re_icon = str_replace ('»','<img src="/themes/green/ic.png" alt="»" />',$re_icon);
    $re_icon = str_replace ('»','<img src="/themes/green/ic.png" alt="»" />',$re_icon);
   }
  return $re_icon;
 }
ob_start(re_icon);
####################
$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;
?>