chengkun
2025-05-12 c49b17b9588306c14ad4b30e6a2c4b8644f3233b
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
<?php
 
class admin_haibao_controller extends adminCommon{
    function index_action(){
        
        $this->yuntpl(array('admin/admin_haibao_config'));
        
    }
    
    function save_action(){
         if($_POST['config']){
            unset($_POST['config']);
            
            $configM        =        $this->MODEL('config');
            
            $configM->setConfig($_POST);
           
            $this->web_config();
            
            $this->ACT_layer_msg( "海报配置设置成功!",9,1,2,1);
         }
    }
 
    function get_restnum_action(){
        $haibaouser            =        iconv('utf-8','gbk',trim($_POST['haibaouser']));
        $key                =        trim($_POST['key']);
        $url                =        'http://haibao.phpyun.com/restnum.php';
        $url                .=        "?haibaouser=".$haibaouser."&key=".$key;
        
        if (extension_loaded('curl')){
            $file_contents     =         CurlGet($url);
 
        }else if(function_exists('file_get_contents')){
            
            $file_contents    =         file_get_contents($url);
 
        }
 
         echo $file_contents;die;
         
    }
}
?>