chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
function smarty_function_xcxurl($paramer,&$smarty){
        global $config,$db_config,$db,$views;
        
        include_once(APP_PATH.'app/model/xcx.model.php');
          
        $xcxM  =  new xcx_model($db,$db_config['def']);
        
        $xcxdata = array(
            'type'=>$paramer['type'],
            'id'=>$paramer['id']
        );
 
        $url = $xcxM->getUrlLink($xcxdata);
        
        return $url;
 
    }
?>