function url(){window.location.href ='inop0.php?sn=$tempsn';} "; }else{ $word_len = 10; $gp = ''; $word = '123456789'; $len = strlen($word); for ($i = 0; $i < $word_len; $i++) { $gp .= $word[rand() % $len]; } $updateSQL = sprintf("UPDATE member SET otp='%s' where liveid='%s'", $gp, $_COOKIE["lid"]); $updateip = mysql_query($updateSQL, $work_new); } include 'ivr_rand.php'; $url="http://203.66.120.17/api/api.php?web_id=272&action=getInfo&webhost=showlive&showid=".$_GET['sn']; $contents = file_get_contents($url); $inf = json_decode($contents); if($inf->getInfo->showid==""){ $url="http://203.66.120.17/api/api.php?web_id=272&action=getInfo&webhost=liveshow&showid=".$_GET['sn']; $contents = file_get_contents($url); $inf = json_decode($contents); } if($inf->getInfo->onmode=="1"){$perc=$inf->getInfo->cocard_one; $lmode = "一對一";} else{$perc=$inf->getInfo->cocard_many; $lmode = "一對多";} if($inf->getInfo->sexy=="1") $gsexy = "限(火辣)"; else if($inf->getInfo->sexy=="2") $gsexy = "輔(曖昧)"; else $gsexy = "普(純聊)"; $a = $_COOKIE["Username"]; $result= mysql_query("SELECT * FROM member WHERE account LIKE '$a'"); $row_rs_query = mysql_fetch_assoc($result); //$updateSQL = sprintf("UPDATE zb SET online='%s', onmode='%s' where showid='%s'", $inf->getInfo->online, $inf->getInfo->onmode, $inf->getInfo->showid); //$udsResult = mysql_query($updateSQL, $work_new); $showid=$inf->getInfo->showid;$showname=$inf->getInfo->showname;$online=$inf->getInfo->online;$onmode=$inf->getInfo->onmode;$webhost=$inf->getInfo->webhost;$totala=$inf->getInfo->totala;$img=$inf->getInfo->img;$cocard_one=$inf->getInfo->cocard_one;$cocard_many=$inf->getInfo->cocard_many;$thw=$inf->getInfo->{'3w'};$cm=$inf->getInfo->cm;$kg=$inf->getInfo->kg;$note=$inf->getInfo->note;$chatroom_url=$inf->getInfo->chatroom_url;$sexy=$inf->getInfo->sexy;$mic=$inf->getInfo->mic;$chinese=$inf->getInfo->chinese;$english=$inf->getInfo->english; $updateSQL = "REPLACE INTO zb (showid,showname,online,onmode,webhost,totala,img,cocard_one,cocard_many,3w,cm,kg,note,chatroom_url,sexy,mic,chinese,english) VALUES ('$showid','$showname','$online','$onmode','$webhost','$totala','$img','$cocard_one','$cocard_many','$thw','$cm','$kg','$note','$chatroom_url','$sexy','$mic','$chinese','$english')"; $udsResult = mysql_query($updateSQL, $work_new); $imgname = "img/".$_GET['sn'].'_b.gif'; if(file_exists($imgname)){$imagesrc=$imgname;}else{$imagesrc=$inf->getInfo->img;} if($a!="" and $_GET['list']!=""){ $zbl= mysql_query("SELECT * FROM zb_list WHERE uid LIKE '$a' AND zid LIKE '$tempsn'"); $num_rs_zbl = mysql_num_rows($zbl); if($num_rs_zbl!=1){ $replaceSQL = "REPLACE INTO zb_list (uid,zid) VALUES ('$a','$tempsn')"; $zbResult = mysql_query($replaceSQL, $work_new); } echo ""; echo ""; } $wt = $_SERVER["SERVER_NAME"]; $subdomain = substr($wt, 0, strpos($wt, '.')); $maindomain = substr(substr($wt, strpos($wt, '.')),1); $wtitle= mysql_query("SELECT * FROM ad_list WHERE u次網域 LIKE '%$subdomain%' AND u主網域 LIKE '%$maindomain%'"); $row_rs_wtitle = mysql_fetch_assoc($wtitle); $query_rs_rand = sprintf("SELECT * FROM ad_list ORDER BY sn LIMIT 100"); $rs_rand = mysql_query($query_rs_rand, $work_new) or die(mysql_error()); $row_rs_rand = mysql_fetch_assoc($rs_rand); $query_rs_rand2 = sprintf("SELECT * FROM ad_list ORDER BY sn LIMIT 100"); $rs_rand2 = mysql_query($query_rs_rand2, $work_new) or die(mysql_error()); $row_rs_rand2 = mysql_fetch_assoc($rs_rand2); if($row_rs_wtitle['u標頭']==""){ $rs_domain = mysql_query("SELECT * FROM ad_domain WHERE d網域 LIKE '%$wt%'"); $row_rs_domain = mysql_fetch_assoc($rs_domain); $row_rs_wtitle['u標頭']=$row_rs_domain['d標頭']; $row_rs_wtitle['u關鍵字']=$row_rs_domain['d關鍵字']; $row_rs_wtitle['u內文']=$row_rs_domain['d內文']; $row_rs_wtitle['uHTML']=$row_rs_domain['dHTML']; } ?> <? echo $row_rs_wtitle['u標頭'];?>

一對一一對多限(火辣)輔( 曖昧)普(純聊)
getInfo->note!=""){ ?>

getInfo->onmode=="1"){ ?> 一對一 一對多 getInfo->sexy=="1"){ ?> 限(火辣) getInfo->sexy=="2"){ ?> 輔(曖昧) 普(純聊)

加入心愛主播

主播暱稱:getInfo->showname?>

主播編號:getInfo->showid?>

聊天類型:

聊天話題:

每分鐘:

主播基本資料

getInfo->{'3w'}!=""){ ?>

3w:getInfo->{'3w'}?>

身高:getInfo->cm?>cm

體重:getInfo->kg?>kg

自我介紹:

getInfo->note?>