Файл: NskriptS.zip/go.php
Строк: 59
<?php
list($msec, $sec) = explode(chr(32), microtime());
$headtime = $sec + $msec;
error_reporting(0);
include("config.php");
include("./includes/".$ver."/banned");
$nocache = rand(1000, 9999);
define("SITE", "xtlt.org");
switch($ver)
{
case 'wml':
///////////////////////////////////////////////////////
//WML VERSION
///////////////////////////////////////////////////////
header("Content-type: text/vnd.wap.wml; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
echo "<?xml version="1.0" encoding="UTF-8"?>n";
echo "<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd"><wml>n";
echo "<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>n";
echo "<card id="index" title="$title"><p align="center">n";
echo "Переход на главную:<br/>n";
echo "<a href="http://xtlt.org">wap.xTLT.org</a><br/>n";
echo "<br />n";
list($msec, $sec) = explode(chr(32), microtime());
echo "<small>[".round(($sec + $msec) - $headtime, 5)."]</small><br/>n";
echo "</p></card></wml>";
break;
case 'html':
///////////////////////////////////////////////////////
//HTML VERSION
///////////////////////////////////////////////////////
header("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
echo "<?xml version="1.0" encoding="UTF-8"?>n";
echo "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">n";
echo "<html><head>n";
echo "<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />n";
echo '<link href="css.css" rel="stylesheet" type="text/css"><title>wap.xTLT.org</title>
</head>
<body>';
echo "<div class="lic">Переход на главную:</div>n";
echo "<a href="/">wap-open.org</a><br/>n";
echo "<br />n";
list($msec, $sec) = explode(chr(32), microtime());
echo "</div></body></html>";
break;
}
?>