From 1d7f5f9871c0a7f4a049a019c9adc60f583472aa Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 17 Nov 2007 21:46:18 +0000 Subject: [PATCH] - Add support for an already logged in message in multirole - Change how multirole works --- user_multirole.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/user_multirole.php b/user_multirole.php index 1597cfc..21558ae 100644 --- a/user_multirole.php +++ b/user_multirole.php @@ -37,7 +37,7 @@ if(count($u['types']) <= 1) { /* This user doesn't have multiple roles, send them to their * proper page */ - header("location: {$u['type']}_main.php"); + header("location: {$_SESSION['users_type']}_main.php"); exit; } @@ -64,9 +64,13 @@ } - $_SESSION['users_type'] = false; - send_header("Choose a Role"); + + switch($_GET['notice']) { + case 'already_logged_in': + echo error(i18n('You are already logged in, please use the [Logout] link in the upper right to logout before loggin in as a different user')); + break; + } //only display the named greeting if we have their name echo i18n("Hello %1",array($_SESSION['name'])); echo "
";