当前位置: 首页>>代码示例>>PHP>>正文


PHP CI::auth方法代码示例

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


在下文中一共展示了CI::auth方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::lang()->load('categories');
     \CI::load()->model('Categories');
 }
开发者ID:buzkall,项目名称:GoCart3,代码行数:7,代码来源:AdminCategories.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model('Locations');
     \CI::lang()->load('locations');
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:7,代码来源:AdminLocations.php

示例3: logout

 public function logout()
 {
     \CI::auth()->logout();
     //when someone logs out, automatically redirect them to the login page.
     \CI::session()->set_flashdata('message', lang('message_logged_out'));
     redirect('admin/login');
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:7,代码来源:AdminLogin.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model(['Categories', 'Products', 'Pages']);
     \CI::lang()->load('sitemap');
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:7,代码来源:AdminSitemap.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model(['Messages', 'Pages', 'Locations']);
     \CI::lang()->load('settings');
     \CI::load()->helper('inflector');
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:8,代码来源:AdminSettings.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model('Coupons');
     \CI::load()->model('products');
     \CI::lang()->load('coupons');
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:8,代码来源:AdminCoupons.php

示例7: __construct

 function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model(['Orders', 'Search']);
     \CI::load()->helper(array('formatting'));
     \CI::lang()->load('reports');
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:8,代码来源:AdminReports.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model(['Products', 'Categories']);
     \CI::load()->helper('form');
     \CI::lang()->load('products');
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:8,代码来源:AdminMaterials.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     if (\CI::auth()->check_access('Orders')) {
         redirect(config_item('admin_folder') . '/orders');
     }
     \CI::load()->model('Orders');
     \CI::load()->model('Customers');
     \CI::load()->helper('date');
     \CI::lang()->load('dashboard');
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:11,代码来源:AdminDashboard.php

示例10: index

 public function index()
 {
     \CI::auth()->check_access('Admin', true);
     \CI::lang()->load('settings');
     \CI::load()->helper('inflector');
     global $shippingModules;
     $data['shipping_modules'] = $shippingModules;
     $data['enabled_modules'] = \CI::Settings()->get_settings('shipping_modules');
     $data['page_title'] = lang('common_shipping_modules');
     $this->view('shipping_index', $data);
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:11,代码来源:AdminShipping.php

示例11: index

 public function index()
 {
     \CI::auth()->check_access('Admin', true);
     \CI::lang()->load('settings');
     \CI::load()->helper('inflector');
     global $paymentModules;
     //Payment Information
     $payment_order = \CI::Settings()->get_settings('payment_order');
     $data['payment_modules'] = $paymentModules;
     $data['enabled_modules'] = \CI::Settings()->get_settings('payment_modules');
     $data['page_title'] = lang('common_payment_modules');
     $this->view('payment_index', $data);
 }
开发者ID:haouach,项目名称:GoCart3,代码行数:13,代码来源:AdminPayments.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::lang()->load('cod');
 }
开发者ID:thijmenvenus,项目名称:GoCart3,代码行数:6,代码来源:AdminCod.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::lang()->load('admin_common');
     \CI::auth()->isLoggedIn(uri_string());
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:6,代码来源:AdminController.php

示例14: site_url

                                <li><a href="<?php 
        echo site_url('admin/gift-cards');
        ?>
"><?php 
        echo lang('common_gift_cards');
        ?>
</a></li>
                            <?php 
    }
    ?>
                        </ul>
                    </li>

                    <?php 
    // Restrict access to Admins only
    if (CI::auth()->check_access('Admin')) {
        ?>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><?php 
        echo lang('common_catalog');
        ?>
 <span class="caret"></span></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="<?php 
        echo site_url('admin/categories');
        ?>
"><?php 
        echo lang('common_categories');
        ?>
</a></li>
                            <li><a href="<?php 
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:31,代码来源:header.php

示例15: edit_status

 public function edit_status()
 {
     \CI::auth()->isLoggedIn();
     $order['id'] = \CI::input()->post('id');
     $order['status'] = \CI::input()->post('status');
     \CI::Orders()->saveOrder($order);
     echo url_title($order['status']);
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:8,代码来源:AdminOrders.php


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