Просмотр файла poisk/search.php

Размер файла: 1.06Kb
<?php
header ("Content-type: text/vnd.wap.wml");
$file=iconv("windows-1251","UTF-8",$file);

if ($QUERY_STRING=="")
{
$file = file("1.wml");
$file = @implode("", $file);
}
else
{
$file = file("http://wap2.info/search.php?$QUERY_STRING&url=mas.net.ru");
$file = @implode("", $file);
}
$file = ereg_replace("<a href=\"http://mas.net.ru\">&#x041D;&#x0430; &#x0433;&#x043B;&#x0430;&#x0432;&#x043D;&#x0443;&#x044E;</a>", ":::::<br/><a href=\"http://mas.net.ru\">&#169; Mas.Net.Ru</a>",$file);
$file = ereg_replace("wap2.info", "mas.net.ru",$file);
$file = ereg_replace("&middot", "",$file);
$file = ereg_replace("wml_1.1.xml", "wml13.dtd",$file);
$file = ereg_replace("1.1", "1.3",$file);

$file = ereg_replace("index.php?url=mas.net.ru", "./",$file);
$file = ereg_replace("-------", ":::::",$file);
$file = ereg_replace("<u>", "",$file);
$file = ereg_replace("</u>", "",$file);
$file = ereg_replace("Search!", "Поиск",$file);
$file = ereg_replace("search.php?url=mas.net.ru&amp;", "?q=$q&url=mas.net.ru&",$file);
$file = ereg_replace("xhtml", "search", $file);
print "$file";

?>