From 42f0ceca42c1d30f94b5d9e534d37707ece9a142 Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Sat, 19 Feb 2005 01:21:14 +0000 Subject: [PATCH] Don't show queued apps and versions --- appview.php | 2 +- include/application.php | 1 + include/category.php | 3 ++- search.php | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/appview.php b/appview.php index 598b26b..0c4715c 100644 --- a/appview.php +++ b/appview.php @@ -36,7 +36,7 @@ function display_bundle($appId) { $oApp = new Application($appId); $result = query_appdb("SELECT appFamily.appId, appName, description FROM appBundle, appFamily ". - "WHERE bundleId = $appId AND appBundle.appId = appFamily.appId"); + "WHERE appFamily.queued='false' AND bundleId = $appId AND appBundle.appId = appFamily.appId"); if(!$result || mysql_num_rows($result) == 0) { return; // do nothing diff --git a/include/application.php b/include/application.php index 790905d..d01a759 100644 --- a/include/application.php +++ b/include/application.php @@ -39,6 +39,7 @@ class Application { $sQuery = "SELECT appFamily.*, appVersion.versionId AS versionId FROM appFamily, appVersion WHERE appFamily.appId = appVersion.appId + AND appVersion.queued='false' AND appFamily.appId = ".$iAppId." ORDER BY versionName"; if($hResult = query_appdb($sQuery)) { diff --git a/include/category.php b/include/category.php index f3ccd46..b1dd916 100644 --- a/include/category.php +++ b/include/category.php @@ -44,7 +44,8 @@ class Category { */ $sQuery = "SELECT appId FROM appFamily - WHERE catId = ".$iCatId; + WHERE catId = ".$iCatId." + AND queued = 'false'"; if($hResult = query_appdb($sQuery)) { while($oRow = mysql_fetch_object($hResult)) diff --git a/search.php b/search.php index a25d4cd..c9125aa 100644 --- a/search.php +++ b/search.php @@ -13,6 +13,7 @@ require(BASE."include/application.php"); $sQuery = "SELECT * FROM appFamily WHERE appName != 'NONAME' + AND queued = 'false' AND appName LIKE '%".addslashes($_REQUEST['q'])."%' OR keywords LIKE '%".addslashes($_REQUEST['q'])."%' ORDER BY appName";