chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
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']);
}
 
 
?>