Размер файла: 942B
<?php
include_once("../config.php");
if($version == "wml")
{
header("Content-type: text/vnd.wap.wml; charset=utf-8");
echo('<?xml version="1.0" encoding="utf-8"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><card id="Card" title="Переадресация" ontimer="'.htmlspecialchars($_SERVER['QUERY_STRING']).'"><timer value="10"></timer><p>
Go: <a href="'.htmlspecialchars($_SERVER['QUERY_STRING']).'">'.htmlspecialchars($_SERVER['QUERY_STRING']).'</a><br />
</p>
</card></wml>');
} elseif($version == "xhtml")
{
echo("<HTML>
<HEAD>
<META HTTP-EQUIV=\"REFRESH\" CONTENT=\"2; URL=".htmlspecialchars($_SERVER['QUERY_STRING'])."\">
</HEAD>
<BODY>
Go: <a href=\"".htmlspecialchars($_SERVER['QUERY_STRING'])."\">".htmlspecialchars($_SERVER['QUERY_STRING'])."</a><br />
</BODY>
</HTML>");
}
?>