Beispiel #1
0
 /**
  * WebConfigAct::actModify()
  * 返回某个网站后台配置
  * @param int $id 查询ID
  * @return array 
  */
 public function actModify()
 {
     $data = array();
     $id = isset($_GET['id']) ? intval(trim($_GET['id'])) : 0;
     if (empty($id)) {
         show_message($this->smarty, "ID不能为空?", "");
         exit;
     }
     $data['id'] = $id;
     $data['res'] = WebConfigModel::modModify($id);
     self::$errCode = WebConfigModel::$errCode;
     self::$errMsg = WebConfigModel::$errMsg;
     if (self::$errCode != 0) {
         show_message($this->smarty, self::$errMsg, "");
         exit;
     }
     return $data;
 }