Migrate stuff out of primarynav into the login box

This commit is contained in:
james 2010-07-21 19:27:50 +00:00
parent 5d06ea17e6
commit b4f206c6db

View File

@ -187,7 +187,16 @@ if(!$_SESSION['conferences_id']) {
<? <?
if(isset($_SESSION['roles']) && $_SESSION['username']) { if(isset($_SESSION['roles']) && $_SESSION['username']) {
echo i18n("Logged in as %1",array($_SESSION['username']))."<br />"; echo i18n("Logged in as %1",array($_SESSION['username']))."<br />";
echo "<div style=\"margin-top: 8px;\">\n";
echo "My: <a href=\"{$config['SFIABDIRECTORY']}/user_account.php\">".i18n("Account")."</a>";
echo "&nbsp;|&nbsp;";
echo "<a href=\"{$config['SFIABDIRECTORY']}/user_personal.php\">".i18n("Profile")."</a>";
echo "&nbsp;|&nbsp;";
echo "<a href=\"{$config['SFIABDIRECTORY']}/user_main.php\">".i18n("Main")."</a>";
echo "</div>";
echo "<div style=\"margin-top: 5px;\">\n";
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>";
echo "</div>";
} else if(isset($_SESSION['email'])) { } else if(isset($_SESSION['email'])) {
/* Backwards compatible login settings */ /* Backwards compatible login settings */
@ -304,11 +313,6 @@ if(is_array($_SESSION['roles'])) {
?> ?>
<? <?
if(array_key_exists('users_id', $_SESSION)) { if(array_key_exists('users_id', $_SESSION)) {
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/user_main.php\">".i18n("Main Page").'</a></li>';
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/user_personal.php\">".i18n("My Profile").'</a></li>';
if(in_array('committee', $_SESSION['roles'])) {
// echo "<li><a href=\"{$config['SFIABDIRECTORY']}/committee_main.php\">".i18n("Committee Home").'</a></li>';
}
if(in_array('admin', $_SESSION['roles'])) { if(in_array('admin', $_SESSION['roles'])) {
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/admin/\">".i18n("Administration").' (old) </a></li>'; echo "<li><a href=\"{$config['SFIABDIRECTORY']}/admin/\">".i18n("Administration").' (old) </a></li>';
} }