當前位置: 首頁>>代碼示例>>PHP>>正文


PHP User_Controller類代碼示例

本文整理匯總了PHP中User_Controller的典型用法代碼示例。如果您正苦於以下問題:PHP User_Controller類的具體用法?PHP User_Controller怎麽用?PHP User_Controller使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了User_Controller類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 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();
 }
開發者ID:nielsdierickx,項目名稱:smartscan-website,代碼行數:7,代碼來源:profile.php

示例2: __construct

 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');
 }
開發者ID:nielsdierickx,項目名稱:smartscan-website,代碼行數:9,代碼來源:lists.php

示例3:

 function __construct()
 {
     parent::__construct();
     $this->load->library('applet');
     $this->section = 'flows';
     $this->admin_only($this->section);
 }
開發者ID:joshgomez,項目名稱:OpenVBX,代碼行數:7,代碼來源:flows.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->template->write('title', 'Welcome');
     $this->section = 'welcome';
     $this->admin_only($this->section);
 }
開發者ID:hharrysidhu,項目名稱:OpenVBX,代碼行數:7,代碼來源:welcome.php

示例5:

 function __construct()
 {
     parent::__construct();
     $this->load->model('vbx_theme');
     $this->section = 'site settings';
     $this->admin_only($this->section);
 }
開發者ID:JeffaCubed,項目名稱:OpenVBX,代碼行數:7,代碼來源:site.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('vbx_device');
     $this->template->write('title', 'Devices');
     $this->section = 'devices';
 }
開發者ID:rhyselsmore,項目名稱:OpenVBX,代碼行數:7,代碼來源:devices.php

示例7: foreach

 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));
 }
開發者ID:Gameonn,項目名稱:OpenVBX,代碼行數:30,代碼來源:audiofiles.php

示例8:

 function __construct()
 {
     parent::__construct();
     $this->section = 'numbers';
     $this->template->write('title', 'Numbers');
     $this->load->model('vbx_incoming_numbers');
 }
開發者ID:tjoozey,項目名稱:openvbx,代碼行數:7,代碼來源:numbers.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_moduleName = 'main';
     $this->load->model('main_mdl');
     $this->load->model('RF_User_mdl');
 }
開發者ID:RomanWebDev,項目名稱:RFOnlineOpenOffice,代碼行數:7,代碼來源:Main.php

示例10: __construct

 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');
     }
 }
開發者ID:hharrysidhu,項目名稱:OpenVBX,代碼行數:8,代碼來源:caches.php

示例11:

 function __construct()
 {
     parent::__construct();
     $this->section = 'messages';
     $this->template->write('title', 'Messages');
     $this->load->helper('date');
     $this->load->model('vbx_user');
 }
開發者ID:ryanlarrabure,項目名稱:OpenVBX,代碼行數:8,代碼來源:inbox.php

示例12:

 function __construct()
 {
     parent::__construct();
     $this->section = 'accounts';
     $this->admin_only('account settings');
     $this->template->write('title', 'Users');
     $this->load->model('vbx_device');
 }
開發者ID:ryanlarrabure,項目名稱:OpenVBX,代碼行數:8,代碼來源:accounts.php

示例13:

 function __construct()
 {
     parent::__construct();
     $this->load->model('matur_artikel');
     $this->load->library('template_admin');
     $this->load->helper('url');
     $this->load->helper('form');
 }
開發者ID:akemsf,項目名稱:RachmanHakim,代碼行數:8,代碼來源:catur_artikel.php

示例14: redirect

 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');
 }
開發者ID:mamtasingh87,項目名稱:bytecode,代碼行數:9,代碼來源:account__25-nov-2015.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->model->load('User');
     $this->user = new User_Model();
     self::$process = '/user/show';
     self::$object = $this->user;
     $this->validate = new Validate_Library($this->user->getRules());
 }
開發者ID:anhnt36,項目名稱:duan,代碼行數:9,代碼來源:User_Controller.php


注:本文中的User_Controller類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。