forked from science-ation/science-ation
Fix dave's logout code to work regardless of what folder you're in, and i18n the logout links
This commit is contained in:
parent
df7cb53ee5
commit
d20a9c1eef
@ -431,22 +431,22 @@ if(isset($_SESSION['users_type'])) {
|
||||
echo i18n($types[$_SESSION['users_type']]);
|
||||
}
|
||||
echo " {$_SESSION['email']}: ";
|
||||
echo "<a href=\"user_login.php?action=logout\">[Logout]</a>";
|
||||
echo "<a href=\"{$config['SFIABDIRECTORY']}/user_login.php?action=logout\">[".i18n("Logout")."]</a>";
|
||||
} else if(isset($_SESSION['email'])) {
|
||||
/* Backwards compatible login settings */
|
||||
/* Check for committee */
|
||||
if(isset($_SESSION['committee_member_id'])) {
|
||||
echo i18n('Committee Member');
|
||||
echo " {$_SESSION['email']}: ";
|
||||
echo "<a href=\"committee_login.php?action=logout\">[Logout]</a>";
|
||||
echo "<a href=\"{$config['SFIABDIRECTORY']}/committee_login.php?action=logout\">[".i18n("Logout")."]</a>";
|
||||
} else if(isset($_SESSION['judges_id'])) {
|
||||
echo i18n('Judge');
|
||||
echo " {$_SESSION['email']}: ";
|
||||
echo "<a href=\"register_judges.php?action=logout\">[Logout]</a>";
|
||||
echo "<a href=\"{$config['SFIABDIRECTORY']}/register_judges.php?action=logout\">[".i18n("Logout")."]</a>";
|
||||
} else if(isset($_SESSION['registration_id'])) {
|
||||
echo i18n('Participant');
|
||||
echo " {$_SESSION['email']}: ";
|
||||
echo "<a href=\"register_participants.php?action=logout\">[Logout]</a>";
|
||||
echo "<a href=\"{$config['SFIABDIRECTORY']}/register_participants.php?action=logout\">[".i18n("Logout")."]</a>";
|
||||
} else {
|
||||
echo " ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user