<?
$g = $_GET["g"];
$str = trim($g);
$str = substr($str,0,100);
$str = htmlspecialchars(stripslashes($str));
$zapros = $str;
$zapros = str_replace("'","",$zapros);
$zapros = str_replace('`',"",$zapros);
$zapros = str_replace('"',"",$zapros);
$zapros = str_replace('0x',"",$zapros);
$str = $zapros;
$redir=substr($str,0,4);
if ($redir=="http")
{
header("Location: $str");
exit;
}
if ($str=="")
{
print "bad request";
exit();
}
unset($referer);
?>