*** empty log message ***

svn path=/trunk/boinc/; revision=5700
This commit is contained in:
David Anderson 2005-03-22 22:50:33 +00:00
parent 1acb56b758
commit 8ecf64765d
1 changed files with 57 additions and 23 deletions

View File

@ -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 "<tr><td valign=top align=right width=30% bgcolor=d8d8ff>$x</td>
@ -11,22 +23,40 @@ function dl_item($x, $y) {
}
function version($number, $desc, $filename, $date, $installer, $issues=null) {
global $xml;
$path = "dl/$filename";
$dlink = "<a href=http://boinc.berkeley.edu/$path>$filename</a>";
$url = "http://boinc.berkeley.edu/$path";
$dlink = "<a href=$url>$filename</a>";
$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 "
<version>
<description>$desc</description>
<date>$date</date>
<version_num>$number</version_num>
<url>$url</url>
<filename>$filename</filename>
<size_mb>$s</size_mb>
<md5>$md</md5>
<installer>$installer</installer>
<issues>$issues</issues>
</version>
";
} 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 "<a href=mac_advanced.php>Advanced GUI</a>";
}
echo "
xecho( "
BOINC client software is available for
<a href=#windows>Windows</a>,
<a href=#mac>Mac OS X</a>,
@ -70,7 +100,7 @@ Click on your computer type, or scroll down.
<a name=windows>
<h2>Microsoft Windows (all versions, Windows 95 and later)</h2>
";
)";
version(
"4.25",
"Recommended version",
@ -104,10 +134,10 @@ version(
</ul>
"
);
echo "
xecho( "
<a name=mac>
<h2>Macintosh OS/X (10.2 and later)</h2>
";
)";
version(
"4.19",
"Recommended version",
@ -130,10 +160,10 @@ version(
bare_core()
);
echo "
xecho("
<a name=linux>
<h2>Linux/x86</h2>
";
)";
version(
"4.19",
"Recommended version",
@ -148,10 +178,10 @@ version(
"16 Mar 2005",
sea()
);
echo "
xecho( "
<a name=solaris>
<h2>Solaris/SPARC</h2>
";
)";
version(
"4.19",
"Recommended version",
@ -167,7 +197,7 @@ version(
sea()
);
echo "
xecho("
<h2>End-User License Agreement</h2>
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).
</pre>
";
page_tail();
)";
if ($xml) {
echo "</versions>\n";
} else {
page_tail();
}
?>