getCategoryPath(), $appId, $versionId); echo html_frame_start("",'98%','',2); echo "

Category: ". $catFullPath ."
\n"; echo html_frame_end(); } /** * display the SUB apps that belong to this app */ function display_bundle($iAppId) { $oApp = new Application($appId); $hResult = query_parameters("SELECT appFamily.appId, appName, description FROM appBundle, appFamily ". "WHERE appFamily.queued='false' AND bundleId = '?' AND appBundle.appId = appFamily.appId", $iAppId); if(!$hResult || mysql_num_rows($hResult) == 0) { return; // do nothing } echo html_frame_start("","98%","",0); echo "\n\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n\n"; $c = 0; while($ob = mysql_fetch_object($hResult)) { //set row color $bgcolor = ($c % 2 == 0) ? "color0" : "color1"; //display row echo "\n"; echo " \n"; echo " \n"; echo "\n\n"; $c++; } echo "
Application NameDescription
appId\">".stripslashes($ob->appName)."".util_trim_description($oApp->sDescription)."
\n\n"; echo html_frame_end(); } /* Show note */ function show_note($sType,$oData) { global $oVersion; switch($sType) { case 'WARNING': $color = 'red'; $title = 'Warning'; break; case 'HOWTO'; $color = 'green'; $title = 'HOWTO'; break; default: if(!empty($oData->noteTitle)) $title = $oData->noteTitle; else $title = 'Note'; $color = 'blue'; } $s = html_frame_start("","98%",'',0); $s .= "\n"; $s .= "\n"; $s .= "\n"; if ($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isMaintainer($oVersion->iVersionId) || $_SESSION['current']->isSuperMaintainer($oVersion->iAppId)) { $s .= "'; } $s .= "
".$title."
\n"; $s .= $oData->noteDesc; $s .= "
"; $s .= "
noteId}\">"; $s .= ''; $s .= '
\n"; $s .= html_frame_end(); return $s; } if(!is_numeric($aClean['appId']) && !is_numeric($aClean['versionId'])) { util_show_error_page("Something went wrong with the application or version id"); exit; } if ($aClean['sub']) { if(($aClean['sub'] == 'delete' ) && ($aClean['buglinkId'])) { if(($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isMaintainer($oVersion->iVersionId) || $_SESSION['current']->isSuperMaintainer($oVersion->iAppId))) { $oBuglink = new bug($aClean['buglinkId']); $oBuglink->delete(); redirect(apidb_fullurl("appview.php?versionId=".$aClean['versionId'])); exit; } } if(($aClean['sub'] == 'unqueue' ) && ($aClean['buglinkId'])) { if(($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isMaintainer($oVersion->iVersionId) || $_SESSION['current']->isSuperMaintainer($oVersion->iAppId))) { $oBuglink = new bug($aClean['buglinkId']); $oBuglink->unqueue(); redirect(apidb_fullurl("appview.php?versionId=".$aClean['versionId'])); exit; } } if(($aClean['sub'] == 'Submit a new bug link.' ) && ($aClean['buglinkId'])) { $oBuglink = new bug(); $oBuglink->create($aClean['versionId'],$aClean['buglinkId']); redirect(apidb_fullurl("appview.php?versionId=".$aClean['versionId'])); exit; } if($aClean['sub'] == 'StartMonitoring') { $oMonitor = new Monitor(); $oMonitor->create($_SESSION['current']->iUserId,$aClean['appId'],$aClean['versionId']); redirect(apidb_fullurl("appview.php?versionId=".$aClean['versionId'])); exit; } if($aClean['sub'] == 'StopMonitoring') { $oMonitor = new Monitor(); $oMonitor->find($_SESSION['current']->iUserId,$aClean['appId'],$aClean['versionId']); if($oMonitor->iMonitorId) { $oMonitor->delete(); } redirect(apidb_fullurl("appview.php?versionId=".$aClean['versionId'])); exit; } } /** * We want to see an application family (=no version). */ if($aClean['appId']) { $oApp = new Application($aClean['appId']); $oApp->display(); } else if($aClean['versionId']) // We want to see a particular version. { $oVersion = new Version($aClean['versionId']); $oVersion->display(); } else { // Oops! Called with no params, bad llamah! util_show_error_page('Page Called with No Params!'); exit; } apidb_footer(); ?>