PHP Classes

File: sac.config.inc.php

Recommend this page to a friend!
  Classes of Mark Davidson   Simple Authentication Class   sac.config.inc.php   Download  
File: sac.config.inc.php
Role: Configuration script
Content type: text/plain
Description: simpleAuthenticationClass config file
Class: Simple Authentication Class
Authenticate users listed in an array
Author: By
Last change:
Date: 17 years ago
Size: 1,332 bytes
 

Contents

Class file image Download
<?php
##################################################################################
#
# File : sac.config.inc.php - simpleAuthenticationClass config file.
# Class Title : simpleAuthenticationClass
# Class Description : Enables users to create a simple authentication system on
# there site with different levels of user access, user details
# are stored in an array that can be easily modified.
# Class Notes : This is My First Publicised Class Any Input Would be
# Appreciated.
# Copyright : 2007
# Licence : http://www.gnu.org/copyleft/gpl.html GNU Public License
#
# Author : Mark Davidson <design@fluxnetworks.co.uk>
# <http://design.fluxnetworks.co.uk>
# Created Date : 06/01/2007
# Last Modified : 07/01/2007
#
##################################################################################

$users = array(
           
#'username' => array(sha1(password), level),
           
'user' => array('e38ad214943daad1d64c102faec29de4afe9da3d', 1), //Standard User :- Username: user, Password: password1.
           
'admin' => array('2aa60a8ff7fcd473d321e0146afd9e26df395147', 2), //Admin User :- Username: admin, Password: password2.
           
'superadmin' => array('1119cfd37ee247357e034a08d844eea25f6fd20f', 3), //Super Admin :- Username: superadmin, Password: password3.
       
);
?>