• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP User_Controller类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中User_Controller的典型用法代码示例。如果您正苦于以下问题:PHP User_Controller类的具体用法?PHP User_Controller怎么用?PHP User_Controller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了User_Controller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: on_dispatch_before

 /**
  * on dispatch before hook
  * 
  * @param Request $request
  * @param Response $response
  */
 public static function on_dispatch_before(Request $request, Response $response)
 {
     // 检查q是否在白名单中
     $loginIgnore = false;
     $q = $request->q();
     if (!empty($q)) {
         foreach (self::$loginWhiteList as $key) {
             if (SimPHP::qMatchPattern($key, $q)) {
                 $loginIgnore = true;
                 break;
             }
         }
     }
     // 检查登录状态
     if (!$loginIgnore && !Member::isLogined()) {
         import('user/*');
         $user_Controller = new User_Controller();
         $user_Controller->login($request, $response);
         exit;
     }
     //读取最新用户信息以客户端缓存
     global $user;
     if ($user->uid) {
         $uinfo = Member::getTinyInfoByUid($user->uid, FALSE);
         $user->openid = $uinfo['openid'];
         $user->unionid = $uinfo['unionid'];
         $user->subscribe = $uinfo['subscribe'];
         $user->username = $uinfo['username'];
         $user->nickname = $uinfo['nickname'];
         $user->sex = $uinfo['sex'];
         $user->logo = $uinfo['logo'];
         //$user->ec_user_id= $uinfo['ec_user_id'];
         /*
         if (!$request->is_hashreq()) { //不是hash request,则查看购物车是否有商品
           $cartNum = Goods::getUserCartNum($user->ec_user_id);
           $user->ec_cart_num = $cartNum;
         }
         */
     }
 }
开发者ID:GavinLai,项目名称:SimMatch,代码行数:46,代码来源:Common_Controller.php


示例4: FT_load

function FT_load()
{
    $config = (require_once PATH_APPLICATION . '/config/init.php');
    autoDeleteFile();
    $arrayUrl = parseUrl();
    if (!empty($_SESSION['name'])) {
        process();
    } else {
        if (!empty($_COOKIE['name'])) {
            $_SESSION['name'] = $_COOKIE['name'];
            $_SESSION['id'] = $_COOKIE['id'];
            $_SESSION['avatar'] = $_COOKIE['avatar'];
        } else {
            if ($arrayUrl[0] == 'user' && $arrayUrl[1] == 'login') {
                $controllerObject = new User_Controller();
                $controllerObject->login();
            } else {
                headerUrl('/user/login');
            }
        }
    }
}
开发者ID:anhnt36,项目名称:duan,代码行数:22,代码来源:FT_Common.php


示例5:

 function __construct()
 {
     parent::__construct();
     $this->load->library('applet');
     $this->section = 'flows';
     $this->admin_only($this->section);
 }
开发者ID:joshgomez,项目名称:OpenVBX,代码行数:7,代码来源:flows.php


示例6: __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


示例7:

 function __construct()
 {
     parent::__construct();
     $this->load->model('vbx_theme');
     $this->section = 'site settings';
     $this->admin_only($this->section);
 }
开发者ID:JeffaCubed,项目名称:OpenVBX,代码行数:7,代码来源:site.php


示例8: __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


示例9: 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


示例10:

 function __construct()
 {
     parent::__construct();
     $this->section = 'numbers';
     $this->template->write('title', 'Numbers');
     $this->load->model('vbx_incoming_numbers');
 }
开发者ID:tjoozey,项目名称:openvbx,代码行数:7,代码来源:numbers.php


示例11: __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


示例12: __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


示例13:

 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


示例14:

 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


示例15:

 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


示例16: 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


示例17: __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


示例18: __construct

 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');
 }
开发者ID:wiserweb,项目名称:OpenVBX,代码行数:9,代码来源:account.php


示例19:

 function __construct()
 {
     parent::__construct();
     //         if (!$this->secure->get_user_session()->id) {
     //            redirect(site_url('/users/login'));
     //        }
     //        $this->load->library('session');
     $this->load->library('pagination');
 }
开发者ID:mamtasingh87,项目名称:bytecode,代码行数:9,代码来源:redeem-14-nov-15.php


示例20: __construct

 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;
     }
 }
开发者ID:rumahkecil,项目名称:fusioninvoice-1,代码行数:9,代码来源:Guest_Controller.php



注:本文中的User_Controller类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP User_Model类代码示例发布时间:2022-05-23
下一篇:
PHP UserUtils类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap