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
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
<?php
function smarty_function_backurl($paramer,&$smarty){
        global $config;
        
        //设立返回模块对应数组 不在数组对应中的直接返回首页
        $backArray['1'] = array('modify'=>'resume','addexpect'=>'modify','info'=>'resume','');
 
        
        if(!($config['sy_wapdomain'])){
 
            $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)
            {
                $sy_wapdomain = $protocol.$config['sy_wapdomain'];
            }
        }
        
            
        $getC = $_GET['c'];
 
        if($getC){
                $path = explode('&',$wapMemUrl['query']);
                foreach($path as $v){
                    $vList = explode('=',$v);
                    $newPath[$vList[0]] = $vList[1];
                }
        }else{
 
            $backUrl = $sy_wapdomain.'/member/';
        }
        //无来路域名 或 来路域名为第三方 则返回链接为首页
        if(!$wapMemUrl['host'] || $wapMemUrl['host']!=$_SERVER['HTTP_HOST']){
 
            
 
        }else{
            
            
            
            
 
            //同一模块下不同参数的跳转,返回链接为父模块
            if($newPath['c']==$getC && $newPath['a']==$getA){
            
            
            }elseif($newPath['c']==$getC){//只有父模块相似 则返回原链接
            
                
            }
            if($getArr['a']){
                if(!empty($getArr)){
                    $backUrl = $sy_wapdomain.'/member/index.php?c='.$getC.'&a='.$getA;
                }else{
                    $backUrl = $sy_wapdomain.'/member/index.php?c='.$getC;
                }
            }elseif($getArr['c']){
                
                $backUrl = $sy_wapdomain.'/member/';
            }
        }
        
        //return $backUrl;
    }
?>