Login   Register  
PHP Classes
elePHPant
Icontem

File: class/autentification.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2005-01-14 01:21
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;
}
?>