Location: PHPKode > scripts > burnauth > burnauth/shield.php
File: shield.php 
Belongs to Script Name: Burning Auth V 1.0
Author: Luca Vignaroli
Email: hide@address.com

Burning Auth is a script to handle user authenticated access to php scripts. 
The goal is quite simple: protect from unauthorized access those pages who 
need to be kept under admin control, such as data/content administration and/or
members only areas on a website.

Security is achieved through a database authentication and mantained with a 
Session name set to the authenticated user's name. Every page can be protected
calling the function shield(); at the beginning of every page, after the
burnauth.php file's inclusion and class initialization: $burn = new burnauth().

Check out the file README for installation instructions. This script is freeware.

$burn = new burnauth();

if (!isset($_SESSION['user'])) {
	Header("Location: login.php?mode=login");
Return current item: burnauth