isLoggedIn())
{
$g->add("Logout", BASE."account.php?sCmd=logout");
$g->add("Preferences", BASE."preferences.php");
/* if this user maintains any applications list them */
/* in their sidebar */
$apps_user_maintains = getAppsFromUserId($_SESSION['current']->iUserId);
if($apps_user_maintains)
{
$g->addmisc("");
$g->addmisc("You maintain:\n");
while(list($index, list($appId, $versionId, $superMaintainer)) = each($apps_user_maintains))
{
if($superMaintainer)
$g->addmisc("".Application::lookup_name($appId)."*", "center");
else
$g->addmisc("".Application::lookup_name($appId)." ".Version::lookup_name($versionId)."", "center");
}
}
$appsRejected = $_SESSION['current']->getAllRejectedApps();
if($appsRejected)
$g->addmisc("Review Rejected Apps", "center");
}
else
{
$g->add("Login", BASE."account.php?sCmd=login");
}
$g->done();
}
?>