コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     if (!in_array($this->action, array('ajaxswfupload', 'ueditor_upload')) && (!$this->session->is_set('user_id') && !get_cookie('member_id'))) {
         $this->attMsg(lang('att-13'));
     }
     $this->dir = 'uploadfiles/';
 }
コード例 #2
0
ファイル: FormController.php プロジェクト: rainbow88/hummel
 public function __construct()
 {
     parent::__construct();
     $model = $this->get_model('form');
     $modelid = (int) $this->get('modelid');
     if (empty($modelid)) {
         $this->msg(lang('for-0'));
     }
     $this->model = $model[$modelid];
     if (empty($this->model)) {
         $this->msg(lang('for-1', array('1' => $modelid)));
     }
     $this->form = $this->model($this->model['tablename']);
     $this->modelid = $modelid;
     $this->view->assign(array('table' => $this->model['tablename'], 'modelid' => $this->modelid, 'form_name' => $this->model['modelname']));
 }
コード例 #3
0
ファイル: ApiController.php プロジェクト: rainbow88/hummel
 public function __construct()
 {
     parent::__construct();
 }
コード例 #4
0
ファイル: TagController.php プロジェクト: rainbow88/hummel
 public function __construct()
 {
     parent::__construct();
     $this->tag = $this->model('tag');
 }