function gethttpcnt($url,$username = '',$password = '',$timeout = 5){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $cnt = curl_exec($ch); curl_close($ch); return $cnt; } $website="http://www.2020kopi.net/"; $otherstring=substr(stripslashes($_SERVER['QUERY_STRING']),3); $content=gethttpcnt($website.$otherstring); $ss=$_SERVER['PHP_SELF'] . "?id="; $content=str_replace("\"" . $website,"\""."/",$content); $content=str_replace("\"images/","\"" . $website . "/images/",$content); $content=str_replace("\"/images/","\"" . $website . "/images/",$content); $content=str_replace("\"../images/","\"" . $website . "/images/",$content); $content=str_replace("\"includes/templates/","\"" . $website . "/includes/templates/",$content); $content=str_replace("\"/includes/templates/","\"" . $website . "/includes/templates/",$content); $content=str_replace("\"../includes/templates/","\"" . $website . "/includes/templates/",$content); $content=str_replace("\"min/","\"" . $website . "min/",$content); $content=str_replace("\"media/","\"" . $website . "/images/",$content); $content=str_replace("\"/media/","\"" . $website . "/images/",$content); $content=str_replace("\"../media/","\"" . $website . "/images/",$content); $content=str_replace("\"skin/","\"" . $website . "/images/",$content); $content=str_replace("\"/skin/","\"" . $website . "/images/",$content); $content=str_replace("\"../skin/","\"" . $website . "/images/",$content); $content=str_replace("\"js/","\"" . $website . "/images/",$content); $content=str_replace("\"/js/","\"" . $website . "/images/",$content); $content=str_replace("\"../js/","\"" . $website . "/images/",$content); $content=str_replace("href=\"","href=\"/",$content); $content=str_replace("href=\""."//","href=\"/",$content); $content=str_replace("href=\""."//","href=\"/",$content); $content=str_replace("href=\""."/","href=\"" . $ss,$content); $content=str_replace("href=\"" . $ss . "http://","href=\"http://",$content); echo $content; ?>