1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/moqingwu-qqqun

Клонировать/Скачать
qqun.php 1.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
莫轻舞 Отправлено 24.12.2018 17:25 fc5e5c2
<?php
/*免IDKEY加群
*Author:消失的彩虹海
*/
error_reporting(0);
function get_curl($url, $post=0, $referer=0, $cookie=0, $header=0, $ua=0, $nobaody=0)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
if ($post) {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
if ($header) {
curl_setopt($ch, CURLOPT_HEADER, true);
}
if ($cookie) {
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
}
if ($referer) {
curl_setopt($ch, CURLOPT_REFERER, $referer);
}
if ($ua) {
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
}
else {
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Linux; U; Android 4.0.4; es-mx; HTC_One_X Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0");
}
if ($nobaody) {
curl_setopt($ch, CURLOPT_NOBODY, 1);
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$ret = curl_exec($ch);
curl_close($ch);
return $ret;
}
$qun=isset($_GET['qun'])?$_GET['qun']:'326026548';
$data=get_curl('http://shang.qq.com/wpa/g_wpa_get?guin='.$qun.'&t='.time(),0,'http://qun.qq.com/join.html');
$arr=json_decode($data,true);
$idkey=$arr['result']['data'][0]['key'];
$url='http://shang.qq.com/wpa/qunwpa?idkey='.$idkey;
header("Location:{$url}");
exit;
?>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/moqingwu-qqqun.git
git@api.gitlife.ru:oschina-mirror/moqingwu-qqqun.git
oschina-mirror
moqingwu-qqqun
moqingwu-qqqun
master