Initial commit

This commit is contained in:
易焱
2021-04-18 18:51:51 +08:00
commit ec705f2fa8
3240 changed files with 623103 additions and 0 deletions
@@ -0,0 +1,20 @@
<?php
namespace Admin\Controller;
use Think\Controller;
class ConfigController extends AdminController{
public function index(){
if(IS_POST){
$conarr=C("LOAD_EXT_CONFIG");
foreach($conarr as $conf){
$settingstr="<?php \n return ".var_export($_POST[$conf],true).";";//配置文件str
$setting_path=APP_PATH."Common/Conf/".$conf.".php";//配置文件路径
file_put_contents($setting_path,$settingstr);//保存到配置文件里
}
//
D("UserLog")->add("update","网站设置","-");
$this->success("保存成功",U("index"));
}
$this->display();
}
}