//qq登录 $code = empty($_GET['code'])? '' : trim($_GET['code']); //判断是不是手机登录 if(isMobile() == 1){ $pc_state = 'oauth2.0'; $url_state = ''; }else{ $pc_state...
/** * @descript 验证码 m个数字 显示大小为n 边宽x 边高y */ function vCode($num = 4, $size = 20, $width = 0, $height = 0) { !$width && $width = $num * $size * 4 / 5 + 5; !$height &...
/** * @descript 判断手机还是电脑访问 */ function isMobile(){ //获取用户浏览器 $UA = strtoupper(@$_SERVER['HTTP_USER_AGENT']); //判断用户浏览器标识 if(preg_match("/(iPhone|iPad|iPod|Android)/i", $...
/** * @descript GET请求 * @param [string] $url 请求地址 * @return [json] $data 返回数据 */ function https_get($url) { //初始化一个会话 $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSF...