Ejemplo n.º 1
0
 /**
  * table_mime function.
  *
  * @access private
  * @return void
  */
 private function table_mime()
 {
     include_once BG_PATH_MODEL . "mime.class.php";
     //载入管理帐号模型
     $_mdl_mime = new MODEL_MIME();
     $_arr_mimeTable = $_mdl_mime->mdl_create_table();
     $this->tplData["db_alert"]["mime_table"] = array("alert" => $_arr_mimeTable["alert"], "status" => substr($_arr_mimeTable["alert"], 0, 1));
 }
Ejemplo n.º 2
0
 /**
  * table_mime function.
  *
  * @access private
  * @return void
  */
 private function table_mime()
 {
     include_once BG_PATH_MODEL . "mime.class.php";
     //载入管理帐号模型
     $_mdl_mime = new MODEL_MIME();
     $_arr_mimeRow = $_mdl_mime->mdl_create_table();
     if ($_arr_mimeRow["alert"] != "y080105") {
         $this->obj_ajax->halt_alert($_arr_mimeRow["alert"]);
     }
 }
Ejemplo n.º 3
0
 /**
  * table_mime function.
  *
  * @access private
  * @return void
  */
 private function table_mime()
 {
     include_once BG_PATH_MODEL . "mime.class.php";
     //载入管理帐号模型
     $_mdl_mime = new MODEL_MIME();
     $_arr_col = $_mdl_mime->mdl_column();
     $_arr_alert = array();
     if (in_array("mime_id", $_arr_col)) {
         $_arr_alert["mime_id"] = array("CHANGE", "smallint NOT NULL AUTO_INCREMENT COMMENT 'ID'", "mime_id");
     }
     if (in_array("mime_ext", $_arr_col)) {
         $_arr_alert["mime_ext"] = array("CHANGE", "char(4) NOT NULL COMMENT '扩展名'", "mime_ext");
     }
     if ($_arr_alert) {
         $_reselt = $this->obj_db->alert_table(BG_DB_TABLE . "mime", $_arr_alert);
         if (!$_reselt) {
             $this->obj_ajax->halt_alert("x080106");
         }
     }
 }