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


PHP checkAdminAuth函数代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct(CLIENT, OWNER, BROKER, ADMIN);
     $this->load->helper('general');
     $this->load->helper('url');
     checkAdminAuth();
     $this->load->library('pagination');
     $this->load->helper('security');
     $this->load->model('UserModel');
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:10,代码来源:Application.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->helper('general');
     checkAdminAuth();
     $this->load->library('form_validation');
     $this->load->library('pagination');
     $this->form_validation->set_error_delimiters('<div class="red">', '</div>');
     $this->load->helper(array('form', 'url'));
     $this->load->helper('path');
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:11,代码来源:Webhooks.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     checkAdminAuth();
     // Your own constructor code
     $this->load->library('form_validation');
     $this->load->library('pagination');
     $this->form_validation->set_error_delimiters('<div class="red">', '</div>');
     $this->load->helper(array('form', 'url'));
     $this->load->helper('path');
     $this->allowed = $this->Auth_master_model->getAuth();
 }
开发者ID:manis6062,项目名称:sagarmathaonline,代码行数:12,代码来源:home.php

示例4: __construct

 public function __construct()
 {
     parent::__construct(ADMIN, BROKER);
     $this->load->helper('general');
     $this->load->helper('url');
     checkAdminAuth();
     $this->load->library('pagination');
     $this->load->model('AuthModel');
     $this->load->helper('security');
     $this->load->model('ProspectModel');
     $this->load->helper(array('form', 'url', 'captcha'));
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:12,代码来源:Prospect.php

示例5: __construct

 public function __construct()
 {
     parent::__construct(CLIENT, BROKER);
     $this->load->library('form_validation');
     $this->load->library('pagination');
     $this->load->helper(array('form', 'url'));
     $this->load->helper('path');
     $this->load->helper('general');
     $this->load->model('CartModel');
     checkAdminAuth();
     $this->load->helper('security');
     $this->load->library('cart');
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:13,代码来源:Cart.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->helper('general');
     checkAdminAuth();
     $this->load->library('form_validation');
     $this->form_validation->set_error_delimiters('<div class="red">', '</div>');
     $this->load->helper(array('form', 'url'));
     $this->load->helper('path');
     $this->load->model('AuthModel');
     $this->load->model('EmailerModel');
     $this->load->model('EmailModel');
     $this->load->model('AffiliateModel');
     $this->allowed = $this->AuthModel->getRoleAuth();
     $this->load->model('RecurringModel');
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:16,代码来源:Affiliate.php

示例7: __construct

 public function __construct()
 {
     parent::__construct(CLIENT, BROKER);
     $this->load->helper('general');
     checkAdminAuth();
     $this->load->library('form_validation');
     $this->load->library('pagination');
     $this->load->library('cart');
     $this->form_validation->set_error_delimiters('<div class="red">', '</div>');
     $this->load->helper(array('form', 'url'));
     $this->load->helper('path');
     $this->load->model('PaymentModel');
     $this->load->model('MembershipModel');
     $this->load->model('SettingsModel');
     $this->load->model('CampaignModel');
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:16,代码来源:Payment.php

示例8: __construct

 public function __construct()
 {
     parent::__construct(CLIENT, BROKER, OWNER, ADMIN);
     $this->load->helper('general');
     $this->load->helper('url');
     $this->load->library('parser');
     checkAdminAuth();
     $this->load->library('form_validation');
     $this->load->library('pagination');
     $this->form_validation->set_error_delimiters('<div class="red">', '</div>');
     $this->load->model('AuthModel');
     $this->load->helper('security');
     $this->load->model('RoleModel');
     $this->load->model('EmailModel');
     $this->load->helper(array('form', 'url', 'captcha', 'text'));
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:16,代码来源:Mail.php

示例9: __construct

 public function __construct()
 {
     parent::__construct(CLIENT, OWNER, BROKER, ADMIN, SUPER_ADMIN);
     $this->load->helper('general');
     checkAdminAuth();
     $this->load->library('form_validation');
     $this->load->library('pagination');
     $this->load->helper(array('form', 'url'));
     $this->load->helper('path');
     $this->load->model('AuthModel');
     $this->load->model('AffiliateModel');
     $this->load->model('LineOwnerModel');
     $this->load->model('LineModel');
     $this->load->model('RoleModel');
     $this->load->model('EmailModel');
     $this->load->model('TaskModel');
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:17,代码来源:Home.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     // Your own constructor code
     $this->load->library('form_validation');
     $this->load->library('pagination');
     $this->form_validation->set_error_delimiters('<div class="red">', '</div>');
     $this->load->helper(array('form', 'url'));
     $this->load->helper('path');
     $this->load->helper('general');
     $this->load->helper('security');
     checkAdminAuth();
     $this->load->model('AuthModel');
     $this->load->model('CreditCardModel');
     $this->load->model('LineModel');
     //$this->load->model('user_auth_model');
     $this->allowed = $this->AuthModel->getAuth();
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:18,代码来源:Creditcard.php

示例11: __construct

 public function __construct()
 {
     parent::__construct(CLIENT, OWNER, BROKER, ADMIN);
     $this->load->helper('general');
     $this->load->helper('url');
     checkAdminAuth();
     $this->load->library('pagination');
     $this->load->model('AuthModel');
     $this->load->helper('security');
     $this->load->model('RoleModel');
     $this->load->model('MembershipModel');
     $this->load->model('CampaignModel');
     $this->load->model('CardTypeModel');
     $this->load->model('EmailModel');
     $this->load->model('ProspectModel');
     $this->load->model('UserModel');
     $this->load->model('LineModel');
     $this->load->model('CreditStatusModel');
     $this->load->helper(array('form', 'url', 'captcha'));
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:20,代码来源:FinancialTools.php

示例12: profileProcess

 function profileProcess($userId, $type = '')
 {
     $this->load->helper('general');
     $this->load->helper('url');
     checkAdminAuth();
     $this->load->library('pagination');
     $this->load->model('AuthModel');
     $this->load->helper('security');
     $this->load->model('RoleModel');
     $this->load->model('MembershipModel');
     $this->load->model('CampaignModel');
     $this->load->model('CardTypeModel');
     $this->load->model('EmailerModel');
     $this->load->model('EmailModel');
     $this->load->model('ProspectModel');
     $this->load->model('UserModel');
     $this->load->model('LineModel');
     $this->load->helper(array('form', 'url', 'captcha'));
     $this->allow(true, BROKER, ADMIN, OWNER);
     if ($type) {
         $data['protype'] = $type;
     }
     $this->session->set_flashdata('redirectToCurrent', current_url());
     $data['user'] = $this->UserModel->getUser($userId);
     $data['employ'] = $this->UserModel->getEmployement($userId);
     $data['application'] = $this->UserModel->getCreditApplication($userId);
     $data['roles'] = $this->getRoles();
     $data['clientMembership'] = $this->MembershipModel->getMembership($userId, CLIENT, SELECTXKEYS);
     $data['userMembership'] = $this->MembershipModel->getMembershipLevelById($userId);
     $data['ownerMembership'] = $this->MembershipModel->getMembership($userId, OWNER, SELECTXKEYS);
     $data['brokerMembership'] = $this->MembershipModel->getMembership($userId, BROKER, SELECTXKEYS);
     $data['clientMemberships'] = $this->MembershipModel->getMembershipTypes(CLIENT, SELECTX);
     $data['ownerMemberships'] = $this->MembershipModel->getMembershipTypes(OWNER, SELECTX);
     $data['brokerMemberships'] = $this->MembershipModel->getMembershipTypes(BROKER, SELECTX);
     $data['userCoupons'] = $this->CampaignModel->getUserCampaigns($userId, SELECTXKEYS);
     $data['coupons'] = $this->CampaignModel->getCampaigns(SELECTX);
     //        $coupons = $data['coupons'];
     $data['coupons_details'] = $this->CampaignModel->getCouponsDetails($userId);
     $data['brokers'] = $this->UserModel->getBrokersEditable();
     $data['questions'] = $this->UserModel->getQuestionsEditable();
     $data['state'] = $this->UserModel->getStatesEditable();
     $data['business'] = $this->UserModel->getBusiness($userId);
     $data['title'] = "Update User";
     $data['offset'] = $userId;
     $data['role'] = $this->roleName;
     $data['notes'] = $this->UserModel->getUserNotes($userId);
     $data['verified'] = $this->LineModel->getLineBalance($userId, true);
     $data['unverified'] = $this->LineModel->getLineBalance($userId, false);
     $data['userRoles'] = $this->RoleModel->getUserRolesByUserId($userId);
     $data = $this->addRolesToUser($userId, $data);
     $data['other_roles'] = $this->RoleModel->getRolesWithMembership($this->uri->segment(4));
     $data['admin_roles'] = $this->RoleModel->getAdminRoles($this->uri->segment(4));
     $data['roles'] = array_merge($data['other_roles'], $data['admin_roles']);
     $data['member_since'] = $this->UserModel->getUserCreatedDate($this->uri->segment(4));
     $brokerId = null;
     if ($this->roleName = "broker") {
         $brokerId = $this->uri->segment(4);
     }
     $data['total_clients'] = count($this->UserModel->getBrokerUsersWithRoles($brokerId, $role_name = 'client'));
     $data['total_owners'] = count($this->UserModel->getBrokerUsersWithRoles($brokerId, $role_name = 'owner'));
     $data['total_brokers'] = count($this->UserModel->getBrokerUsersWithRoles($brokerId, $role_name = 'broker'));
     $data['my_lines'] = count($this->LineModel->getSelfLines($this->uri->segment(4)));
     $data['to_lines'] = count($this->LineModel->getAllBrokerLines($this->uri->segment(4)));
     $data['active_lines'] = count($this->LineModel->getAllBrokerLines($this->uri->segment(4)));
     $data['credit'] = $this->UserModel->getCreditApplication($this->uri->segment(4));
     $data['about_employ'] = $this->UserModel->getSingleEmployement($userId);
     //        $data['employments'] = $this->load->view(ADMIN_PATH . 'employments', NULL, TRUE);
     $data['main_content'] = ADMIN_PATH . "profile_process";
     $this->load->view(ADMIN_PATH . 'inc/template', $data);
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:70,代码来源:CreditStatus.php

示例13: function

$app->delete('/result', function () use($session) {
    if (!checkAuth()) {
        return;
    }
    $status = $session->getUser()->resetTestResult();
    Helpers::sendJson(array('status' => $status));
});
$app->get('/groups', function () use($app) {
    if (!checkAdminAuth()) {
        return;
    }
    $app->etag('groups');
    $app->expires('+15 minutes');
    Helpers::sendJson(AdminHelpers::getGroups());
});
$app->get('/admin/results', function () use($app) {
    if (!checkAdminAuth()) {
        return;
    }
    $filters = $app->request()->get();
    $response = AdminHelpers::getResults($filters);
    Helpers::sendJson($response);
});
$app->get('/admin/result/:studentId', function ($studentId) {
    if (!checkAdminAuth()) {
        return;
    }
    $response = User::findByStudentId($studentId)->getTestResult();
    Helpers::sendJson($response);
});
$app->run();
开发者ID:berejant,项目名称:spkneu-mbti,代码行数:31,代码来源:index.php

示例14: index

 public function index()
 {
     checkAdminAuth();
     $this->getLineOwners($page = '');
 }
开发者ID:manis6062,项目名称:credituniversity,代码行数:5,代码来源:LineOwner.php


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