".$_SERVER['REQUEST_URI']."
"; $myvars=split("\?",$_SERVER['REQUEST_URI']); # print "-->".$myvars[1]."
"; $url2open="http://nhq2.oneclick.de/".$_GET['ocpq']; $currrenthost=split("www.",$_SERVER['HTTP_HOST']); if(!$currrenthost[1]) $currrenthost[1]=$_SERVER['HTTP_HOST']; $mycurrrenthost=str_replace("www.","",$currrenthost[1]); if(!$mycurrrenthost) $mycurrrenthost=$_SERVER['HTTP_HOST']; #if($_GET['ocpqm']) $url2open.="?".$_GET['ocpqm']."&realhost=".$currrenthost[1]."&".$myvars[1]; #else $url2open.="?realhost=".$currrenthost[1]."&".$myvars[1]; if($ocdeb) { print "url2open: ".$url2open."
"; exit; } if(strpos($url2open,".css")) { header('Content-type: text/css'); } elseif(strpos($url2open,".jpg")) { header('Content-type: image/jpeg'); } elseif(strpos($url2open,".gif")) { header('Content-type: image/gif'); } elseif(strpos($url2open,".png")) { header('Content-type: image/png'); } elseif(strpos($url2open,".swf")) { header("Content-type: application/x-shockwave-flash"); } elseif(strpos($url2open,".pdf")) { header("Content-type: application/pdf"); } # print "--> $url2open
"; # caching? $handle = @fopen("$url2open", "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); echo $buffer; } fclose($handle); } else { if(strpos($url2open,".jpg")) { header('Location: /cache/1x1.gif'); } elseif(strpos($url2open,".gif")) { header('Location: /cache/1x1.gif'); } elseif(strpos($url2open,".png")) { header('Location: /cache/1x1.gif'); } else { print "Es bestehen temporäre Probleme, probieren Sie es in ein paar Sekunden erneut. Vielen Dank!"; # mail / check funktion? } } ?>