From 6112c7faaf869b06ce7f1372de668ff66061bcee Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 13 Nov 2007 21:00:58 +0000 Subject: [PATCH] - Add the multirole switcher link to the log bar.. The file doesn't exist yet, but noone should be able to access that link anyway, until user_login.php committeed. --- common.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common.inc.php b/common.inc.php index b5676b70..e92bec4f 100644 --- a/common.inc.php +++ b/common.inc.php @@ -420,8 +420,8 @@ if(substr(getcwd(),-6)=="/admin" || substr(getcwd(),-7)=="/config") "; -echo "

".i18n($config['fairname'])."

"; +echo "

".i18n($config['fairname'])."

"; echo "
"; if(isset($_SESSION['users_type'])) { $types = array('volunteer' => 'Volunteer', 'judge' => 'Judge', @@ -431,7 +431,11 @@ if(isset($_SESSION['users_type'])) { echo i18n($types[$_SESSION['users_type']]); } echo " {$_SESSION['email']}: "; + if($_SESSION['multirole']) { + echo "[".i18n('Switch Roles')."] "; + } echo "[".i18n("Logout")."]"; + } else if(isset($_SESSION['email'])) { /* Backwards compatible login settings */ /* Check for committee */