- Fix a typo and make the location of user_login not relative.

This commit is contained in:
dave 2007-11-19 06:58:04 +00:00
parent 689369d460
commit 4aa73784bb

View File

@ -31,18 +31,18 @@
if(isset($_SESSION['users_type'])) { if(isset($_SESSION['users_type'])) {
$type = $_SESSION['users_type']; $type = $_SESSION['users_type'];
} else { } else {
header("location: index.php?notice=auth_requird"); header("location: {$config['SFIABDIRECTORY']}/index.php?notice=auth_required");
exit; exit;
} }
/* Make sure the user is logged in, but don't check passwd expiry */ /* Make sure the user is logged in, but don't check passwd expiry */
if(!isset($_SESSION['users_type'])) { if(!isset($_SESSION['users_type'])) {
header("location: user_login.php?type=$type&notice=auth_required"); header("location: {$config['SFIABDIRECTORY']}/user_login.php?type=$type&notice=auth_required");
exit; exit;
} }
if($_SESSION['users_type'] != $type) { if($_SESSION['users_type'] != $type) {
header("location: user_login.php?type=$type&notice=auth_required"); header("location: {$config['SFIABDIRECTORY']}/user_login.php?type=$type&notice=auth_required");
exit; exit;
} }