<?php
header("expires: mon, 26 jul 1997 05:00:00 gmt");
header("cache-control: no-cache, must-revalidate");
header("pragma: no-cache");
header("last-modified: ".gmdate("d, d m y h:i:s")."gmt");
if ($gzip=="1") // gzip ������
{
ob_start('ob_gzhandler');
}
if (strtok($_SERVER['HTTP_USER_AGENT'],'/')!="Mozilla") {
header("Content-type:application/vnd.wap.xhtml+xml; charset=utf-8");
}else{
header("Content-type:text/html; charset=utf-8");}
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 http-equiv="Content-Style-Type" content="text/css" />
<link rel="shortcut icon" href="'.$home.'/themes/new_year/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="'.$home.'/themes/Sea-wave/xhtml.css" type="text/css" />
<title>'.$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 = preg_replace('#<p align="(.*?)">#si','<p style="text-align:\1">',$myhtml);
$myhtml = str_replace('align="center','style="text-align:center',$myhtml);
$myhtml = preg_replace('#<font color="(.*?)">#si','<span style="color:\1">', $myhtml);
$myhtml = str_replace('</font>','</span>',$myhtml);
return $myhtml;
}
ob_start('myhtml');
echo '<div class="a">';
echo '<div align="center">';
if(!empty($logo))
{
echo '
<a href="'.$home.'">
<img src="'.$home.'/themes/Sea-wave/images/logo.gif" alt="" /><br />';}
echo '</div>';
echo '</div>';