2003-02-07 09:00:35 +00:00
|
|
|
<?php
|
|
|
|
|
2003-06-05 18:16:37 +00:00
|
|
|
function platform_downloads($platform) {
|
|
|
|
$result = mysql_query("select * from core_version where platformid=$platform->id order by version_num desc");
|
2003-02-07 09:00:35 +00:00
|
|
|
|
|
|
|
if (!$result) return;
|
|
|
|
|
|
|
|
$found = false;
|
|
|
|
|
2003-06-05 18:16:37 +00:00
|
|
|
if ($core_version = mysql_fetch_object($result)) {
|
|
|
|
$version = sprintf("%.2f", $core_version->version_num/100);
|
|
|
|
$url = parse_element($core_version->xml_doc, "<url>");
|
|
|
|
row2("<a href=$url>$platform->user_friendly_name", $version);
|
2003-02-12 18:51:05 +00:00
|
|
|
//$app_version->md5_cksum";
|
2003-02-07 09:00:35 +00:00
|
|
|
$found = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
mysql_free_result($result);
|
|
|
|
}
|
|
|
|
|
|
|
|
function print_download_links() {
|
|
|
|
start_table();
|
|
|
|
|
2003-05-21 17:59:10 +00:00
|
|
|
echo "<tr><th>Computer type</th><td>Version</th></tr>\n";
|
2003-02-07 09:00:35 +00:00
|
|
|
$result = mysql_query("select * from platform");
|
|
|
|
while ($platform = mysql_fetch_object($result)) {
|
2003-06-05 18:16:37 +00:00
|
|
|
platform_downloads($platform);
|
2003-02-07 09:00:35 +00:00
|
|
|
}
|
|
|
|
mysql_free_result($result);
|
|
|
|
echo "</table>\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|