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


PHP accessGrant函数代码示例

本文整理汇总了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');
 }
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:13,代码来源:translation.php

示例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');
 }
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:14,代码来源:orders.php

示例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');
 }
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:15,代码来源:provinces.php

示例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');
 }
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:16,代码来源:addons.php

示例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');
 }
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:16,代码来源:socialmediaprofile.php

示例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');
 }
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:16,代码来源:deliverycharges.php

示例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');
 }
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:17,代码来源:reports.php

示例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>
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:30,代码来源:header-6-1-15bkup.php

示例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 
}
?>
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:30,代码来源:sidebar.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>
开发者ID:bijuys,项目名称:MemorialFlowers,代码行数:31,代码来源:dashboard.php


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