View file themes/ZnGrey.php

File size: 6.43Kb
<?php
echo '<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">

<head>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
<meta name="description" content="'.$meta_descr.'" />
<meta name="keywords" content="'.$meta_key.'" />
<link rel="stylesheet" href="'.$home.'/themes/ZnGrey/style.css" type="text/css" />
<title>'.$title_page.' | '.$title.'</title>
</head>

<body>';

function myhtml($myhtml) {
$myhtml = str_replace('<br>','<br />',$myhtml);
$myhtml = str_replace('<hr>','<hr />',$myhtml);
$myhtml = str_replace('alt="">','alt="" />',$myhtml);
$myhtml = str_replace('<img src="/images/st/rekl.gif"align="right"/><br />','<img src="/themes/ZnGrey/rekl.gif"align="right"alt="" /><br />',$myhtml);
$myhtml = str_replace('<p class="modul_name">','<p class="modul_name"align="center">',$myhtml);
return $myhtml;
}
ob_start('myhtml');

echo '<div class="head"><p align="center">';
if(!empty($logo))
{
echo '<img src="/themes/ZnGrey/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 '<a href="'.$home.'/modules/kabinet/reg.php">Регистрация</a> | <a href="'.$home.'/modules/kabinet/index.php">Вход</a><br/>';
}
echo '</div>';

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 ('&#187;','&#187;',$re_icon);
$re_icon = str_replace ('»','&#187;',$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="adv"><img src="/images/st/rekl.gif"align="right"/><br /> '.$file_all_top.'</p>';
}
####################
list($msec,$sec)=explode(chr(32),microtime());
$headtime=$sec+$msec;
?>