Exemplo n.º 1
0
 private function table_log()
 {
     include_once BG_PATH_MODEL . "log.class.php";
     //载入管理帐号模型
     $_mdl_log = new MODEL_LOG();
     $_arr_logTable = $_mdl_log->mdl_create_table();
     if ($_arr_logTable["alert"] != "y060105") {
         $this->obj_api->halt_re($_arr_logTable);
     }
 }
Exemplo n.º 2
0
 private function table_log()
 {
     include_once BG_PATH_MODEL . "log.class.php";
     //载入管理帐号模型
     $_mdl_log = new MODEL_LOG();
     $_arr_logTable = $_mdl_log->mdl_create_table();
     $this->tplData["db_alert"]["log_table"] = array("alert" => $_arr_logTable["alert"], "status" => substr($_arr_logTable["alert"], 0, 1));
 }
Exemplo n.º 3
0
 private function table_log()
 {
     include_once BG_PATH_MODEL . "log.class.php";
     //载入管理帐号模型
     $_mdl_log = new MODEL_LOG();
     $_arr_col = $_mdl_log->mdl_column();
     $_arr_alert = array();
     if (in_array("log_operator_id", $_arr_col)) {
         $_arr_alert["log_operator_id"] = array("CHANGE", "smallint NOT NULL COMMENT '操作者 ID'", "log_operator_id");
     }
     if (in_array("log_target_type", $_arr_col)) {
         $_arr_alert["log_target_type"] = array("CHANGE", "enum('admin','app','user','log','opt') NOT NULL COMMENT '目标类型'", "log_target_type");
     }
     if (in_array("log_type", $_arr_col)) {
         $_arr_alert["log_type"] = array("CHANGE", "enum('admin','app','system') NOT NULL COMMENT '目标类型'", "log_type");
     }
     if (in_array("log_status", $_arr_col)) {
         $_arr_alert["log_status"] = array("CHANGE", "enum('wait','read')", "log_status");
     }
     if ($_arr_alert) {
         $_reselt = $this->obj_db->alert_table(BG_DB_TABLE . "log", $_arr_alert);
         if (!$_reselt) {
             $this->obj_ajax->halt_alert("x060106");
         }
     }
 }
Exemplo n.º 4
0
 private function table_log()
 {
     include_once BG_PATH_MODEL . "log.class.php";
     //载入管理帐号模型
     $_mdl_log = new MODEL_LOG();
     $_mdl_log->logStatus = $this->obj_tpl->status["log"];
     $_mdl_log->logTypes = $this->obj_tpl->type["log"];
     $_mdl_log->logTargets = $this->obj_tpl->type["logTarget"];
     $_arr_logTable = $_mdl_log->mdl_alert_table();
     $this->tplData["db_alert"]["log_table"] = array("alert" => $_arr_logTable["alert"], "status" => substr($_arr_logTable["alert"], 0, 1));
 }