function api_submit()
{
$_act_post = fn_getSafe($GLOBALS["act_post"], "txt", "base");
$this->check_db();
$_num_countSrc = 0;
foreach ($this->obj_api->opt[$_act_post]["list"] as $_key => $_value) {
if ($_value["min"] > 0) {
$_num_countSrc++;
}
}
$_arr_const = $this->mdl_opt->input_const($_act_post);
$_num_countInput = count(array_filter($_arr_const));
if ($_num_countInput < $_num_countSrc) {
$_arr_return = array("alert" => "x030204");
$this->obj_api->halt_re($_arr_return);
}
$_arr_return = $this->mdl_opt->mdl_const($_act_post);
$this->obj_api->halt_re($_arr_return);
}
以下为系统文件,请勿修改 -----------------------------------------------------------------*/ //不能非法包含或直接执行 if (!defined("IN_BAIGO")) { exit("Access Denied"); } include_once BG_PATH_FUNC . "include.func.php"; //管理员通用 fn_include(true, false, "Content-type: application/json"); include_once BG_PATH_CLASS . "mysqli.class.php"; //载入数据库类 include_once BG_PATH_CONTROL . "api/install.class.php"; //载入商家控制器 $api_install = new API_INSTALL(); //初始化商家 switch ($GLOBALS["act_post"]) { case "dbtable": $api_install->api_dbtable(); break; case "admin": $api_install->api_admin(); break; case "over": $api_install->api_over(); break; case "dbconfig": case "base": $api_install->api_submit(); break; }