PHP Classes

File: class/autentification.php

Recommend this page to a friend!
  Classes of Javier AP   Pergamus Publication Manager   class/autentification.php   Download  
File: class/autentification.php
Role: Auxiliary script
Content type: text/plain
Description: Autentification script
Class: Pergamus Publication Manager
Web based manager for scientific publications
Author: By
Last change: Directory path added to filename
Date: 19 years ago
Size: 340 bytes
 

Contents

Class file image Download
<?php
session_start
();
$auth = false; // Assume user is not authenticated
$reg =& new Collection('userslist');
$auth = $reg->user_exists($_SESSION["USER"], $_SESSION["PW"]);

if ( !
$auth & $mode == 'edit' ) {
   
header( 'WWW-Authenticate: Basic realm="Private"' );
   
header( 'Location:registro.php?msj=1' );
    exit;
}
?>