Login   Register  
PHP Classes
elePHPant
Icontem

File: shield.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Luca Vignaroli  >  burnauth  >  shield.php  >  Download  
File: shield.php
Role: Example script
Content type: text/plain
Description: shielding include file
Class: burnauth
Page access authentication
Author: By
Last change:
Date: 2002-09-25 18:05
Size: 950 bytes
 

Contents

Class file image Download
<?
/*
File: shield.php 
Belongs to Script Name: Burning Auth V 1.0
Author: Luca Vignaroli
Email: luca@burning.it

Description:
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.
*/


include("burnauth.php");
$burn = new burnauth();

if (!isset(
$_SESSION['user'])) {
    
Header("Location: login.php?mode=login");
}
?>