"; if($SCRIPT_URL == "/cgi-bin/jfs/cons2") { $programa = "http://www.acessa.com/consulta.php"; $url = $programa."?".$QUERY_STRING; header("Location:$url"); exit(0); } if($SCRIPT_URL == "/cgi-bin/jfs/conssub") { $programa = "http://www.acessa.com/consulta.php"; $parametro = str_replace("s=","consulta=",$QUERY_STRING); $url = $programa."?m=sub&".$parametro; header("Location:$url"); exit(0); } if($SCRIPT_URL == "/cgi-bin/dasebope/dasebope") { $programa = "http://www.acessa.com/enquetes/enquetes.php"; $url = $programa."?".$QUERY_STRING; header("Location:$url"); exit(0); } if($SCRIPT_URL == "/cgi-bin/sabor/sabor") { if(strpos($QUERY_STRING, "s=1005") !== false) { $programa = "http://www.acessa.com/sosabor/busca_receitas.php"; if(strpos($QUERY_STRING, "rec_codigo") !== false) $parametro = str_replace("s=1005&rec_codigo=","c=",$QUERY_STRING); else $parametro = str_replace("s=1005&consulta=","c=",$QUERY_STRING); $url = $programa."?".$parametro; header("Location:$url"); exit(0); } if(strpos($QUERY_STRING, "s=1001") !== false) { $programa = "http://www.acessa.com/sosabor/colaboracao.php"; $url = $programa; header("Location:$url"); exit(0); } if(strpos($QUERY_STRING, "s=1012") !== false) { $programa = "http://www.acessa.com/sosabor/consulta.php"; $url = $programa; header("Location:$url"); exit(0); } header("Location: http://www.acessa.com/sosabor/"); exit(0); } if($SCRIPT_URL == "/cgi-bin/jfmapas/jfmapascons") { $programa = "http://www.acessa.com/jfmapas/buscamapas.php"; $parametro = str_replace("rua=","c=",$QUERY_STRING); $url = $programa."?".$parametro; header("Location:$url"); exit(0); } if($SCRIPT_URL == "/cgi-bin/jfmapas/jfmapasconsdet") { $programa = "http://www.acessa.com/jfmapas/buscamapas.php"; $parametro = str_replace("s=","c=",$QUERY_STRING); $url = $programa."?m=m&".$parametro; header("Location:$url"); exit(0); } if($SCRIPT_URL == "/cgi-bin/jfmapas/jfmapasconsbairro") { $programa = "http://www.acessa.com/jfmapas/buscamapas.php"; $parametro = str_replace("s=","c=",$QUERY_STRING); $url = $programa."?m=b&".$parametro; header("Location:$url"); exit(0); } if($SCRIPT_URL == "/cgi-bin/jfmapas/servs") { $programa = "http://www.acessa.com/consulta.php"; $parametro = str_replace("k=","consulta=",$QUERY_STRING); $url = $programa."?m=reg&".$parametro; header("Location:$url"); exit(0); } if($SCRIPT_URL == "/cgi-bin/jfs/cad") { echo "
"; foreach($_POST as $key => $valor) { echo ""; } echo ""; echo "
"; } if($SCRIPT_URL == "/cgi-bin/jfs/mapajfs") { if (trim($_POST['rua']) != "") { echo "
"; } else { $programa = "http://www.acessa.com/cgi-bin/jfs2/mapajfs"; $parametro = $QUERY_STRING; $url = $programa."?".$parametro; //echo $url; header("Location:$url"); exit(0); } } if($SCRIPT_URL == "/cgi-bin/jfs/mapadetjfs") { $programa = "http://www.acessa.com/cgi-bin/jfs2/mapadetjfs"; $parametro = $QUERY_STRING; $url = $programa."?".$parametro; header("Location:$url"); exit(0); //http://www.acessa.com/cgi-bin/jfs/mapadetjfs?s=581&flag=k12.h } //header("Location:$SCRIPT_URL"); /* print "[1] === >>>".$SCRIPT_URL."
\n"; print "[2] === >>>".$QUERY_STRING."
\n"; print "[1] === >>>".$REQUEST_URI."
\n"; phpinfo(); */ ?>