@ob_clean();
if( isset($_GET['src']) ){
$src = str_replace('&','&', $_GET['src']);
if( 'http://' == substr($src, 0, 7 ) )header("location:{$src}");
$request = "http://".$_SERVER ['HTTP_HOST'] .'/' .$src;
}else{
$request = "http://".$_SERVER ['HTTP_HOST'];
}
$content = file_get_contents($request);
header("Content-type: text/vnd.wap.wml");
echo '<?xml version="1.0" encoding="UTF-8"?> "http://www.wapforum.org/DTD/wml_1.1.xml">';
preg_match_all( "/\
(.*?)\/i", $content, $title );echo "
";
$patterns = array(
'/
/i',
'//i',
'/(.*?)/si',
'/(.*?)/si',
'/(.*?)/si',
'/(.*?)/ie',
'//ie',
'/\ \;/i',
'/\ /i',
);
$replacements = array(
"\n",
"\n",
'',
'',
'',
"''",
" ",
" ",
);
$content = preg_replace($patterns, $replacements, $content);
$content = strip_tags($content,"");
$content = html_entity_decode($content, ENT_QUOTES, 'UTF-8');
$content = preg_replace("/\&\#.*?\;/i", "", $content);
$content = str_replace(array(',"\r\n"), array(', "\n"), $content);
$content = explode("\n", $content);
for ($i = 0; $i < count($content); $i++) {
$content[$i] = trim($content[$i]);
if (str_replace(" ", "", $content[$i]) == "") $content[$i] = "";
}
$content = str_replace("
".implode("
\n", $content)."
\n");echo str_replace(array('
','
'),'',$content);echo '
';