Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
 
CPG-Nuke source documentation


Files - Classes
  includes/cmsinit.inc
[x] includes
[x] properties
[x] functions
can_admin

boolean can_admin(string $module)

Returns if the current admin that is viewing the page has the rights to administer the content.
It's only useful if the specified module has a 'radmin' field in admins table.

PHP:
if (can_admin('downloads')) {
echo
'Admin is allowed to edit the content of the Downloads module';
}

Arguments

  • $module [optional, default value = super]

    contains the name of the module in lowercase

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy