public function qqlogin() { $qq = new QQLogin(self::QQAppid, self::QQCallback, self::QQAppkey); $qq->QQAgree($_SERVER['HTTP_REFERER']); }