ad

2017-06-11 01:12:47 -0400
" method="post">
error_code == 0){ echo "回贴成功!" ; }else{ echo $re->error_msg; } function replyWithLocation($content,$tid,$td,$place = "火星"){ global $bduss ; $pd = array( "BDUSS=".$bduss , "_client_id=wappc_1414916745130_706" , "_client_type=2" , "_client_version=6.4.6" , "_phone_imei=357143042411618" , "anonymous=1" , "content=".$content , "fid=".$td->forum->id , "is_ad=0" , "is_location=2" , "kw=".$td->forum->name , "lat=200.000000" , "lng=100.000000" , "name=".$place , "net_type=3" , "tbs=".$td->anti->tbs , "tid=".$tid , "title=" ); return json_decode(curl_post($pd ,"http://c.tieba.baidu.com/c/c/post/add ")); } function getPage($tid ,$rn = 2 ,$pn = 1){ global $bduss ; $pd = array( "BDUSS=".$bduss , "_client_id=wappc_1414916745130_706" , "_client_type=2" , "_client_version=6.4.6" , "_phone_imei=357143042411618" , "back=0" , "kz=".$tid , "net_type=3" , "pn=".$pn , "rn=".$rn , "with_floor=1" ); return json_decode(curl_post($pd ,"http://c.tieba.baidu.com/c/f/pb/page ")); } function curl_post($pda ,$url){ $header = array ("Content-Type:application/x-www-form-urlencoded"); $data = implode("&",$pda)."&sign=".md5(implode("", $pda)."tiebaclient!!!"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 30); $re = curl_exec($ch) ; curl_close($ch); return $re; }
«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N