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