本文整理汇总了PHP中accessGrant函数的典型用法代码示例。如果您正苦于以下问题:PHP accessGrant函数的具体用法?PHP accessGrant怎么用?PHP accessGrant使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了accessGrant函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Translation
function Translation()
{
parent::__construct();
if (!admin_authorized()) {
redirect('/siteadmin/login');
exit;
}
if (!accessGrant('translation')) {
redirect('/siteadmin');
exit;
}
$this->load->helper('file');
}
示例2: 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');
}
示例3: 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');
}
示例4: 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');
}
示例5: 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');
}
示例6: 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');
}
示例7: 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');
}
示例8:
</ul>
</li>
<?php
}
?>
<?php
if (accessGrant('reports')) {
?>
<li><a href="<?php
echo FCBASE;
?>
/reports/view/sales">Reports</a>
<ul>
<!--
<li><a href="<?php
echo FCBASE;
?>
/reports/wizard">Report Wizard</a></li>
<li><a href="<?php
echo FCBASE;
?>
/reports/wizard">New Reports</a>
示例9:
}
?>
<?php
if (accessGrant('categories')) {
?>
<li><a href="<?php
echo FCBASE;
?>
/categories/select">Main Categories</a></li>
<?php
}
?>
<?php
if (accessGrant('slider')) {
?>
<li><a href="<?php
echo FCBASE;
?>
/slider">Product Slider</a></li>
<?php
}
?>
</ul>
</li>
<?php
}
?>
示例10:
?>
<a href="<?php
echo FCBASE;
?>
/countries"><img src="/xadmin/images/target.png" width="64" height="64" border="0" />Locations</a>
<?php
} else {
?>
<a href="#"><img src="/xadmin/images/target_dim.png" width="64" height="64" border="0" /><strike>Locations</strike></a>
<?php
}
?>
</td>
<td>
<?php
if (accessGrant('emails')) {
?>
<a href="<?php
echo FCBASE;
?>
/emails"><img src="/xadmin/images/mail.png" width="64" height="64" border="0" />Mail Setup</a>
<?php
} else {
?>
<a href="#"><img src="/xadmin/images/mail_dim.png" width="64" height="64" border="0" /><strike>Mail Setup</strike></a>
<?php
}
?>
</td>
<td>