本文整理汇总了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();
}
示例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');
}
示例3:
function __construct()
{
parent::__construct();
$this->load->library('applet');
$this->section = 'flows';
$this->admin_only($this->section);
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->template->write('title', 'Welcome');
$this->section = 'welcome';
$this->admin_only($this->section);
}
示例5:
function __construct()
{
parent::__construct();
$this->load->model('vbx_theme');
$this->section = 'site settings';
$this->admin_only($this->section);
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->load->model('vbx_device');
$this->template->write('title', 'Devices');
$this->section = 'devices';
}
示例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));
}
示例8:
function __construct()
{
parent::__construct();
$this->section = 'numbers';
$this->template->write('title', 'Numbers');
$this->load->model('vbx_incoming_numbers');
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->_moduleName = 'main';
$this->load->model('main_mdl');
$this->load->model('RF_User_mdl');
}
示例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');
}
}
示例11:
function __construct()
{
parent::__construct();
$this->section = 'messages';
$this->template->write('title', 'Messages');
$this->load->helper('date');
$this->load->model('vbx_user');
}
示例12:
function __construct()
{
parent::__construct();
$this->section = 'accounts';
$this->admin_only('account settings');
$this->template->write('title', 'Users');
$this->load->model('vbx_device');
}
示例13:
function __construct()
{
parent::__construct();
$this->load->model('matur_artikel');
$this->load->library('template_admin');
$this->load->helper('url');
$this->load->helper('form');
}
示例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');
}
示例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());
}