diff --git a/bugs.php b/bugs.php
new file mode 100644
index 0000000..223f726
--- /dev/null
+++ b/bugs.php
@@ -0,0 +1,253 @@
+
+
+
+/*
+ * Application Database - appview.php
+ *
+ */
+
+include("path.php");
+require(BASE."include/"."incl.php");
+require(BASE."include/"."application.php");
+require(BASE."include/"."comments.php");
+require(BASE."include/"."appdb.php");
+
+require(BASE."include/"."rating.php");
+require(BASE."include/"."category.php");
+
+global $apidb_root;
+
+
+
+
+function get_screenshot_img($appId, $versionId)
+{
+ global $apidb_root;
+
+ if(!$versionId)
+ $versionId = 0;
+
+ $result = mysql_query("SELECT * FROM appData WHERE appId = $appId AND versionId = $versionId AND type = 'image'");
+
+ if(!$result || !mysql_num_rows($result))
+ {
+ $imgFile = "
";
+ }
+ else
+ {
+ $ob = mysql_fetch_object($result);
+ $imgFile = "";
+ }
+
+ $img = html_frame_start("",'128','',2);
+ $img .= "$imgFile";
+ $img .= html_frame_end()."
";
+
+ return $img;
+}
+
+
+function display_catpath($catId)
+{
+ $cat = new Category($catId);
+
+ $catFullPath = make_cat_path($cat->getCategoryPath());
+ 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 = mysql_query("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 "
| Application Name | \n"; + echo "Description | \n"; + echo "
| ".stripslashes($ob->appName)." | \n"; + echo "$desc | \n"; + echo "
| Version | \n"; + echo "Description | \n"; + echo "Rating With Windows | \n"; + echo "Rating Without Windows | \n"; + echo "Comments | \n"; + echo "
| ".$ver->versionName." | \n"; + echo "$desc | \n"; + echo "$r_win | \n"; + echo "$r_fake | \n"; + echo "$r_count | \n"; + echo "
| Name | ".stripslashes($data->appName)." | \n"; + echo "
| App Id | ".$data->appId." | \n"; + echo "
| Vendor | ". + " ".stripslashes($vendor->vendorName)." \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 " |
| Welcome \n"; +?> + 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 + + echo " + http://appdb.winehq.org/appview.php?appId=".$data->appId." \n"; +?> + in the bug's "URL" Field. If it is not entered, this search page can not find it. + + echo " |