コード例 #1
0
ファイル: ajax.php プロジェクト: comdan66/zeusdesign
 public function __construct()
 {
     parent::__construct();
     if (!$this->input->is_ajax_request()) {
         return show_404();
     }
 }
コード例 #2
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('produtos_model');
     $this->load->model('produtos_fotos_model');
     $this->load->model('categorias_model');
 }
コード例 #3
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('produtos_model');
     $this->load->model('pessoas_model');
     $this->load->model('clientes_model');
     $this->load->model('pedidos_model');
     $this->load->model('pedidos_itens_model');
 }
コード例 #4
0
 function __construct()
 {
     parent::__construct();
     $this->template->set_js('php.min.js');
     $this->template->set_js('login.js');
     $this->template->set_breadcrumbs('Área Administrativa');
     $this->load->model('pessoas_model');
     $this->load->model('clientes_model');
     $this->load->helper('combos');
 }
コード例 #5
0
ファイル: cli.php プロジェクト: comdan66/zeusdesign
 public function __construct()
 {
     parent::__construct();
     // if (!(($psw = $this->uri->segment(3)) && (md5 ($psw) == '23a6a54bf45b8ea5551f958e4ed82990'))) {
     //   echo '密碼錯誤!';
     //   exit ();
     // }
     if (!$this->input->is_cli_request()) {
         echo 'Request 錯誤!';
         exit;
     }
 }
コード例 #6
0
ファイル: tag_articles.php プロジェクト: comdan66/zeusdesign
 public function __construct()
 {
     parent::__construct();
     if (!(($id = $this->uri->rsegments(3, 0)) && (is_numeric($id) ? $this->tag = ArticleTag::find_by_id($id) : ($this->tag = ArticleTag::find_by_name(trim(urldecode($id))))))) {
         return redirect_message(array('articles'), array('_flash_message' => '找不到該筆資料。'));
     }
     if (in_array($this->uri->rsegments(2, 0), array('edit', 'update', 'destroy', 'sort'))) {
         if (!(($id = $this->uri->rsegments(4, 0)) && ($this->article = Article::find_by_id($id)))) {
             return redirect_message(array('articles', $this->tag->id, 'articles'), array('_flash_message' => '找不到該筆資料。'));
         }
     }
     $this->add_js(resource_url('resource', 'javascript', 'jquery-timeago_v1.3.1', 'jquery.timeago.js'))->add_js(resource_url('resource', 'javascript', 'jquery-timeago_v1.3.1', 'locales', 'jquery.timeago.zh-TW.js'));
 }
コード例 #7
0
 function __construct()
 {
     parent::__construct();
 }
コード例 #8
0
 function __construct()
 {
     parent::__construct();
     $this->template->set_js('php.min.js');
     $this->template->set_js('administracao.js');
 }
コード例 #9
0
ファイル: articles.php プロジェクト: comdan66/zeusdesign
 public function __construct()
 {
     parent::__construct();
     $this->add_js(resource_url('resource', 'javascript', 'jquery-timeago_v1.3.1', 'jquery.timeago.js'))->add_js(resource_url('resource', 'javascript', 'jquery-timeago_v1.3.1', 'locales', 'jquery.timeago.zh-TW.js'))->add_param('_method', $this->get_class());
 }
コード例 #10
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('produtos_model');
     $this->load->model('blogs_model');
 }
コード例 #11
0
ファイル: works.php プロジェクト: comdan66/zeusdesign
 public function __construct()
 {
     parent::__construct();
     $this->add_param('_method', $this->get_class());
 }