2002-04-30 22:22:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
function platform_downloads($platform, $core_app) {
|
|
|
|
$result = mysql_query("select * from app_version where platformid=$platform->id and appid=$core_app->id");
|
|
|
|
|
2002-09-05 22:19:23 +00:00
|
|
|
echo "<tr><td><b>$platform->name</b></td></tr>\n";
|
2002-04-30 22:22:54 +00:00
|
|
|
while ($app_version = mysql_fetch_object($result)) {
|
2002-09-05 22:19:23 +00:00
|
|
|
$version = sprintf("<a href=dl_%s_%s.php>BOINC core client,<b> version %s.</b></a>",
|
|
|
|
$platform->name, $app_version->version_num, $app_version->version_num);
|
|
|
|
echo "<tr><td>      $version</td></tr>\n";
|
|
|
|
//$app_version->md5_cksum";
|
2002-04-30 22:22:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-09-05 22:19:23 +00:00
|
|
|
require_once("db.inc");
|
|
|
|
require_once("util.inc");
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
db_init();
|
2002-09-05 22:19:23 +00:00
|
|
|
page_head("Download the BOINC Core Client");
|
|
|
|
|
|
|
|
printf(
|
|
|
|
TABLE2."\n"
|
|
|
|
."<tr><td><br></td></tr>\n"
|
|
|
|
."<tr><td><b>To select the right core client for your computer, click on the download\n"
|
|
|
|
."link corresponding to the name of your operating system.</b></td></tr>\n"
|
|
|
|
."<tr>".TD2.LG_FONT."<b>To Download:</b></font></td></tr>\n"
|
|
|
|
);
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
$result = mysql_query("select * from app where name='core_client'");
|
|
|
|
$core_app = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
|
|
|
|
$result = mysql_query("select * from platform");
|
|
|
|
while ($platform = mysql_fetch_object($result)) {
|
|
|
|
platform_downloads($platform, $core_app);
|
|
|
|
}
|
2002-09-05 22:19:23 +00:00
|
|
|
echo "</table>\n";
|
|
|
|
page_tail();
|
2002-04-30 22:22:54 +00:00
|
|
|
mysql_free_result($result);
|
|
|
|
?>
|