Remove the old bugs.php page, we have a new bug system
This commit is contained in:
@@ -197,9 +197,6 @@ if($_REQUEST['appId'])
|
||||
echo " <tr class=color0 valign=top><td width=\"100\"><b>Name</b></td><td width='100%'> ".$oApp->sName." </td>\n";
|
||||
echo " <tr class=\"color1\"><td><b>Vendor</b></td><td> ".
|
||||
" <a href='vendorview.php?vendorId=$oVendor->iVendorId'> ".$oVendor->sName." </a> \n";
|
||||
echo " <tr class=\"color0\"><td><b>BUGS</b></td><td> ".
|
||||
" <a href=\"bugs.php?appId=".$oApp->iAppId."\">Check for bugs in bugzilla </a> \n";
|
||||
echo " </td></tr>\n";
|
||||
echo " <tr class=\"color0\"><td><b>Votes</b></td><td> ";
|
||||
echo vote_count_app_total($oApp->iAppId);
|
||||
echo " </td></tr>\n";
|
||||
|
||||
154
bugs.php
154
bugs.php
@@ -1,154 +0,0 @@
|
||||
<?php
|
||||
/*********************************/
|
||||
/* bugs linked to an application */
|
||||
/*********************************/
|
||||
|
||||
/*
|
||||
* application environment
|
||||
*/
|
||||
include("path.php");
|
||||
require(BASE."include/incl.php");
|
||||
require(BASE."include/application.php");
|
||||
require(BASE."include/appdb.php");
|
||||
require(BASE."include/category.php");
|
||||
|
||||
|
||||
function display_catpath($catId, $appId, $versionId = '')
|
||||
{
|
||||
$cat = new Category($catId);
|
||||
|
||||
$catFullPath = make_cat_path($cat->getCategoryPath(),$appId, $versionId);
|
||||
echo html_frame_start("",'98%','',2);
|
||||
echo "<p><b>Category: $catFullPath</b><br />\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 "<table width='100%' border=0 cellpadding=3 cellspacing=1>\n\n";
|
||||
|
||||
echo "<tr class=color4>\n";
|
||||
echo " <td>Application Name</td>\n";
|
||||
echo " <td>Description</td>\n";
|
||||
echo "</tr>\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 "<tr class=$bgcolor>\n";
|
||||
echo " <td><a href='appview.php?appId=$ob->appId'>".stripslashes($ob->appName)."</a></td>\n";
|
||||
echo " <td>$desc </td>\n";
|
||||
echo "</tr>\n\n";
|
||||
|
||||
$c++;
|
||||
}
|
||||
|
||||
echo "</table>\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) ? "<a href='$oApp->sWebPage'>".substr(stripslashes($oApp->sWebPage),0,30)."</a>": " ";
|
||||
|
||||
//set Image
|
||||
$img = get_screenshot_img($oApp->iAppId, $versionId);
|
||||
|
||||
//start display application
|
||||
echo html_frame_start("","98%","",0);
|
||||
|
||||
echo '<tr><td class=color4 valign=top>',"\n";
|
||||
echo '<table width="300" border=0 cellpadding=3 cellspacing=1">',"\n";
|
||||
echo "<tr class=color0 valign=top><td width='250' align=right> <b>Name</b></td><td width='75%'> ".$oApp->sName." </td>\n";
|
||||
echo "<tr class=color1 valign=top><td width='250' align=right> <b>App Id</b></td><td width='75%'> ".$oApp->iAppId." </td>\n";
|
||||
echo "<tr class=color0 valign=top><td width='250' align=right> <b>Vendor</b></td><td width='75%'> ".
|
||||
" <a href='vendorview.php?vendorId=".$oVendor->iVendorId."'> ".$oVendor->sName." </a> \n";
|
||||
echo "<tr class=color1 valign=top><td width='250' align=right> <b>All Bugs</b></td><td width='75%'> ".
|
||||
" <a href='".BUGZILLA_ROOT."buglist.cgi?product=Wine&bug_file_loc_type=allwords&bug_file_loc=appdb ".$oApp->iAppId."'>
|
||||
Look for All bugs in bugzilla </a> \n";
|
||||
echo "<tr class=color0 valign=top><td width=250 align=right> <b>Open Bugs</b></td><td width='75%'> ".
|
||||
" <a href='".BUGZILLA_ROOT."buglist.cgi?product=Wine".
|
||||
"&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_file_loc_type=allwords&bug_file_loc=appdb ".$oApp->iAppId."'>
|
||||
Look for Open bugs in bugzilla </a> \n";
|
||||
echo "<tr class=color1 valign=top><td width='250' align=right> <b>Submit a New Bug</b></td><td width='75%'> ".
|
||||
" <a href='".BUGZILLA_ROOT."enter_bug.cgi?product=Wine&bug_file_loc=".APPDB_ROOT."appview.php?appId=".$oApp->iAppId."'>
|
||||
Submit a new bug in bugzilla </a> \n";
|
||||
echo "</td></tr>\n";
|
||||
|
||||
echo "</table></td><td class=color2 valign=top width='100%'>\n";
|
||||
|
||||
//Notes
|
||||
echo "<table width='100%' border=0><tr><td width='100%' valign=top><big><b>Welcome</b></big><br />
|
||||
<p>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.</p>
|
||||
<p>The link between the Application Database and Bugzilla is based on the bug having the following URL
|
||||
<a href='".APPDB_ROOT."appview.php?appId=".$oApp->iAppId."'>
|
||||
".APPDB_ROOT."appview.php?appId=".$oApp->iAppId."</a>
|
||||
in the bug's <i>URL</i> Field. If it is not entered, this search page can not find it.
|
||||
</td></tr></table>";
|
||||
|
||||
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();
|
||||
?>
|
||||
Reference in New Issue
Block a user