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: 9 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;
}
?>