PHP Classes
elePHPant
Icontem

Power 2 Protect: Restrict user access to pages based on permissions

Recommend this page to a friend!

  Author Author  
Picture of Igor Feghali
Name: Igor Feghali <contact>
Classes: 2 packages by
Country: Brazil Brazil


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package is meant to restrict the access of users to the Web pages of a site according to a definition of user role based permissions stored in a database.

The users are authenticated in login form when they try to access a protected page.

If a user attempts to access a page to which he as no permission, the browser is redirected to access an error page.

Each protected protected Web page has an entry in the database that establishes an association with an integer key value that defines the roles of users that are authorized to access the page.

The access key value defines a bit mask. Each bit is associated to user role. A bit in the access key mask set to 1 determines that the users with that role have access to the page.

  Classes of Igor Feghali  >  Power 2 Protect  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Power 2 Protect
Base name: power2
Description: Restrict user access to pages based on permissions
Version: 1.0.0
PHP version: -
License: GNU General Public License (GPL)
 
  Groups   Applications   Files Files  

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image User Management User records, authentication and session handling View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Accessible without login Plain text file admin.php Example Protected Example Page
Accessible without login Plain text file config.inc.php Conf. Config File
Accessible without login Plain text file create_tables.sql Data Mysql Example Database
Accessible without login Plain text file error_access.php Example Access Denied Page
Accessible without login Plain text file index.php Appl. Login Form Page
Accessible without login Plain text file logout.php Example Logout script
Accessible without login Plain text file permissions.class.php Class Power 2 Protect Class
Accessible without login Plain text file protect.php Aux. Protection script
Accessible without login Plain text file README Doc. README
Accessible without login Plain text file verify_login.php Appl. Validates information submitted from login form

Install with Composer Install with Composer - Download Download all files: power2.tar.gz power2.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.