airedale/sumo
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
// Initial directory permissions setup // to give the httpd account daemon the required access // the following is required performed as root #install_dir/chgrp -R daemon . #install_dir/chmod -R 775 . // =========================================================================== // required to protect page $sumo_root = $_SERVER['DOCUMENT_ROOT'] .'/sumo/sumo.php'; require($sumo_root); /* sumo_verify_permissions($level, $group, $user) $level Accept numbers from 1 to 7 $group Accept string or array $user Accept string (optional) This function returns true if all required conditions are satisfied, otherwise returns false */ var_dump(sumo_verify_permissions(3,'edit_readings')); // =========================================================================== SUMO class has the following: [DB] [config] [client] [server] [page] [user] [connection]
About
PHP Authorisation
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published