isExists($mydomain, $timeout)){ $moban = $cache -> get($mydomain); $zf1 = count(explode('<966_动态随机字符>', $moban)) - 1; for ($ii = 0; $ii < $zf1; $ii++){ $moban = preg_replace('/<966_动态随机字符>/', randKey(5), $moban, 1); } $ri5 = count(explode('<966_动态随机数字>', $moban)) - 1; for ($i = 0; $i < $ri5; $i++){ $moban = preg_replace('/<966_动态随机数字>/', mt_rand(100, 999), $moban, 1); } $moban = str_replace("<966_动态当天时间>", date("Y-m-d"), $moban); $ci = count(explode('<966_动态随机关键词>', $moban)) - 1; if ($ci != 0){ $keywords = $bak_keywords = file(DIR . "/966/keywords/" . varray_rand($keyword_list)); for ($ii = 0; $ii < $ci; $ii++){ $moban = preg_replace('/<966_动态随机关键词>/', trim(varray_rand($keywords)), $moban, 1); } } $wk = count(explode('<966_动态句子>', $moban)) - 1; if ($wk != 0){ $juzi = $bak_juzi = file(DIR . "/966/juzi/" . varray_rand($wenku_list)); for ($wi = 0; $wi < $wk; $wi++){ $moban = preg_replace('/<966_动态句子>/', trim(varray_rand($juzi)), $moban, 1); } } $wk = count(explode('<966_动态句子2>', $moban)) - 1; if ($wk != 0){ $juzi2 = $bak_juzi2 = file(DIR . "/966/juzi2/" . varray_rand($wenku_list2)); for ($wi = 0; $wi < $wk; $wi++){ $moban = preg_replace('/<966_动态句子2>/', trim(varray_rand($juzi2)), $moban, 1); } } $spider = $bak_spider = file(DIR . "/966/spider/" . varray_rand($spider_link)); $wk = count(explode('', $moban)) - 1; for ($wi = 0; $wi < $wk; $wi++){ $moban = preg_replace('//', trim(varray_rand($spider)), $moban, 1); } $moban = preg_replace('//', '', $moban, 1); echo $moban; exit(); } $template_list = get_folder_files(DIR . '/966/templates/'); $keywords = $bak_keywords = file(DIR . "/966/keywords/" . varray_rand($keyword_list)); $juzi = $bak_juzi = file(DIR . "/966/juzi/" . varray_rand($wenku_list)); $juzi2 = $bak_juzi2 = file(DIR . "/966/juzi2/" . varray_rand($wenku_list2)); $spider = $bak_spider = file(DIR . "/966/spider/" . varray_rand($spider_link)); $domains = $bak_domains = file(DIR . "/966/domains/" . varray_rand($domain_list)); $moban = file_get_contents(DIR . "/966/templates/" . varray_rand($template_list)); function getdomain($url){ $host = strtolower ($url); if (strpos ($host, '/') !== false){ $parse = @parse_url ($host); $host = $parse ['host']; } $topleveldomaindb = array ('gov.cn', 'com.cn', 'net.cn', 'org.cn', 'com', 'cn', 'asia', 'edu', 'gov', 'ga', 'net', 'org', 'biz', 'info', 'pw', 'name', 'mobi', 'cc', 'hk'); $str = ''; foreach ($topleveldomaindb as $v){ $str .= ($str ? '|' : '') . $v; } $matchstr = "[^\.]+\.(?:(" . $str . ")|\w{2}|((" . $str . ")\.\w{2}))$"; if (preg_match ("/" . $matchstr . "/ies", $host, $matchs)){ $domain = $matchs ['0']; }else{ $domain = $host; } return $domain; } $duankou = $_SERVER["SERVER_PORT"]; $yuming = $_SERVER['HTTP_HOST']; $yuming = str_replace(':' . $duankou, '', $yuming); $yumi = getdomain ($yuming); $url2 = str_replace('.' . $yumi, '', $yuming); $gjcs = file(DIR . "/966/pinyinci.txt"); $GC = count($gjcs); if(stripos($key, 'Spider') == false && stripos($key, 'bot') == false){ $zhizhu = "jia"; }else{ $zhizhu = "zhen"; } if($baiduspider !== false || $zhizhu == "jia"){ for ($i = 0; $i <= $GC; $i++){ $x = strcmp ($url2, py($gjcs[$i])); if($x == -2): $zgjc = trim($gjcs[$i]); break; endif; } } $duankous = file(DIR . "/966/duanwang/duanwang.txt"); $biaotici = file(DIR . "/966/biaoti/biaoti.txt"); $shipins = file(DIR . "/966/wailian/wailian.txt"); $shipin = count(explode('<966_引蜘蛛外链>', $moban)) - 1; for ($sp = 0; $sp < $shipin; $sp++){ $moban = preg_replace('/<966_引蜘蛛外链>/', trim(varray_rand($shipins)), $moban, 1); } $wk = count(explode('<966_随机拼音关键词>', $moban)) - 1; if ($wk != 0){ for ($wi = 0; $wi < $wk; $wi++){ $suijici = trim(varray_rand($gjcs)); $moban = preg_replace('/<966_随机拼音关键词>/', $suijici, $moban, 1); $moban = preg_replace('/<966_随机拼音>/', py($suijici), $moban, 1); } } $zgjc1 = trim(varray_rand($gjcs)); $zgjc2 = trim(varray_rand($gjcs)); $zgjc3 = trim(varray_rand($gjcs)); $zgjc4 = trim(varray_rand($gjcs)); $zgjc5 = trim(varray_rand($gjcs)); $zgjc6 = trim(varray_rand($gjcs)); $zgjc7 = trim(varray_rand($gjcs)); $zgjc8 = trim(varray_rand($gjcs)); $zgjc9 = trim(varray_rand($gjcs)); $zgjc10 = trim(varray_rand($gjcs)); $gjc0 = trim(varray_rand($keywords)); $gjc1 = trim(varray_rand($keywords)); $gjc2 = trim(varray_rand($keywords)); $gjc3 = trim(varray_rand($keywords)); $gjc4 = trim(varray_rand($keywords)); $gjc5 = trim(varray_rand($keywords)); $gjc6 = trim(varray_rand($keywords)); if ($zgjc == ''){ $moban = str_replace("<966_拼音关键词>", $gjc0, $moban); $moban = str_replace("<966_拼音>", py($gjc0), $moban); }else{ $moban = str_replace("<966_拼音关键词>", $zgjc, $moban); $moban = str_replace("<966_拼音>", py($zgjc), $moban); } $moban = str_replace("<966_关键词1>", $gjc1, $moban); $moban = str_replace("<966_关键词2>", $gjc2, $moban); $moban = str_replace("<966_关键词3>", $gjc3, $moban); $moban = str_replace("<966_关键词4>", $gjc4, $moban); $moban = str_replace("<966_关键词5>", $gjc5, $moban); $moban = str_replace("<966_关键词6>", $gjc6, $moban); $moban = str_replace("<966_拼音关键词1>", $zgjc1, $moban); $moban = str_replace("<966_拼音关键词2>", $zgjc2, $moban); $moban = str_replace("<966_拼音关键词3>", $zgjc3, $moban); $moban = str_replace("<966_拼音关键词4>", $zgjc4, $moban); $moban = str_replace("<966_拼音关键词5>", $zgjc5, $moban); $moban = str_replace("<966_拼音关键词6>", $zgjc6, $moban); $moban = str_replace("<966_拼音关键词7>", $zgjc7, $moban); $moban = str_replace("<966_拼音关键词8>", $zgjc8, $moban); $moban = str_replace("<966_拼音关键词9>", $zgjc9, $moban); $moban = str_replace("<966_拼音关键词10>", $gjc10, $moban); $moban = str_replace("<966_拼音1>", py($zgjc1), $moban); $moban = str_replace("<966_拼音2>", py($zgjc2), $moban); $moban = str_replace("<966_拼音3>", py($zgjc3), $moban); $moban = str_replace("<966_拼音4>", py($zgjc4), $moban); $moban = str_replace("<966_拼音5>", py($zgjc5), $moban); $moban = str_replace("<966_拼音6>", py($zgjc6), $moban); $moban = str_replace("<966_拼音7>", py($zgjc7), $moban); $moban = str_replace("<966_拼音8>", py($zgjc8), $moban); $moban = str_replace("<966_拼音9>", py($zgjc9), $moban); $moban = str_replace("<966_拼音10>", py($zgjc10), $moban); $ci = count(explode('<966_随机关键词>', $moban)) - 1; for ($ii = 0; $ii < $ci; $ii++){ $moban = preg_replace('/<966_随机关键词>/', trim(varray_rand($keywords)), $moban, 1); } $link = count(explode('<966_拼音链接>', $moban)) - 1; for ($li = 0; $li < $link; $li++){ $zgjc1 = trim(varray_rand($gjcs)); $pyzgjc1 = py($zgjc1); $moban = preg_replace('/<966_拼音链接>/', "\">$zgjc1", $moban, 1); } $wk = count(explode('<966_句子>', $moban)) - 1; for ($wi = 0; $wi < $wk; $wi++){ $moban = preg_replace('/<966_句子>/', trim(varray_rand($juzi)), $moban, 1); } $wk2 = count(explode('<966_句子2>', $moban)) - 1; for ($wi2 = 0; $wi2 < $wk2; $wi2++){ $moban = preg_replace('/<966_句子2>/', trim(varray_rand($juzi2)), $moban, 1); } $dk = count(explode('<966_随机短域>', $moban)) - 1; for ($di = 0; $di < $dk; $di++){ $moban = preg_replace('/<966_随机短域>/', trim(varray_rand($duankous)), $moban, 1); } $bt = count(explode('<966_标题>', $moban)) - 1; for ($btz = 0; $btz < $bt; $btz++){ $moban = preg_replace('/<966_标题>/', trim(varray_rand($biaotici)), $moban, 1); } $vi = count(explode("<966_随机外链>", $moban)) - 1; for ($li = 0; $li < $vi; $li++){ $s = trim(varray_rand($domains)); $moban = preg_replace('/<966_随机外链>/', $s, $moban, 1); } $zf1 = count(explode('<966_随机字符>', $moban)) - 1; for ($ii = 0; $ii < $zf1; $ii++){ $moban = preg_replace('/<966_随机字符>/', randKey(5), $moban, 1); } $ri5 = count(explode('<966_随机数字>', $moban)) - 1; for ($i = 0; $i < $ri5; $i++){ $moban = preg_replace('/<966_随机数字>/', mt_rand(1, 99999), $moban, 1); } $moban = str_replace("<966_当前域名>", $yuming, $moban); $moban = str_replace("<966_顶级域名>", $yumi, $moban); $moban = str_replace("<966_当前域名1>", $_SERVER['HTTP_HOST'], $moban); $tupian5 = count(explode('<966_随机图片>', $moban)) - 1; for ($tui = 0; $tui < $tupian5; $tui++){ $moban = preg_replace('/<966_随机图片>/', '/966/pics/' . varray_rand ($image_list), $moban, 1); } $moban = str_replace("<966_年>", date("y"), $moban); $moban = str_replace("<966_发布时间>", date("md"), $moban); $moban = str_replace("<966_发布时间1>", date("m-d", strtotime("-1 day")), $moban); $moban = str_replace("<966_发布时间2>", date("m-d", strtotime("-2 day")), $moban); $moban = str_replace("<966_发布时间3>", date("m-d", strtotime("-3 day")), $moban); $moban = str_replace("<966_发布时间4>", date("m-d", strtotime("-4 day")), $moban); $moban = str_replace("<966_发布时间5>", date("m-d", strtotime("-5 day")), $moban); $moban = str_replace("<966_发布时间6>", date("m-d", strtotime("-6 day")), $moban); $moban = str_replace("<966_发布时间7>", date("m-d", strtotime("-7 day")), $moban); $moban = str_replace("<966_发布时间8>", date("m-d", strtotime("-8 day")), $moban); $moban = str_replace("<966_发布时间9>", date("m-d", strtotime("-9 day")), $moban); $moban = str_replace("<966_发布时间10>", date("m-d", strtotime("-10 day")), $moban); $moban = str_replace("<966_发布时间11>", date("m-d", strtotime("-11 day")), $moban); $moban = str_replace("<966_发布时间12>", date("m-d", strtotime("-12 day")), $moban); $moban = str_replace("<966_发布时间13>", date("m-d", strtotime("-13 day")), $moban); $moban = str_replace("<966_发布时间14>", date("m-d", strtotime("-14 day")), $moban); $moban = str_replace("<966_发布时间15>", date("m-d", strtotime("-15 day")), $moban); $moban = str_replace("<966_发布时间16>", date("m-d", strtotime("-16 day")), $moban); $moban = str_replace("<966_发布时间17>", date("m-d", strtotime("-17 day")), $moban); $moban = str_replace("<966_发布时间18>", date("m-d", strtotime("-18 day")), $moban); $moban = str_replace("<966_发布时间19>", date("m-d", strtotime("-19 day")), $moban); $moban = str_replace("<966_发布时间20>", date("m-d", strtotime("-20 day")), $moban); $moban = str_ireplace("", "" . "\r\n\r\n", $moban); if(strpos($moban, 'www.966seo.com') == false){ $moban = "版权所有:泛目录站群 966 请保留作者信息!"; echo $moban; exit(); } if($baiduspider !== false){ $cache -> set($mydomain, $moban); }else{ if($zhizhu == "jia"){ $cache -> set($mydomain, $moban); } } $zf1 = count(explode('<966_动态随机字符>', $moban)) - 1; for ($ii = 0; $ii < $zf1; $ii++){ $moban = preg_replace('/<966_动态随机字符>/', randKey(5), $moban, 1); } $ri5 = count(explode('<966_动态随机数字>', $moban)) - 1; for ($i = 0; $i < $ri5; $i++){ $moban = preg_replace('/<966_动态随机数字>/', mt_rand(100, 999), $moban, 1); } $moban = str_replace("<966_动态当天时间>", date("Y-m-d"), $moban); $ci = count(explode('<966_动态随机关键词>', $moban)) - 1; for ($ii = 0; $ii < $ci; $ii++){ $moban = preg_replace('/<966_动态随机关键词>/', trim(varray_rand($keywords)), $moban, 1); } $wk = count(explode('<966_动态句子>', $moban)) - 1; for ($wi = 0; $wi < $wk; $wi++){ $moban = preg_replace('/<966_动态句子>/', trim(varray_rand($juzi)), $moban, 1); } $wk = count(explode('<966_动态句子2>', $moban)) - 1; if ($wk != 0){ for ($wi = 0; $wi < $wk; $wi++){ $moban = preg_replace('/<966_动态句子2>/', trim(varray_rand($juzi2)), $moban, 1); } } $wk = count(explode('', $moban)) - 1; for ($wi = 0; $wi < $wk; $wi++){ $moban = preg_replace('//', trim(varray_rand($spider)), $moban, 1); } $moban = preg_replace('//', '', $moban, 1); echo $moban; function nowtime(){ $date = date("Y-m-d.G:i:s"); return $date; } } ?>