Файл: fo/themes/html.php
Строк: 40
<?php
$config_gzip=1;
$separator = '<dl><dt></dt></dl>';
list($msec,$sec)=explode(chr(32),microtime());
$HeadTime=$sec+$msec;
function head(){
$css_style='http://'.$_SERVER['HTTP_HOST'].'/style.css';
//ini_set('url_rewriter.tags','');
//error_reporting(0);
//session_name("session_id");
//session_start();
include'includes/inc_gzip_start.php';
if (substr_count($_SERVER['HTTP_USER_AGENT'], 'MSIE'))
{
header('Content-type: text/html; charset=UTF-8');
}
else
{
header('Content-type: application/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">
<link rel="stylesheet" href="'.$css_style.'" type="text/css" />';
}
function title($title){
$url_l=htmlspecialchars($_GET['url'],ENT_QUOTES);
if(!empty($url_l)){$t_url = $url_l.'.:.';}
echo '<head>
<title>'.$t_url.$title.'</title>
</head><body>
<p>';
}
function div($text,$div){
echo '<div class="'.$div.'">'.$text.'</div>';
}
function footer(){
global $HeadTime, $config, $script_version;
//$_COOKIE['version']=='html' ||
if(isset($_GET['xhtml']))
{
$link = str_replace('xhtml','wml',val($_SERVER['REQUEST_URI']));
}
else
{
$link = str_replace('?','?wml&',val((strpos($_SERVER['REQUEST_URI'],'?') ? $_SERVER['REQUEST_URI'] : '?')));
}
echo'<div class="g">
<b>© <a href="http://'.$config['url'].'">'.$config['site'].'</a></b><br/>
[<a href="'.$link.'">WML</a>|<b>HTML</b>]<br/>
<a href="servis.php?xhtml&url='.htmlspecialchars($_GET['url']).'">Сервис обменника</a><br/>
</div>';
echo'<img src="http://imtop.ru/229/small.png" alt="" width="1" height="1"/>';
echo'</p></body></html>';
}
?>