checkrights
Quote
checkrights ( string $rights )
Parameters
rights
This is the rights you want to check for an Administrator.
Return Values
checkrights() will return true if the user is an Administrator.with the rights defined in $rights.
checkrights() will return false if the user is not an Administrator or does not have the correct rights.
Example
Code
<?php
if (!checkrights("rights")) { die("Access Denied"); };
?>
With the above example, the script will be terminated if the user does not have the correct Administration
rights for your given application.