View file themes/html.php

File size: 2.17Kb
<?
$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'].dirname($_SERVER['SCRIPT_NAME']).'/style.css';
//ini_set('url_rewriter.tags','');
//error_reporting(0);
//session_name("session_id");
//session_start();
include'includes/inc_gzip_start.php';
if (eregi("msie", $_SERVER['HTTP_USER_AGENT']) && eregi("windows", $_SERVER['HTTP_USER_AGENT']))
    {
    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"?>' . "\n";
    echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" ' . "\n";
    echo '"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">' . "\n";
    echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">' . "\n";
    echo '<head><meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>';
    echo '<link rel="stylesheet" href="'.$css_style.'" type="text/css" />';
}

function title($title){
  echo '<title>'.$title.'</title>'.
       '</head><body>';
  echo '<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
	{
	if(empty($_SERVER['QUERY_STRING'])) $link=str_replace('??','?',val($_SERVER['REQUEST_URI']).'?wml');
	else $link=str_replace('&amp;&amp;','&amp;',val($_SERVER['REQUEST_URI']).'&amp;wml');
	}

echo'<div class="g">';
echo'<b>&#169; <a href="http://'.$config['url'].'">'.$config['site'].'</a></b><br/>';
echo'<div class="div.b"><a href="http://waplog.mobi/from.php?s_id=15829"><img src="http://waplog.mobi/15829.small" alt="waplog.MOBI" /></a><a href="http://fixwap.net/ru/?uid=6471"><img src="http://fixwap.net/ru/count.php?uid=6471" alt="fixwap"/></a><br/></div>';
echo'<a href="http://jasis-world.org.ru/obm/servis.php?xhtml">Сервис обменника</a>';
echo'</div></p></body></html>';
}
?>