本文整理汇总了PHP中admin_authorized函数的典型用法代码示例。如果您正苦于以下问题:PHP admin_authorized函数的具体用法?PHP admin_authorized怎么用?PHP admin_authorized使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了admin_authorized函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Dashboard
function Dashboard()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
}
示例2: Welcome
function Welcome()
{
parent::__construct();
$this->load->library('session');
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
}
示例3: Picupload
function Picupload()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
$this->load->helper('form');
}
示例4: Companies
function Companies()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
$this->load->helper('url');
$this->load->helper('form');
$this->load->library('form_validation');
$this->load->model('Company_model');
}
示例5: Translation
function Translation()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
if (!accessGrant('translation')) {
redirect('/siteadmin');
exit;
}
$this->load->helper('file');
}
示例6: Orders
function Orders()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
if (!accessGrant('orders')) {
redirect('/siteadmin');
exit;
}
$this->load->helper('url');
$this->load->model('Order_model');
}
示例7: Provinces
function Provinces()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
if (!accessGrant('provinces')) {
redirect('/siteadmin');
exit;
}
$this->load->helper('url');
$this->load->model('Province_model');
$this->load->model('Country_model');
}
示例8: Addons
function Addons()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
if (!accessGrant('addons')) {
redirect('/siteadmin');
exit;
}
$this->load->model('Addon_model');
$this->load->helper('url');
$this->load->helper('form');
$this->load->library('form_validation');
}
示例9: Socialmediaprofile
function Socialmediaprofile()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
if (!accessGrant('discounts')) {
redirect('/siteadmin');
exit;
}
$this->load->helper('url');
$this->load->model('Discounts_model');
$this->load->helper('form');
$this->load->library('form_validation');
}
示例10: Deliverycharges
function Deliverycharges()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
if (!accessGrant('deliverycharges')) {
redirect('/siteadmin');
exit;
}
$this->load->helper('url');
//$this->load->model('Deliverycharge_model');
$this->load->helper('form');
$this->load->library('form_validation');
}
示例11: Reports
function Reports()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
if (!accessGrant('reports')) {
redirect('/siteadmin');
exit;
}
$this->load->helper('url');
$this->load->model('Report_model');
$this->load->model('Customer_model');
$this->load->model('Affiliate_model');
$this->load->model('Company_model');
}