$v) {
if (!$dev && is_dev($v)) continue;
return $v;
}
foreach ($p['versions'] as $i=>$v) {
return $v;
}
}
function download_link($pname) {
global $platforms;
global $url_base;
$p = $platforms[$pname];
$v = latest_version($p);
$file = $v['file'];
$long_name = $p['name'];
$num = $v['num'];
$path = "dl/$file";
$url = $url_base.$file;
$dlink = "$file";
$s = number_format(filesize($path)/1000000, 2);
echo "
";
if ($pname == 'linux'||$pname == 'linuxx64') {
$pcompat = $platforms["linuxcompat"];
$vcompat = latest_version($pcompat);
$numcompat = $vcompat['num'];
$filecompat = $vcompat['file'];
$urlcompat = $url_base.$filecompat;
$pathcompat = "dl/$filecompat";
$scompat = number_format(filesize($pathcompat)/1000000, 2);
echo "
This release is known to work with these Linux versions:
- Fedora Core 7 and 8
- Debian 4.1
- Ubuntu 7.10
For other Linux versions,
check if a BOINC package is offered by your Linux distribution.
Example package names:
- Gentoo: sci-misc/boinc
- Debian and Ubuntu: boinc-client, boinc-manager
(more info here).
Also boinc-dev (for project developers).
Alternatively, download the
BOINC client for older Linux versions
(version $numcompat, $scompat MB).
This doesn't have a graphical interface,
but it should work on all Linux systems,
both x86 and x64.
";
}
}
function link_row($pname) {
echo "
";
if ($pname=='win') {
echo " Windows";
} else if ($pname=='mac') {
echo " Mac OS X";
} else if ($pname=='linux') {
echo " Linux/x86";
}
echo " | ";
download_link($pname);
echo " |
";
}
$apps = array(
array('classic.jpg', 180, 143),
array('cpdn_200.jpg', 200, 147),
array('eah_200.png', 200, 150),
array('rosetta_at_home.jpg', 200, 150),
array('qah.200x150.png', 200, 150),
);
function show_pictures() {
global $apps;
shuffle($apps);
$a0 = $apps[0];
$a1 = $apps[1];
$f0 = $a0[0];
$f1 = $a1[0];
echo "
";
}
function show_download($pname) {
echo "
";
}
if ($_GET['xml']) {
$args = strstr($_SERVER['REQUEST_URI'], '?');
Header("Location: download_all.php$args");
exit();
}
page_head(tr(DL_DOWNLOAD_TITLE));
if ($_GET['all_platforms']) {
show_download(null);
} else if (strstr($client_info, 'Windows')) {
if (strstr($client_info, 'Win64')||strstr($client_info, 'WOW64')) {
show_download('winx64');
} else {
show_download('win');
}
} else if (strstr($client_info, 'Mac')) {
show_download('mac');
} else if (strstr($client_info, 'Linux')) {
if (strstr($client_info, 'x86_64')) {
show_download('linuxx64');
} else {
show_download('linux');
}
} else {
show_download(null);
}
page_tail(true);
?>