Administrator(2); } public function __destruct() { } function index() { $this->header(); $this->footer(); ?> action != "index" ? $this->action : "system"; $_var_1 = db("config")->where("category", $_var_0)->where("status", "1"); $_var_2 = $_var_1->group("group")->field("group")->select()->toArray(); $_var_2 = array_column($_var_2, "group"); ?>
ShowMessage("表单来路不明,无法提交!", $_SERVER["PHP_SELF"], "infotitle3", 3000, 1); } //var_dump('',$_POST);die;
foreach ($_POST as $_var_15 => $_var_16) {
if (is_array($_var_16)) {
$_var_16 = json_encode($_var_16);
}
db("config")->where("name", $_var_15)->update(["value" => $_var_16]);
}
$_var_17 = db("config")->select();
$_var_18 = [" $_var_16) {
if ($_var_16["name"] == "IN_STAT") {
$_var_16["value"] = base64_encode($_var_16["value"]);
}
$_var_18[] = "define('" . $_var_16["name"] . "','" . $_var_16["value"] . "');";
}
$_var_19 = IN_ROOT . "source/system/my.php";
file_put_contents($_var_19, implode("\n", $_var_18));
echo json_encode(['status'=>1,'msg'=>'恭喜您,设置保存成功!']);die;
$this->ShowMessage("恭喜您,设置保存成功!", $_SERVER["HTTP_REFERER"], "infotitle2", 1000, 1);
}
}