File size: 2.11Kb
<?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="shortcut icon" href="'.$home.'/themes/green/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="'.$home.'/themes/green/style.css" type="text/css" />';
echo'<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('<p class="modul_name">','<p class="modul_name"align="center">',$myhtml);
return $myhtml;
}
ob_start('myhtml');
echo '<p class="top">';
# <img src="/images/st/ngi.gif" alt="o" align="left" />
if(!empty($logo))
{
echo '<img src="/themes/green/logo.png" alt="Лого" title="Лого" />';
# <img src="/images/st/snezh.gif" alt="*" align="right" />
}
echo '</p>';
echo '<p class="user_aut">';
$color_new_ls = 'red';
include ($dob_url.'/templates/themes_panel.php');
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;
?>