chengkun
2025-05-26 4462855c0033970c39ac8d0da704b7dc41eabbfe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
 
error_reporting(0);
 
include("data/plus/config.php");
include("app/include/public.function.php");
//判断手机还是PC访问
 
if(isMobileUser($config)){
 
    if(!($config['sy_wapdomain'])){
 
        $config['sy_wapdomain'] = $config['sy_weburl'].'/'.$config['sy_wapdir'];
 
    }else{
        if($config['sy_wapssl']=='1'){
            $protocol = 'https://';
        }else{
            $protocol = 'http://';
        }
        if(strpos($config['sy_wapdomain'],'http://')===false && strpos($config['sy_wapdomain'],'https://')===false)
        {
            $config['sy_wapdomain'] = $protocol.$config['sy_wapdomain'];
        }
    }
    header('Location: '.$config['sy_wapdomain'].'/index.php?c=qqconnect&a=qqlogin&code='.$_GET['code']."&state=".$_GET['state']);
}else{
    header('Location: '.$config['sy_weburl'].'/index.php?m=qqconnect&code='.$_GET['code']."&state=".$_GET['state']);
}
 
 
?>