chengkun
2025-05-22 3b321a2882db082c68aaf8771e0f55daa58a63d3
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
 
if($config['sy_web_site']=="1" && !isset($_POST['xcxCode'])){
    if(($_COOKIE['cityid'] || $_COOKIE['hyclass'] || $_COOKIE['three_cityid'] || $_COOKIE['province'])&&$_COOKIE['did']){
        
        $config['sy_wapurl']    =  $_COOKIE['sy_wapurl'];
        $config['province']        =  (int)$_COOKIE['province'];
        $config['cityid']        =  (int)$_COOKIE['cityid'];
        $config['three_cityid']    =  (int)$_COOKIE['three_cityid'];
        $config['cityname']        =  $_COOKIE['cityname'];
        $config['sy_indexcity_n']=  $config['sy_indexcity']    ;
        $config['sy_indexcity']    =  $_COOKIE['cityname'];
        $config['did']            =  (int)$_COOKIE['did'];
        $config['fz_type']        =  $_COOKIE['fz_type'];
        $config['hyclass']        =  $_COOKIE['hyclass'];
        $config['style']        =  $_COOKIE['style'];  
        if($_COOKIE['sy_webtitle']!=""){
            $config['sy_webtitle']    =  $_COOKIE['sy_webtitle'];
        }
        if($_COOKIE['sy_webname']!=""){
            $config['sy_webname']    =  $_COOKIE['sy_webname'];
        }
        if($_COOKIE['sy_webkeyword']!=""){
            $config['sy_webkeyword']    =  $_COOKIE['sy_webkeyword'];
        }
        if($_COOKIE['sy_webmeta']!=""){
            $config['sy_webmeta']    =  $_COOKIE['sy_webmeta'];
        }
        if($_COOKIE['sy_logo']!=""){
            $config['sy_logo']    =  $_COOKIE['sy_logo'];
        }
 
    }else{
        include(PLUS_PATH."/domain_cache.php");
        include(PLUS_PATH."/city.cache.php");
        include(PLUS_PATH."/industry.cache.php");
        
        if(is_array($site_domain)){
            foreach($site_domain as $key=>$value){
                if($value['host']==$_SERVER['HTTP_HOST']){
                    $parseDate['did']=$value['id'];
                    $parseDate['fz_type']=$value['fz_type'];
                    if($parseDate['fz_type']=='1'){
                        if($value['three_cityid']>0){
                            $parseDate['three_cityid']    =    $value['three_cityid'];
                            $parseDate['cityname']        =    $city_name[$value['three_cityid']];
                        }elseif($value['cityid']>0){
                            $parseDate['cityid']    =    $value['cityid'];
                            $parseDate['cityname']    =    $city_name[$value['cityid']];
                        }else{
                            $parseDate['province']    =    $value['province'];
                            $parseDate['cityname']    =    $city_name[$value['province']];
                        }
                        setcookies('hyclass',time()-86400,"/");
                    }else if($parseDate['fz_type']=='2'&&$value['hy']){
                        $parseDate['hyclass']=$value['hy'];
                        $parseDate['cityname']        =    $value['webname'];
                        setcookies(
                            array(
                            'cityid'=>'',
                            'three_cityid'=>''
                            ),time()-86400,"/"
                        );
                    }
                    if($value['webname']){$parseDate['sy_webname']  =    $value['webname'];}
                    if($value['webtitle']){$parseDate['sy_webtitle']  =    $value['webtitle'];}
                    if($value['weblogo']){$parseDate['sy_logo']  =    $value['weblogo'];}
                    if($value['webkeyword']){$parseDate['sy_webkeyword']  =    $value['webkeyword'];}
                    if($value['webmeta']){$parseDate['sy_webmeta']  =    $value['webmeta'];}
                    if($value['style']){$parseDate['style']  =    $value['style'];}
                    $parseDate['sy_wapurl']  =    $host;
                    
                    setcookies($parseDate,time()+86400,"/");
                    $config = array_merge($config,$parseDate);
                    
                }
            }
        }
        if(!$parseDate && $_COOKIE['fz_type']){
            setcookies(
                array(
                'sy_wapurl'=>'',
                'did'=>'',
                'fz_type'=>'',
                'province'=>'',
                'cityid'=>'',
                'hyclass'=>'',
                'three_cityid'=>'',
                'cityname'=>'',
                'sy_webkeyword'=>'', 
                'sy_logo'=>'',
                'style'=>'',
                'sy_webtitle'=>'',
                'sy_webmeta'=>'',
                'sy_webname'=>''
 
            ),time()-86400,$config['sy_onedomain']);
            
        }
    }
}
 
 
 
?>