Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

checkrights

This function will check if an Administrator has the correct rights assigned.

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.