当前位置: 首页>>代码示例>>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;未经允许,请勿转载。