Размер файла: 1.09Kb
<?php
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" />';
echo '<link rel="stylesheet" href="themes/8/xhtml.css" type="text/css" />
<title>'.$my_title.'</title>
</head><body bgcolor="white" text="gray">';
echo '<div class="a" id="up"><img src="img/IWR002.gif" alt=""><br></div><div>';
function htmltoxhtml($skinxhtml) {
$skinxhtml = str_replace("img/act1.gif","themes/8/act1.gif",$skinxhtml);
$skinxhtml = str_replace("img/act2.gif","themes/8/act2.gif",$skinxhtml);
$skinxhtml = str_replace("img/act3.gif","themes/8/act3.gif",$skinxhtml);
return $skinxhtml; }
ob_start(htmltoxhtml);
?>