diff --git a/doc/download.php b/doc/download.php
index 3bbc3c26e2..0a39a736e1 100755
--- a/doc/download.php
+++ b/doc/download.php
@@ -2,7 +2,19 @@
require_once("docutil.php");
-page_head("Download BOINC client software");
+$xml = $_GET["xml"];
+
+if ($xml) {
+} else {
+ page_head("Download BOINC client software");
+}
+
+function xecho($x) {
+ global $xml;
+ if (!$xml) {
+ echo $x;
+ }
+}
function dl_item($x, $y) {
echo "
$x |
@@ -11,22 +23,40 @@ function dl_item($x, $y) {
}
function version($number, $desc, $filename, $date, $installer, $issues=null) {
+ global $xml;
$path = "dl/$filename";
- $dlink = "$filename";
+ $url = "http://boinc.berkeley.edu/$path";
+ $dlink = "$filename";
$md = md5_file($path);
$s = number_format(filesize($path)/1000000, 2);
- list_start();
- list_bar($desc);
- dl_item("File (click to download)", "$dlink ($s MB)");
- dl_item("Version number", $number);
- dl_item("Release date", $date);
- dl_item("Installer type", $installer);
- dl_item("MD5 checksum of download file", $md);
- if ($issues) {
- dl_item ("Known issues", $issues);
+ if ($xml) {
+ echo "
+
+ $desc
+ $date
+ $number
+ $url
+ $filename
+ $s
+ $md
+ $installer
+ $issues
+
+";
+ } else {
+ list_start();
+ list_bar($desc);
+ dl_item("File (click to download)", "$dlink ($s MB)");
+ dl_item("Version number", $number);
+ dl_item("Release date", $date);
+ dl_item("Installer type", $installer);
+ dl_item("MD5 checksum of download file", $md);
+ if ($issues) {
+ dl_item ("Known issues", $issues);
+ }
+ list_end();
}
- list_end();
}
function win_old() {
@@ -53,7 +83,7 @@ function mac_advanced() {
return "Advanced GUI";
}
-echo "
+xecho( "
BOINC client software is available for
Windows,
Mac OS X,
@@ -70,7 +100,7 @@ Click on your computer type, or scroll down.
Microsoft Windows (all versions, Windows 95 and later)
-";
+)";
version(
"4.25",
"Recommended version",
@@ -104,10 +134,10 @@ version(
"
);
-echo "
+xecho( "
Macintosh OS/X (10.2 and later)
-";
+)";
version(
"4.19",
"Recommended version",
@@ -130,10 +160,10 @@ version(
bare_core()
);
-echo "
+xecho("
Linux/x86
-";
+)";
version(
"4.19",
"Recommended version",
@@ -148,10 +178,10 @@ version(
"16 Mar 2005",
sea()
);
-echo "
+xecho( "
Solaris/SPARC
-";
+)";
version(
"4.19",
"Recommended version",
@@ -167,7 +197,7 @@ version(
sea()
);
-echo "
+xecho("
End-User License Agreement
Versions 4.27 and earlier may contain an erroneous
End-User Licence Agreement.
@@ -200,6 +230,10 @@ The source code may be obtained
from the BOINC web site (http://boinc.berkeley.edu).
-";
-page_tail();
+)";
+if ($xml) {
+ echo "\n";
+} else {
+ page_tail();
+}
?>