コード例 #1
0
 public function Admin_links()
 {
     parent::__construct();
     $this->user->require_group("Administrators");
     $this->load->model('users');
     $this->load->model('links');
 }
コード例 #2
0
 function admin_install()
 {
     parent::__construct();
     if ($this->is_installed()) {
         redirect("/", 'location');
     }
 }
コード例 #3
0
 public function Admin_themes()
 {
     parent::__construct();
     $this->user->require_group("Administrators");
     $this->load->model('users');
     $this->load->model('modules_db');
 }
コード例 #4
0
ファイル: admin_files.php プロジェクト: hscale/builder-engine
 function Admin_files()
 {
     parent::__construct();
     if (!$this->user->is_member_of("Administrators")) {
         die;
     }
 }
コード例 #5
0
ファイル: admin_ajax.php プロジェクト: hscale/builder-engine
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  *         http://example.com/index.php/welcome
  *    - or -  
  *         http://example.com/index.php/welcome/index
  *    - or -
  * Since this controller is set as the default controller in 
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 public function Admin_ajax()
 {
     parent::__construct();
     $this->load->model('users');
     //$this->load->model('blocks');
     //$this->load->model('versions');
     $this->user =& $this->users->get_current_user();
 }
コード例 #6
0
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  *         http://example.com/index.php/welcome
  *    - or -
  *         http://example.com/index.php/welcome/index
  *    - or -
  * Since this controller is set as the default controller in
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 function __construct()
 {
     parent::__construct();
     $this->load->model('builderengine');
     if ($this->builderengine->get_option('user_dashboard_activ') != 'yes') {
         redirect("/", 'location');
     }
 }
コード例 #7
0
ファイル: User_blog.php プロジェクト: hyrmedia/builderengine
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  *         http://example.com/index.php/welcome
  *    - or -
  *         http://example.com/index.php/welcome/index
  *    - or -
  * Since this controller is set as the default controller in
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 function __construct()
 {
     parent::__construct();
     $this->user->is_verified();
     $this->load->model('builderengine');
     if ($this->builderengine->get_option('user_dashboard_activ') != 'yes') {
         redirect("/", 'location');
     }
     if ($this->builderengine->get_option('user_dashboard_blog') != 'yes') {
         redirect("user/main/dashboard", 'location');
     }
 }
コード例 #8
0
ファイル: admin_main.php プロジェクト: hscale/builder-engine
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  *         http://example.com/index.php/welcome
  *    - or -
  *         http://example.com/index.php/welcome/index
  *    - or -
  * Since this controller is set as the default controller in
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 public function Admin_main()
 {
     parent::__construct();
     if ($this->uri->segment(3) != 'login' && $this->uri->segment(3) != 'recover_password' && $this->uri->segment(3) != 'logout') {
         $this->user->require_group("Administrators");
     } else {
         if ($this->uri->segment(3) == 'login') {
             if ($this->user->is_logged_in()) {
                 redirect("/admin/main/dashboard", 'location');
             }
         }
     }
 }
コード例 #9
0
ファイル: User_main.php プロジェクト: hyrmedia/builderengine
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  *         http://example.com/index.php/welcome
  *    - or -
  *         http://example.com/index.php/welcome/index
  *    - or -
  * Since this controller is set as the default controller in
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 function __construct()
 {
     parent::__construct();
     $this->load->model('builderengine');
     if ($this->builderengine->get_option('user_dashboard_activ') != 'yes') {
         redirect("/", 'location');
     }
     if ($this->uri->segment(1) == 'login' && $this->uri->segment(2)) {
         $module_id = $this->uri->segment(2);
         $this->load->model('module');
         $module = $this->module->get();
         foreach ($module->all as $key => $value) {
             if ($value->id == $module_id) {
                 /* first method */
                 if (file_exists(FCPATH . 'modules/' . $value->folder . '/controllers/' . $value->folder . '.php') && method_exists($value->folder, 'login') && is_callable(array($value->folder, 'login'))) {
                     redirect(base_url($value->folder . '/login'), 'location');
                 }
                 /* second method */
                 // switch ($value->folder) {
                 //     case 'page':
                 //         break;
                 //     case 'blog':
                 //         break;
                 //     case 'builderpayment':
                 //         break;
                 //     default:
                 //        redirect(base_url($value->folder.'/login'), 'location');
                 // }
             }
         }
     }
     if ($this->uri->segment(1) == 'login') {
         if ($this->user->is_logged_in()) {
             redirect("/user/main/dashboard", 'location');
         } else {
             redirect("/user/main/userLogin", 'location');
         }
     }
 }
コード例 #10
0
 public function Admin_themes()
 {
     parent::__construct();
     $this->load->model('users');
     $this->load->model('modules_db');
 }
コード例 #11
0
ファイル: seo.php プロジェクト: hscale/builder-engine
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  * 		http://example.com/index.php/welcome
  *	- or -
  * 		http://example.com/index.php/welcome/index
  *	- or -
  * Since this controller is set as the default controller in
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 public function seo()
 {
     parent::__construct();
 }
コード例 #12
0
 public function __construct()
 {
     parent::__construct();
     $this->user->require_group("Administrators");
 }
コード例 #13
0
ファイル: admin.php プロジェクト: hscale/builder-engine
 function Admin()
 {
     parent::__construct();
     $this->show->set_default_breadcrumb(0, "Pages", "/admin/module/page/show_pages");
 }
コード例 #14
0
ファイル: admin.php プロジェクト: hscale/builder-engine
 function Admin()
 {
     parent::__construct();
     $this->show->set_default_breadcrumb(0, "Blog", "/admin/module/blog/show_posts");
 }
コード例 #15
0
ファイル: admin_links.php プロジェクト: hscale/builder-engine
 public function Admin_links()
 {
     parent::__construct();
     $this->load->model('users');
     $this->load->model('links');
 }
コード例 #16
0
ファイル: module_blog.php プロジェクト: hscale/builder-engine
 public function module_blog()
 {
     parent::__construct();
 }
コード例 #17
0
ファイル: Ajax.php プロジェクト: hyrmedia/builderengine
 public function ajax()
 {
     parent::__construct();
     $this->load->model('communication');
 }