Changeset 646
- Timestamp:
- 11/30/2008 10:09:33 AM (5 years ago)
- File:
-
- 1 edited
-
branches/website/updates/index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/website/updates/index.php
r645 r646 12 12 13 13 //Output the list of mirrors 14 $query = mysql_query('SELECT * FROM updater_mirrors ORDER By Continent, Country, City');14 $query = mysql_query('SELECT * FROM mirrors ORDER By Continent, Country, City'); 15 15 echo ' <mirrors> 16 <mirror location="(automatically decide)">http://downloads.sourceforge.net/eraser/</mirror>' . "\n";16 <mirror location="(automatically decide)">http://downloads.sourceforge.net/eraser/</mirror>' . "\n"; 17 17 while ($row = mysql_fetch_array($query)) 18 18 { … … 23 23 24 24 //Prepare the list of updates 25 $query = mysql_query(sprintf('SELECT updater_downloads.*, updater_publishers.Name as PublisherName26 FROM updater_downloads27 INNER JOIN updater_publishers ON28 updater_downloads.PublisherID=updater_publishers.PublisherID25 $query = mysql_query(sprintf('SELECT downloads.*, publishers.Name as PublisherName 26 FROM downloads 27 INNER JOIN publishers ON 28 downloads.PublisherID=publishers.PublisherID 29 29 WHERE 30 30 (MinVersion IS NULL AND MaxVersion IS NULL) OR … … 46 46 47 47 printf(' <item name="%s" version="%s" publisher="%s" architecture="%s" filesize="%d">%s</item> 48 ', htmlentities($row['Name']), $row['Version'], htmlentities($row['Publisher ']), $row['Architecture'],48 ', htmlentities($row['Name']), $row['Version'], htmlentities($row['PublisherName']), $row['Architecture'], 49 49 $row['Filesize'], htmlentities($row['Link'])); 50 50 } 51 51 52 if (!empty($lastItemType)) 53 printf(' </%s>' . "\n", $lastItemType); 52 54 echo '</updateList> 53 55 ';
Note: See TracChangeset
for help on using the changeset viewer.
