Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $this->userrepository = new UserRepository();
     $this->generaluserrepository = new GeneralUserRepository();
     $this->adminrepository = new AdminRepository();
 }
Esempio n. 2
0
 function __construct()
 {
     parent::__construct();
     if (!$this->User_model->has_relation_access(element('loginname', $this->session->userdata('user')))) {
         redirect(site_url('proj'), 'refresh');
     }
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct();
     $this->userrepository = new UserRepository();
     $this->adminrepository = new AdminRepository();
     $this->organizationrepository = new OrganizationRepository();
 }
Esempio n. 4
0
 public function __construct($request, $response)
 {
     ignore_user_abort(TRUE);
     parent::__construct($request, $response);
     self::$db_prefix = Database::instance('default')->table_prefix();
     self::$db_charset = Core::config('database.default.charset');
 }
 function __construct()
 {
     parent::__construct();
     if ($this->ion_auth->is_admin() === FALSE) {
         redirect('/');
     }
 }
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct();
     $this->fundrepository = new FundRepository();
     $this->payrepository = new PayRepository();
     $this->adminrepository = new AdminRepository();
 }
Esempio n. 7
0
 public function __construct()
 {
     parent::__construct();
     $this->userrepository = new UserRepository();
     $this->welfarerepository = new WelfareRepository();
     $this->adminrepository = new AdminRepository();
 }
Esempio n. 8
0
 function __construct()
 {
     parent::__construct();
     if (!$this->ion_auth->in_group('admin')) {
         $this->postal->add('You are not allowed to visit the Users page', 'error');
         redirect('dashboard');
     }
 }
Esempio n. 9
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('opportunity_source_model');
     if (!$this->ion_auth->in_group('admin')) {
         $this->postal->add('You are not allowed to visit the opportunity sources page', 'error');
         redirect('dashboard');
     }
 }
Esempio n. 10
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('contact_type_model');
     if (!$this->ion_auth->in_group('admin')) {
         $this->postal->add('You are not allowed to visit the contact types page', 'error');
         redirect('dashboard');
     }
 }
Esempio n. 11
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('parser');
     $this->parser->set_theme('default');
     $this->data = array();
     $this->data['title'] = '';
     $this->data['keyword'] = '';
     $this->data['description'] = '';
 }
Esempio n. 12
0
File: auth.php Progetto: revlis7/pp
 function __construct()
 {
     parent::__construct(false);
     if ($this->login->is_login() === true) {
         $redurl = $this->input->get('redurl', true);
         if ($redurl != '') {
             redirect($redurl, 'refresh');
         }
         redirect(site_url('tsmain'), 'refresh');
     }
 }
Esempio n. 13
0
 function __construct()
 {
     parent::__construct();
     if (!$this->ion_auth->in_group('admin')) {
         $this->postal->add('You are not allowed to visit the MASTER page', 'error');
         redirect('admin');
     }
     $this->load->model('website_model');
     $this->load->library('form_validation');
     $this->load->helper('form');
 }
 public function __construct()
 {
     // Parent __construct
     parent::__construct();
     // Load Settings
     $this->settings_model->load('blog');
     // Load Model
     $this->load->model('backend/bloger_model');
     // Load Helper
     $this->load->helper('text');
     $this->load->helper('pagination');
 }
Esempio n. 15
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('opportunity_model');
     $this->load->model('conversation_model');
     $this->load->model('contact_model');
     /*
           if(!$this->ion_auth->in_group('admin'))
           {
               $this->postal->add('You are not allowed to visit the Users page','error');
               redirect('dashboard');
           }*/
 }
Esempio n. 16
0
 /**
  *
  * Contruct that checks you are loged in before nothing else happens!
  */
 function __construct(Request $request, Response $response)
 {
     parent::__construct($request, $response);
     //we check if that action can be done, if not redirected to the index
     if (!$this->allowed_crud_action()) {
         $url = Route::get('oc-panel')->uri(array('controller' => $this->request->controller(), 'action' => 'index'));
         $this->request->redirect($url);
     }
     //url used in the breadcrumb
     $url_bread = Route::url('oc-panel', array('controller' => $this->request->controller()));
     Breadcrumbs::add(Breadcrumb::factory()->set_title(ucfirst(__($this->_orm_model)))->set_url($url_bread));
     //action
     Breadcrumbs::add(Breadcrumb::factory()->set_title(ucfirst(__($this->request->action()))));
 }
Esempio n. 17
0
 /**
  *
  * Contruct that checks you are loged in before nothing else happens!
  */
 function __construct(Request $request, Response $response)
 {
     parent::__construct($request, $response);
     //we check if that action can be done, if not redirected to the index
     if (!$this->allowed_crud_action()) {
         $url = Route::get('oc-panel')->uri(array('controller' => $this->request->controller(), 'action' => 'index'));
         $this->redirect($url);
     }
     $element = ORM::Factory($this->_orm_model);
     //in case we did not specify what to show
     if (empty($this->_index_fields)) {
         $this->_index_fields = array_keys($element->list_columns());
     }
     //we need the PK always to work on the grid...
     if (!in_array($element->primary_key(), $this->_index_fields)) {
         array_unshift($this->_index_fields, $element->primary_key());
     }
     //url used in the breadcrumb
     $url_bread = Route::url('oc-panel', array('controller' => $this->request->controller()));
     Breadcrumbs::add(Breadcrumb::factory()->set_title(Text::ucfirst(__($this->_orm_model)))->set_url($url_bread));
     //action
     Breadcrumbs::add(Breadcrumb::factory()->set_title(Text::ucfirst(__($this->request->action()))));
 }
Esempio n. 18
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('devices_model');
 }
Esempio n. 19
0
 public function __construct($request, $response)
 {
     parent::__construct($request, $response);
     Breadcrumbs::add(Breadcrumb::factory()->set_title(__('Tools')));
 }
Esempio n. 20
0
 public function __construct($request, $response)
 {
     parent::__construct($request, $response);
     Breadcrumbs::add(Breadcrumb::factory()->set_title(__('Settings'))->set_url(Route::url('oc-panel', array('controller' => 'settings', 'action' => 'general'))));
 }
Esempio n. 21
0
 function __construct()
 {
     parent::__construct();
     $this->load->model(array('users/m_groups'));
 }
Esempio n. 22
0
 function __construct()
 {
     parent::__construct();
     $this->load->library(array('ion_auth', 'empleado'));
 }
Esempio n. 23
0
 function __construct()
 {
     parent::__construct();
     $this->load->model(array('m_function'));
 }
Esempio n. 24
0
 function __construct()
 {
     $this->groups = array('admin');
     //it means that only the users in members group have access to that particular controller
     parent::__construct();
 }
Esempio n. 25
0
 function __construct()
 {
     parent::__construct(false);
 }
Esempio n. 26
0
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
 }
Esempio n. 27
0
 function __construct()
 {
     parent::__construct();
     //users_model,载入之后,可用使用$this->users_model来操作
     $this->load->model('users_model');
 }
Esempio n. 28
0
 function __construct()
 {
     parent::__construct();
     $this->load->model(array('users/m_controller'));
 }
Esempio n. 29
0
 public function __construct($request, $response)
 {
     parent::__construct($request, $response);
     Breadcrumbs::add(Breadcrumb::factory()->set_title(__('Custom Fields'))->set_url(Route::url('oc-panel', array('controller' => 'fields'))));
 }
Esempio n. 30
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('users_devices_data_model');
     $this->load->model('users_devices_realtimedata_model');
 }