- Add support for an already logged in message in multirole

- Change how multirole works
This commit is contained in:
dave 2007-11-17 21:46:18 +00:00
parent 009af97420
commit 1d7f5f9871

View File

@ -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 <b>%1</b>",array($_SESSION['name']));
echo "<br />";