Index: include/application.php
===================================================================
RCS file: /home/wine/appdb/include/application.php,v
retrieving revision 1.85
diff -u -p -r1.85 application.php
--- include/application.php 17 Jan 2007 03:18:49 -0000 1.85
+++ include/application.php 17 Jan 2007 17:37:37 -0000
@@@ -631,22 +648,13 @@ class Application {
echo "
Maintainer’s Version | ".$this->sTestedRelease." |
\n";
+ // Download URLs
if($sDownloadurls = downloadurl::display($this->iVersionId))
echo $sDownloadurls;
Index: include/url.php
===================================================================
RCS file: /home/wine/appdb/include/url.php,v
retrieving revision 1.11
diff -u -p -r1.11 url.php
--- include/url.php 4 Jan 2007 02:35:02 -0000 1.11
+++ include/url.php 17 Jan 2007 17:37:43 -0000
@@ -234,6 +242,30 @@ class Url {
$sEmail = User::get_notify_email_address_list(null, $this->iVersionId);
if($sEmail)
mail_appdb($sEmail, $sSubject ,$sMsg);
- }
+ }
+
+ /* Display links for a given version/application */
+ function display($iVersionId, $iAppId = NULL)
+ {
+ if($iVersionId)
+ {
+ if(!($hResult = appData::getData($iVersionId, "url")))
+ return FALSE;
+ } else
+ {
+ if(!($hResult = appData::getData($iAppId, "url", FALSE)))
+ return FALSE;
+ }
+
+ for($i = 0; $oRow = mysql_fetch_object($hResult); $i++)
+ {
+ $sReturn .= html_tr(array(
+ "