mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=5700
This commit is contained in:
parent
1acb56b758
commit
8ecf64765d
|
@ -2,7 +2,19 @@
|
||||||
|
|
||||||
require_once("docutil.php");
|
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) {
|
function dl_item($x, $y) {
|
||||||
echo "<tr><td valign=top align=right width=30% bgcolor=d8d8ff>$x</td>
|
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) {
|
function version($number, $desc, $filename, $date, $installer, $issues=null) {
|
||||||
|
global $xml;
|
||||||
$path = "dl/$filename";
|
$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);
|
$md = md5_file($path);
|
||||||
$s = number_format(filesize($path)/1000000, 2);
|
$s = number_format(filesize($path)/1000000, 2);
|
||||||
|
|
||||||
list_start();
|
if ($xml) {
|
||||||
list_bar($desc);
|
echo "
|
||||||
dl_item("File (click to download)", "$dlink ($s MB)");
|
<version>
|
||||||
dl_item("Version number", $number);
|
<description>$desc</description>
|
||||||
dl_item("Release date", $date);
|
<date>$date</date>
|
||||||
dl_item("Installer type", $installer);
|
<version_num>$number</version_num>
|
||||||
dl_item("MD5 checksum of download file", $md);
|
<url>$url</url>
|
||||||
if ($issues) {
|
<filename>$filename</filename>
|
||||||
dl_item ("Known issues", $issues);
|
<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() {
|
function win_old() {
|
||||||
|
@ -53,7 +83,7 @@ function mac_advanced() {
|
||||||
return "<a href=mac_advanced.php>Advanced GUI</a>";
|
return "<a href=mac_advanced.php>Advanced GUI</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "
|
xecho( "
|
||||||
BOINC client software is available for
|
BOINC client software is available for
|
||||||
<a href=#windows>Windows</a>,
|
<a href=#windows>Windows</a>,
|
||||||
<a href=#mac>Mac OS X</a>,
|
<a href=#mac>Mac OS X</a>,
|
||||||
|
@ -70,7 +100,7 @@ Click on your computer type, or scroll down.
|
||||||
|
|
||||||
<a name=windows>
|
<a name=windows>
|
||||||
<h2>Microsoft Windows (all versions, Windows 95 and later)</h2>
|
<h2>Microsoft Windows (all versions, Windows 95 and later)</h2>
|
||||||
";
|
)";
|
||||||
version(
|
version(
|
||||||
"4.25",
|
"4.25",
|
||||||
"Recommended version",
|
"Recommended version",
|
||||||
|
@ -104,10 +134,10 @@ version(
|
||||||
</ul>
|
</ul>
|
||||||
"
|
"
|
||||||
);
|
);
|
||||||
echo "
|
xecho( "
|
||||||
<a name=mac>
|
<a name=mac>
|
||||||
<h2>Macintosh OS/X (10.2 and later)</h2>
|
<h2>Macintosh OS/X (10.2 and later)</h2>
|
||||||
";
|
)";
|
||||||
version(
|
version(
|
||||||
"4.19",
|
"4.19",
|
||||||
"Recommended version",
|
"Recommended version",
|
||||||
|
@ -130,10 +160,10 @@ version(
|
||||||
bare_core()
|
bare_core()
|
||||||
);
|
);
|
||||||
|
|
||||||
echo "
|
xecho("
|
||||||
<a name=linux>
|
<a name=linux>
|
||||||
<h2>Linux/x86</h2>
|
<h2>Linux/x86</h2>
|
||||||
";
|
)";
|
||||||
version(
|
version(
|
||||||
"4.19",
|
"4.19",
|
||||||
"Recommended version",
|
"Recommended version",
|
||||||
|
@ -148,10 +178,10 @@ version(
|
||||||
"16 Mar 2005",
|
"16 Mar 2005",
|
||||||
sea()
|
sea()
|
||||||
);
|
);
|
||||||
echo "
|
xecho( "
|
||||||
<a name=solaris>
|
<a name=solaris>
|
||||||
<h2>Solaris/SPARC</h2>
|
<h2>Solaris/SPARC</h2>
|
||||||
";
|
)";
|
||||||
version(
|
version(
|
||||||
"4.19",
|
"4.19",
|
||||||
"Recommended version",
|
"Recommended version",
|
||||||
|
@ -167,7 +197,7 @@ version(
|
||||||
sea()
|
sea()
|
||||||
);
|
);
|
||||||
|
|
||||||
echo "
|
xecho("
|
||||||
<h2>End-User License Agreement</h2>
|
<h2>End-User License Agreement</h2>
|
||||||
Versions 4.27 and earlier may contain an erroneous
|
Versions 4.27 and earlier may contain an erroneous
|
||||||
End-User Licence Agreement.
|
End-User Licence Agreement.
|
||||||
|
@ -200,6 +230,10 @@ The source code may be obtained
|
||||||
from the BOINC web site (http://boinc.berkeley.edu).
|
from the BOINC web site (http://boinc.berkeley.edu).
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
";
|
)";
|
||||||
page_tail();
|
if ($xml) {
|
||||||
|
echo "</versions>\n";
|
||||||
|
} else {
|
||||||
|
page_tail();
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue