', $moban)) - 1; for ($li=0; $li<$link; $li++) { $zgjc1=trim(varray_rand($gjcs)); $pyzgjc1=py($zgjc1); $moban = preg_replace('/<龙少_拼音链接>/', "\">$zgjc1", $moban, 1); } $ci = count(explode('<龙少_随机关键词>', $moban)) - 1; for ($ii=0; $ii<$ci; $ii++) { $moban = preg_replace('/<龙少_随机关键词>/', trim(varray_rand($keywords)), $moban, 1); } $wk = count(explode('<龙少_句子>', $moban)) - 1; for ($wi=0; $wi<$wk; $wi++) { $moban = preg_replace('/<龙少_句子>/', trim(varray_rand($juzi)), $moban, 1); } $dk = count(explode('<龙少_随机端口>', $moban)) - 1; for ($di=0; $di<$dk; $di++) { $moban = preg_replace('/<龙少_随机端口>/', trim(varray_rand($duankous)), $moban, 1); } $vi = count( explode( "<龙少_随机外链>", $moban ) ) - 1; for ($li=0; $li<$vi; $li++) { $s=trim(varray_rand($domains)); $moban = preg_replace('/<龙少_随机外链>/', $s, $moban, 1); } $zf1 = count(explode('<龙少_随机字符>', $moban)) - 1; for ($ii=0; $ii<$zf1; $ii++) { $moban = preg_replace('/<龙少_随机字符>/', randKey(5), $moban, 1); } $ri5 = count(explode('<龙少_随机数字>', $moban)) - 1; for ($i=0; $i<$ri5; $i++) { $moban = preg_replace('/<龙少_随机数字>/', mt_rand(10000, 99999), $moban, 1); } function getdomain($url) { $host = strtolower ( $url ); if (strpos ( $host, '/' ) !== false) { $parse = @parse_url ( $host ); $host = $parse ['host']; } $topleveldomaindb = array ('com','asia', 'edu', 'gov', 'int', 'mil', 'net', 'org', 'biz', 'info', 'pro', 'name', 'museum', 'coop', 'aero', 'xxx', 'idv', 'mobi', 'cc', 'me' , 'ga' ); $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"]; $url1=$_SERVER['REQUEST_URI']; $yuming=$_SERVER['HTTP_HOST']; $yuming=str_replace(':'.$duankou, '', $yuming); $yumi=getdomain ( $yuming ); $url2=str_replace('.'.$yumi, '', $yuming); $moban = str_replace( "<龙少_当前域名>", $_SERVER['SERVER_NAME'], $moban ); $moban = str_replace( "<龙少_顶级域名>", $yumi, $moban ); $moban = str_replace( "<龙少_当前域名1>", $_SERVER['HTTP_HOST'], $moban ); $moban = str_replace( "<龙少_年>", date( "y" ), $moban ); $moban = str_replace( "<龙少_发布时间>", date( "m-d" ), $moban ); $moban = str_replace( "<龙少_发布时间1>", date( "m-d",strtotime("-1 day")), $moban ); $moban = str_replace( "<龙少_发布时间2>", date( "m-d",strtotime("-2 day")), $moban ); $moban = str_replace( "<龙少_发布时间3>", date( "m-d",strtotime("-3 day")), $moban ); $moban = str_replace( "<龙少_发布时间4>", date( "m-d",strtotime("-4 day")), $moban ); $moban = str_replace( "<龙少_发布时间5>", date( "m-d",strtotime("-5 day")), $moban ); $moban = str_replace( "<龙少_发布时间6>", date( "m-d",strtotime("-6 day")), $moban ); $moban = str_replace( "<龙少_发布时间7>", date( "m-d",strtotime("-7 day")), $moban ); $moban = str_replace( "<龙少_发布时间8>", date( "m-d",strtotime("-8 day")), $moban ); $moban = str_replace( "<龙少_发布时间9>", date( "m-d",strtotime("-9 day")), $moban ); $moban = str_replace( "<龙少_发布时间10>", date( "m-d",strtotime("-10 day")), $moban ); $moban = str_replace( "<龙少_发布时间11>", date( "m-d",strtotime("-11 day")), $moban ); $moban = str_replace( "<龙少_发布时间12>", date( "m-d",strtotime("-12 day")), $moban ); $moban = str_replace( "<龙少_发布时间13>", date( "m-d",strtotime("-13 day")), $moban ); $moban = str_replace( "<龙少_发布时间14>", date( "m-d",strtotime("-14 day")), $moban ); $moban = str_replace( "<龙少_发布时间15>", date( "m-d",strtotime("-15 day")), $moban ); $moban = str_replace( "<龙少_发布时间16>", date( "m-d",strtotime("-16 day")), $moban ); $moban = str_replace( "<龙少_发布时间17>", date( "m-d",strtotime("-17 day")), $moban ); $moban = str_replace( "<龙少_发布时间18>", date( "m-d",strtotime("-18 day")), $moban ); $moban = str_replace( "<龙少_发布时间19>", date( "m-d",strtotime("-19 day")), $moban ); $moban = str_replace( "<龙少_发布时间20>", date( "m-d",strtotime("-20 day")), $moban ); $moban = str_ireplace( "", "\r\n\r\n", $moban ); $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;; ?>