$x |
$y |
";
}
function show_detail($v) {
$num = $v["num"];
$file = $v["file"];
$status = $v["status"];
$path = "dl/$file";
$url = "http://boinc.berkeley.edu/$path";
$dlink = "$file";
//$md = md5_file($path);
$s = number_format(filesize($path)/1000000, 2);
$date = $v["date"];
$type = $v["type"];
$features = $v["features"];
$bugs = $v["bugs"];
list_start();
dl_item("File (click to download)", "$dlink ($s MB)");
dl_item("Version number", $num);
dl_item("Release date", $date);
dl_item("Installer type", $type);
//dl_item("MD5 checksum of download file", $md);
if ($features) {
dl_item ("New features", $features);
}
if ($bugs) {
dl_item ("Known problems", $bugs);
}
list_end();
}
// show details on a version if URL indicates
//
$pname = $_GET["platform"];
if ($pname) {
$i = $_GET["i"];
$p = $platforms[$pname];
$long_name = $p["name"];
$va = $p["versions"];
$v = $va[$i];
$num = $v["num"];
page_head("BOINC version $num for $long_name");
show_detail($v);
page_tail();
exit();
}
function show_version_xml($v, $long_name) {
$num = $v["num"];
$file = $v["file"];
$status = $v["status"];
$path = "dl/$file";
$url = "http://boinc.berkeley.edu/$path";
$dlink = "$file";
//$md = md5_file($path);
$s = number_format(filesize($path)/1000000, 2);
$date = $v["date"];
$type = $v["type"];
$features = $v["features"];
$bugs = $v["bugs"];
$bugs = htmlspecialchars($bugs);
$features = htmlspecialchars($features);
echo "
$long_name
$status
$date
$num
$url
$file
$s
$type
$features
$bugs
";
// $md
}
function is_dev($v) {
return (strstr($v["status"], "Development") != null);
}
function show_version($pname, $i, $v) {
$num = $v["num"];
$file = $v["file"];
$status = $v["status"];
if (is_dev($v)) {
$status = $status."
(MAY BE UNSTABLE - USE ONLY FOR TESTING)
";
}
$path = "dl/$file";
$s = number_format(filesize($path)/1000000, 2);
$type = $v["type"];
echo "
$num | $status
|
Download ($s MB)
|
Instructions: $type
|
version details
|
";
}
function show_platform($short_name, $p, $dev) {
$long_name = $p["name"];
list_bar($long_name);
foreach ($p["versions"] as $i=>$v) {
if ($dev || !is_dev($v)) {
show_version($short_name, $i, $v);
}
}
}
function show_platform_xml($short_name, $p) {
$long_name = $p["name"];
foreach ($p["versions"] as $i=>$v) {
show_version_xml($v, $long_name);
}
}
if ($xml) {
header('Content-type: text/xml');
echo "
";
foreach($platforms as $short_name=>$p) {
show_platform_xml($short_name, $p);
}
echo "\n";
} else {
page_head("Download BOINC client software");
echo "";
foreach($platforms as $short_name=>$p) {
show_platform($short_name, $p, $dev);
}
list_end();
echo "
If your computer is not of one of these types, you can
Download information is also available in
XML format.
Versions 4.27 and earlier may contain an erroneous
End-User License Agreement.
The correct text is here.
";
page_tail();
}
?>