Add the ability to add download URLs to application versions. They are

displayed in the version view marked as 'free downloads'.  The links will
later be used to allow browsing of downloadable applications.
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-01-05 05:20:05 +00:00
committed by WineHQ
parent 9f88239d1f
commit 52a155588c
5 changed files with 250 additions and 1 deletions

View File

@@ -51,6 +51,25 @@ class appData
return $sReturn;
}
/* Get appData for a given version/application, optionally filter by type */
function getData($iId, $sType, $bIsVersion = TRUE)
{
$iAppId = 0;
$iVersionId = 0;
if($bIsVersion)
$iVersionId = $iId;
else
$iAppId = $iId;
$hResult = query_parameters("SELECT * FROM appData WHERE appId = '?' AND versionId = '?' AND TYPE = '?'", $iAppId, $iVersionId, $sType);
if(!$hResult || !mysql_num_rows($hResult))
return FALSE;
return $hResult;
}
}
?>