- 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.
This commit is contained in:
dave 2007-11-13 21:00:58 +00:00
parent 66924aeba0
commit 6112c7faaf

View File

@ -420,8 +420,8 @@ if(substr(getcwd(),-6)=="/admin" || substr(getcwd(),-7)=="/config")
<? <?
if(file_exists($prependdir."data/logo-100.gif")) if(file_exists($prependdir."data/logo-100.gif"))
echo "<img align=\"left\" height=\"50\" src=\"".$config['SFIABDIRECTORY']."/data/logo-100.gif\">"; echo "<img align=\"left\" height=\"50\" src=\"".$config['SFIABDIRECTORY']."/data/logo-100.gif\">";
echo "<h1>".i18n($config['fairname'])."</h1>";
echo "<h1>".i18n($config['fairname'])."</h1>";
echo "<div align=\"right\" style=\"font-size: 0.75em;\">"; echo "<div align=\"right\" style=\"font-size: 0.75em;\">";
if(isset($_SESSION['users_type'])) { if(isset($_SESSION['users_type'])) {
$types = array('volunteer' => 'Volunteer', 'judge' => 'Judge', $types = array('volunteer' => 'Volunteer', 'judge' => 'Judge',
@ -431,7 +431,11 @@ if(isset($_SESSION['users_type'])) {
echo i18n($types[$_SESSION['users_type']]); echo i18n($types[$_SESSION['users_type']]);
} }
echo " {$_SESSION['email']}: "; echo " {$_SESSION['email']}: ";
if($_SESSION['multirole']) {
echo "<a href=\"{$config['SFIABDIRECTORY']}/user_multirole.php\">[".i18n('Switch Roles')."]</a> ";
}
echo "<a href=\"{$config['SFIABDIRECTORY']}/user_login.php?action=logout\">[".i18n("Logout")."]</a>"; echo "<a href=\"{$config['SFIABDIRECTORY']}/user_login.php?action=logout\">[".i18n("Logout")."]</a>";
} else if(isset($_SESSION['email'])) { } else if(isset($_SESSION['email'])) {
/* Backwards compatible login settings */ /* Backwards compatible login settings */
/* Check for committee */ /* Check for committee */