make use of the new constants of the config file for db connection and base path

This commit is contained in:
Jonathan Ernst
2004-12-23 01:12:03 +00:00
committed by WineHQ
parent d5a6d34be6
commit ca749d32d9
25 changed files with 100 additions and 146 deletions

View File

@@ -9,15 +9,13 @@ require_once(BASE."include/"."category.php");
function global_sidebar_login() {
global $apidb_root;
$g = new htmlmenu("User Menu");
if(loggedin())
{
$g->add("Logout", $apidb_root."account.php?cmd=logout");
$g->add("Preferences", $apidb_root."preferences.php");
$g->add("Logout", BASE."account.php?cmd=logout");
$g->add("Preferences", BASE."preferences.php");
/* if this user maintains any applications list them */
/* in their sidebar */
@@ -29,15 +27,15 @@ function global_sidebar_login() {
while(list($index, list($appId, $versionId, $superMaintainer)) = each($apps_user_maintains))
{
if($superMaintainer)
$g->addmisc("<a href='".$apidb_root."appview.php?appId=$appId'>".appIdToName($appId)."*</a>", "center");
$g->addmisc("<a href='".BASE."appview.php?appId=$appId'>".appIdToName($appId)."*</a>", "center");
else
$g->addmisc("<a href='".$apidb_root."appview.php?appId=$appId&versionId=$versionId'>".appIdToName($appId)." ".versionIdToName($versionId)."</a>", "center");
$g->addmisc("<a href='".BASE."appview.php?appId=$appId&versionId=$versionId'>".appIdToName($appId)." ".versionIdToName($versionId)."</a>", "center");
}
}
}
else
{
$g->add("Login", $apidb_root."account.php?cmd=login");
$g->add("Login", BASE."account.php?cmd=login");
}
$g->done();