public function enterQzone($referer, $ptsig)
{
$options = array(
CURLOPT_TIMEOUT => $this->request_timeout,
CURLOPT_HEADER => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://user.qzone.qq.com/' . $this->user . '?ptsig=' . $ptsig,
CURLOPT_HTTPHEADER => array(
'Referer:' . $referer,
'Host:user.qzone.qq.com',
'Connection:keep-alive',
)
);
return ResultExtract::enterQzoneSuccess($this->requestExec($options));
}
public function getCoreJs()
{
$options = array(
CURLOPT_TIMEOUT => $this->request_timeout,
CURLOPT_HEADER => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => "http://ctc.qzonestyle.gtimg.cn/c/=https://www.jb51.net/qzone/v8/engine/cpu.js,/qzone/v8/ic/qm.js,/qzone/v8/ic/tab_menu.js,/qzone/v8/ic/feeds.js,/qzone/v8/ic/tab_friend_feed.js,/qzone/v8/toolbar/core.js",
);
return ResultExtract::getCoreJsInfo($this->requestExec($options), $this->user);
}
public function getVisitorInfo($mask = 7, $page = 1, $fupdate = 1, $clear = 1)
{
$options = array(
CURLOPT_TIMEOUT => $this->request_timeout,
CURLOPT_HEADER => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://g.qzone.qq.com/cgi-bin/friendshow/cgi_get_visitor_more?' . http_build_query(array(
'uin' => $this->user,
'mask' => $mask,
'g_tk' => $this->getGTKEncryption(),
'page' => $page,
'fupdate' => $fupdate,
'clear' => $clear,
'sd' => Utils::jsRandom(),
)),
CURLOPT_HTTPHEADER => array(
'Referer:',
'User-Agent:' . $this->user_agent,
'Host:g.qzone.qq.com',
'Connection:keep-alive',
)
);
return ResultExtract::getVisitors($this->requestExec($options));
}