日期:2011-10-05 浏览次数:20487 次
01 <?php |
02 | // 不多说了,直接上转载请著名出处 php100.com |
03 | include "http.class.php"; |
04 |
05 | class qq { |
06 |
07 | public $sid; |
08 | public $http; |
09 | public $qq_num; |
10 |
11 | function __construct() { |
12 | $this->http = new http; |
13 | } |
14 |
15 | function login($qq_num, $qq_pwd) { |
16 | $data = $this->http->get("http://pt.3g.qq.com/"); |
17 | $action = preg_match("/action=\"(.+)?\"/", $data, $matches); |
18 | $action = $matches[1]; |
19 | $params = array(); |
20 | $params["login_url"] = "http://pt.3g.qq.com/s?aid=nLogin"; |