forked from science-ation/science-ation
- Add support for an already logged in message in multirole
- Change how multirole works
This commit is contained in:
parent
009af97420
commit
1d7f5f9871
@ -37,7 +37,7 @@
|
|||||||
if(count($u['types']) <= 1) {
|
if(count($u['types']) <= 1) {
|
||||||
/* This user doesn't have multiple roles, send them to their
|
/* This user doesn't have multiple roles, send them to their
|
||||||
* proper page */
|
* proper page */
|
||||||
header("location: {$u['type']}_main.php");
|
header("location: {$_SESSION['users_type']}_main.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,9 +64,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$_SESSION['users_type'] = false;
|
|
||||||
|
|
||||||
send_header("Choose a Role");
|
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
|
//only display the named greeting if we have their name
|
||||||
echo i18n("Hello <b>%1</b>",array($_SESSION['name']));
|
echo i18n("Hello <b>%1</b>",array($_SESSION['name']));
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
|
Loading…
Reference in New Issue
Block a user