PHP Classes

File: shield.php

Recommend this page to a friend!
  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: 14 years ago
Size: 950 bytes


Class file image Download
File: shield.php
Belongs to Script Name: Burning Auth V 1.0
Author: Luca Vignaroli

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");