示例#1
0
 function __construct()
 {
     parent::__construct();
     $this->lang->load('departments');
     $this->lang->load('configure');
     $this->load->model(array('departments_model', 'ldap_groups_model'));
     $this->load->helper('department_helper');
     $this->layout->add_breadcrumb(lang('configure_departments'), 'departments');
     $this->data['subnav'] = array(array('uri' => 'departments', 'text' => lang('configure_departments'), 'test' => $this->auth->check('departments.view')), array('uri' => 'departments/set', 'text' => lang('departments_add_new'), 'test' => $this->auth->check('departments.add')));
 }
示例#2
0
 function __construct()
 {
     parent::__construct();
     $this->lang->load('configure');
     $this->lang->load('authentication');
     $this->lang->load('roles');
     $this->lang->load('permissions');
     $this->load->model(array('departments_model', 'groups_model', 'users_model', 'permissions_model', 'roles_model'));
     $this->load->helper('role');
     $this->layout->add_breadcrumb(lang('roles_roles'), 'roles');
     $this->data['subnav'] = array(array('uri' => 'roles', 'text' => lang('roles_roles'), 'test' => $this->auth->check('permissions.view')), array('uri' => 'roles/set', 'text' => lang('roles_add_new'), 'test' => $this->auth->check('permissions.view')), array('uri' => 'roles/permissions', 'text' => lang('roles_permissions'), 'test' => $this->auth->check('permissions.view')));
 }
示例#3
0
 function __construct()
 {
     parent::__construct();
     $this->lang->load('configure');
     $this->lang->load('users');
     $this->load->model(array('users_model', 'groups_model', 'departments_model', 'quota_model'));
     $this->load->helper('user_helper');
     $this->layout->add_breadcrumb(lang('configure_users'), 'users');
     $this->data['subnav'] = array(array('uri' => 'users', 'text' => lang('configure_users'), 'test' => $this->auth->check('users.view')), array('uri' => 'users/set', 'text' => lang('users_add_new'), 'test' => $this->auth->check('users.add')), array('uri' => 'users/import', 'text' => lang('users_bulk_import'), 'test' => $this->auth->check('users.import')));
     // Valid authentication methods for users
     $this->data['auth_methods'] = array('local' => lang('users_auth_method_local'), 'ldap' => lang('users_auth_method_ldap'));
 }
示例#4
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('security_model');
     $this->load->model('rooms_model');
     $this->load->model('departments_model');
     $this->load->helper('text');
     $this->load->helper('file');
     $this->tpl = $this->config->item('template');
     $this->output->enable_profiler($this->config->item('profiler'));
     $this->types = $this->rooms_model->types;
 }
 function __construct()
 {
     parent::__construct();
     $this->lang->load('configure');
     $this->lang->load('authentication');
     $this->load->model(array('users_model', 'groups_model'));
     $this->layout->add_breadcrumb(lang('configure_authentication'), 'authentication');
     // This data is used in most sub-pages
     $this->data['settings'] = $this->options_model->get_all(TRUE);
     $this->data['users'] = $this->users_model->dropdown('u_id', 'u_username');
     $this->data['groups'] = $this->groups_model->dropdown('g_id', 'g_name');
     $this->data['subnav'] = array(array('uri' => 'authentication', 'text' => 'Global', 'test' => TRUE), array('uri' => 'authentication/ldap', 'text' => lang('authentication_ldap'), 'test' => option('auth_ldap_enable')), array('uri' => 'authentication/ldap_groups', 'text' => lang('authentication_ldap_groups'), 'test' => option('auth_ldap_enable')), array('uri' => 'authentication/preauth', 'text' => lang('authentication_preauth'), 'test' => option('auth_preauth_enable')));
 }
示例#6
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('years_model');
 }
示例#7
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('security_model');
     $this->load->model('departments_model');
 }