示例#1
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('applet');
     $this->section = 'flows';
     $this->admin_only($this->section);
 }
示例#2
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('vbx_theme');
     $this->section = 'site settings';
     $this->admin_only($this->section);
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('vbx_device');
     $this->template->write('title', 'Devices');
     $this->section = 'devices';
 }
 function __construct()
 {
     // Check of user is ingelogd in class User_Controller (core/MY_Controller)
     // User wordt naar login page geredirect als hij niet is ingelogd
     // In __construct functie zodat het geldig is op elke functie van deze klasse
     parent::__construct();
 }
示例#5
0
 public function __construct()
 {
     parent::__construct();
     $this->template->write('title', 'Welcome');
     $this->section = 'welcome';
     $this->admin_only($this->section);
 }
示例#6
0
 function __construct()
 {
     parent::__construct();
     $this->section = 'numbers';
     $this->template->write('title', 'Numbers');
     $this->load->model('vbx_incoming_numbers');
 }
示例#7
0
 function __construct()
 {
     // This is to support SWFUpload. SWFUpload will scrape all cookies via Javascript
     // and send them as POST request params. This enables the file uploader to work
     // with a proper session.
     foreach ($_POST as $key => $value) {
         // Copy any key that looks like an Openvbx session over to $_COOKIE where it's expected
         if (preg_match("/^(\\d+\\-)?openvbx_session\$/", $key)) {
             // url-decode the session key, try to preserve "+" in email addresses
             $value = $_POST[$key];
             $preserve_plus = false;
             preg_match("|s:5:\"email\";s:[0-9]+:\"(.*?)\";|", $value, $matches);
             if (strpos($matches[1], '+') !== false) {
                 $plus_temp = '___plus___';
                 $preserve_plus = true;
                 $email = str_replace('+', $plus_temp, $matches[0]);
                 $value = str_replace($matches[0], $email, $value);
             }
             $value = urldecode($value);
             if ($preserve_plus) {
                 $value = str_replace($plus_temp, '+', $value);
             }
             $_COOKIE[$key] = $value;
         }
     }
     parent::__construct();
     $this->load->library('TwimlResponse');
     $this->load->model('vbx_audio_file');
     $this->say_params = array('voice' => $this->vbx_settings->get('voice', $this->tenant->id), 'language' => $this->vbx_settings->get('voice_language', $this->tenant->id));
 }
示例#8
0
 public function __construct()
 {
     parent::__construct();
     $this->_moduleName = 'main';
     $this->load->model('main_mdl');
     $this->load->model('RF_User_mdl');
 }
示例#9
0
 function __construct()
 {
     parent::__construct();
     $this->section = 'messages';
     $this->template->write('title', 'Messages');
     $this->load->helper('date');
     $this->load->model('vbx_user');
 }
示例#10
0
 public function __construct()
 {
     parent::__construct();
     $this->user = VBX_User::get($this->session->userdata('user_id'));
     if (!$this->user->is_admin) {
         throw new SiteCachesException('Action not allowed to non-administrators');
     }
 }
示例#11
0
 function __construct()
 {
     parent::__construct();
     $this->section = 'accounts';
     $this->admin_only('account settings');
     $this->template->write('title', 'Users');
     $this->load->model('vbx_device');
 }
示例#12
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('matur_artikel');
     $this->load->library('template_admin');
     $this->load->helper('url');
     $this->load->helper('form');
 }
示例#13
0
 public function __construct()
 {
     parent::__construct();
     $this->config->load('openvbx');
     $this->load->database();
     $this->load->model('vbx_device');
     $this->template->write('title', 'Account');
     $this->user_id = $this->session->userdata('user_id');
 }
 function __construct()
 {
     parent::__construct();
     if (!$this->secure->get_user_session()->id) {
         redirect(site_url('/users/login'));
     }
     $this->load->model('quote/states_model');
     $this->load->model('users/users_model');
 }
示例#15
0
 function __construct()
 {
     // Check of user is ingelogd in class User_Controller (core/MY_Controller)
     // User wordt naar login page geredirect als hij niet is ingelogd
     // In __construct functie zodat het geldig is op elke functie van deze klasse
     parent::__construct();
     $this->load->library('form_validation');
     $this->load->model('lists_model');
 }
示例#16
0
 function __construct()
 {
     parent::__construct();
     //         if (!$this->secure->get_user_session()->id) {
     //            redirect(site_url('/users/login'));
     //        }
     //        $this->load->library('session');
     $this->load->library('pagination');
 }
 public function __construct()
 {
     parent::__construct('user_type', 2);
     $this->load->model('users/mdl_user_clients');
     $user_clients = $this->mdl_user_clients->where('fi_user_clients.user_id', $this->session->userdata('user_id'))->get()->result();
     foreach ($user_clients as $user_client) {
         $this->user_clients[$user_client->client_id] = $user_client->client_id;
     }
 }
示例#18
0
 function __construct()
 {
     parent::__construct();
     $username = $this->session->userdata('username');
     $current_userType = $this->get_userType($username);
     if ($current_userType != $this->type_admin) {
         $this->redirect($current_userType);
     }
     $this->load->model("database");
 }
示例#19
0
 public function __construct()
 {
     parent::__construct();
     $this->section = 'upgrade';
     $this->admin_only($this->section);
     // no cache
     $ci =& get_instance();
     $ci->cache->flush();
     $ci->cache->enabled(false);
 }
示例#20
0
 function __construct()
 {
     parent::__construct();
     $this->folder = "user/";
     $this->module = $this->folder . "user_profile/";
     $this->http_ref = base_url() . $this->module;
     $this->load->model("user_profile_model", "model");
     $this->load->library("utils");
     $this->layout = "layout_pages/";
     $this->my_logged_data = $this->data['users']['user'];
     $this->admin_layout = "layout/main_layout";
 }
 public function __construct()
 {
     parent::__construct('user_type', 2);
     $this->load->model('users/mdl_user_clients');
     $user_clients = $this->mdl_user_clients->assigned_to($this->session->userdata('user_id'))->get()->result();
     if (!$user_clients) {
         die(lang('guest_account_denied'));
     }
     foreach ($user_clients as $user_client) {
         $this->user_clients[$user_client->client_id] = $user_client->client_id;
     }
 }
示例#22
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('Infra_model');
 }
示例#23
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('vbx_audio_file');
 }
示例#24
0
 function __construct()
 {
     parent::__construct();
     $this->load->model("login_model");
 }
示例#25
0
 function __construct()
 {
     parent::__construct();
     $this->section = 'messages';
     $this->template->write('title', 'Message');
 }
示例#26
0
 public function __construct()
 {
     parent::__construct();
 }
示例#27
0
 public function __construct()
 {
     parent::__construct();
     $this->section = 'upgrade';
     $this->admin_only($this->section);
 }
示例#28
0
 public function __construct()
 {
     parent::__construct('user_type', 1);
 }
示例#29
0
 public function __construct()
 {
     parent::__construct();
     $this->template->write('title', 'Voicemail');
     $this->section = 'voicemail';
 }
示例#30
0
 function __construct()
 {
     parent::__construct();
     $this->admin_only('dialogs');
     $this->template->set_template('dialog');
 }