From 1a246cba5d97d58c148356ad4a7edcf50b89e68f Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 19 Nov 2007 07:01:51 +0000 Subject: [PATCH] - Fixup the location: redirections in user_auth_required() --- user.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/user.inc.php b/user.inc.php index 339a270..f36da75 100644 --- a/user.inc.php +++ b/user.inc.php @@ -361,18 +361,19 @@ function user_valid_password($pass) */ function user_auth_required($type, $access='') { + global $config; if(!isset($_SESSION['users_type'])) { - header("location: user_login.php?type=$type¬ice=auth_required"); + header("location: {$config['SFIABDIRECTORY']}/user_login.php?type=$type¬ice=auth_required"); exit; } if($_SESSION['users_type'] != $type) { - header("location: user_login.php?type=$type¬ice=auth_required"); + header("location: {$config['SFIABDIRECTORY']}/user_login.php?type=$type¬ice=auth_required"); exit; } if($_SESSION['password_expired'] == true) { - header("location: user_password.php"); + header("location: {$config['SFIABDIRECTORY']}/user_password.php"); exit; } @@ -383,7 +384,7 @@ function user_auth_required($type, $access='') } if(committee_auth_has_access($access) == false) { - header("Location: ".$config['SFIABDIRECTORY']."/committee_main.php?notice=no_auth"); + header("Location: {$config['SFIABDIRECTORY']}/committee_main.php?notice=no_auth"); exit; } }