Просмотр файла ilichat/themes/6/index.php

Размер файла: 1.96Kb
<?php
if (strtok($_SERVER['HTTP_USER_AGENT'],'/')!="Mozilla") {
header("Content-type:application/vnd.wap.xhtml+xml; charset=utf-8");
}else{
header("Content-type:text/xhtml+xml; 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="shortcut icon" href="themes/6/favicon.ico" />
<title>'.$my_title.'</title>
<style type="text/css">
body { font-family: Calibri; font-size: 13px; margin: 2px; color: #FFF7FF;  
background: url(themes/6/bg.gif); background-color: #000000; }
a:link, a:visited { text-decoration: underline; color : #42F7CE }
a:hover { text-decoration: none; color : #31A584; position: relative; top: 1px; left: 1px; }
.a {padding: 0px; text-align: center; border: 1px solid #31A584;
background: url(themes/6/bg1.gif) repeat-x; font-size: 17px; color: #FF0000;} 
.b {margin: 2px 0px; border: 1px dotted #42F7CE; font-weight: bold; padding: 2px; 
background: url(themes/6/bg2.gif) repeat-x; text-align: left; color: #f00; }
.c {padding: 2px; text-align: center; border: 1px solid #31A584; border-collapse:collapse; 
background: url(themes/6/bg1.gif) repeat-x; color: #42F7CE;}
input,select,textarea{ border: 1px solid #31A584; background-color: #004633; color: #42F7CE;}	
</style>
</head><body bgcolor="white" text="gray">';
echo '<div class="a" id="up"><img src="themes/6/logo.gif" alt="" /></div><div>';
function htmltoxhtml($skinxhtml) {
$skinxhtml = str_replace("img/act1.gif","themes/6/act1.gif",$skinxhtml);
$skinxhtml = str_replace("img/act2.gif","themes/6/act2.gif",$skinxhtml);
$skinxhtml = str_replace("img/act3.gif","themes/6/act3.gif",$skinxhtml);
return $skinxhtml; }
ob_start(htmltoxhtml);
?>