From f5fb26a26507a8a5cef9e2a338014b0f92f06a2b Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Thu, 29 Sep 2005 00:20:03 +0000 Subject: [PATCH] Remove the old bugs.php page, we have a new bug system --- appview.php | 3 - bugs.php | 154 ---------------------------------------------------- 2 files changed, 157 deletions(-) delete mode 100644 bugs.php diff --git a/appview.php b/appview.php index 81940a2..7473fa9 100644 --- a/appview.php +++ b/appview.php @@ -197,9 +197,6 @@ if($_REQUEST['appId']) echo " Name ".$oApp->sName." \n"; echo " Vendor ". " ".$oVendor->sName."  \n"; - echo " BUGS ". - " iAppId."\">Check for bugs in bugzilla  \n"; - echo " \n"; echo " Votes "; echo vote_count_app_total($oApp->iAppId); echo " \n"; diff --git a/bugs.php b/bugs.php deleted file mode 100644 index 0b85929..0000000 --- a/bugs.php +++ /dev/null @@ -1,154 +0,0 @@ -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($appId) -{ - $result = query_appdb("SELECT appFamily.appId, appName, description FROM appBundle, appFamily ". - "WHERE bundleId = $appId AND appBundle.appId = appFamily.appId"); - if(!$result || mysql_num_rows($result) == 0) - { - // do nothing - return; - } - - 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($result)) - { - //set row color - $bgcolor = (($c % 2) ? "color0" : "color1"); - - //format desc - $desc = substr(stripslashes($ob->description),0,50); - if(strlen($desc) == 50) - $desc .= " ..."; - - //display row - echo "\n"; - echo " \n"; - echo " \n"; - echo "\n\n"; - - $c++; - } - - echo "
Application NameDescription
".stripslashes($ob->appName)."$desc  
\n\n"; - echo html_frame_end(); -} - - - -/* code to View an application's Bugs */ -$appId = $_REQUEST['appId']; - -if(!is_numeric($appId)) -{ - errorpage("Something went wrong with the IDs"); - exit; -} - -if($appId) -{ - $oApp = new Application($appId); - if(!$oApp->iAppId) { - // Oops! application not found or other error. do something - errorpage('Internal Database Access Error'); - exit; - } - - // header - apidb_header("Search for bugs in Bugzila for - ".$oApp->sName); - - //cat display - display_catpath($oApp->iCatId, $oApp->iAppId); - - //set Vendor - $oVendor = new Vendor($oApp->iVendorId); - - //set URL - $appLinkURL = ($oApp->sWebPage) ? "".substr(stripslashes($oApp->sWebPage),0,30)."": " "; - - //set Image - $img = get_screenshot_img($oApp->iAppId, $versionId); - - //start display application - echo html_frame_start("","98%","",0); - - echo '',"\n"; - echo '',"\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "
Name ".$oApp->sName."
App Id ".$oApp->iAppId."
Vendor ". - " ".$oVendor->sName."  \n"; - echo "
All Bugs ". - " - Look for All bugs in bugzilla  \n"; - echo "
Open Bugs ". - " - Look for Open bugs in bugzilla  \n"; - echo "
Submit a New Bug ". - " - Submit a new bug in bugzilla  \n"; - echo "
\n"; - - //Notes - echo "
Welcome
-

This is the link between the Wine Application Database and Wine's Buzilla. From here you - get search for bugs entered against this application. You can also enter new bugs if you log - into Wine's Bugzilla.

-

The link between the Application Database and Bugzilla is based on the bug having the following URL - - ".APPDB_ROOT."appview.php?appId=".$oApp->iAppId."   - in the bug's URL Field. If it is not entered, this search page can not find it. -

"; - - echo html_frame_end("For more details and user comments, view the versions of this application."); - - //display versions - display_versions($oApp->iAppId,$oApp->aVersionsIds); - - //display bundle - display_bundle($oApp->iAppId); - -} -else -{ - // Oops! Called with no params, bad llamah! - errorpage('Page Called with No Params!'); - exit; -} -apidb_footer(); -?>