$v) { if (!$dev && is_dev($v)) continue; 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); return "
Download BOINC
$num for $long_name ($s MB)
"; } function link_row($pname) { echo ""; if ($pname=='win') { echo " Windows"; } else if ($pname=='mac') { echo " Mac OS X"; } else if ($pname=='linux') { echo " Linux"; } echo ""; echo download_link($pname); echo " "; } function show_download($pname) { echo "
BOINC is a program that lets you donate your idle computer time to science projects like SETI@home, Climateprediction.net, Rosetta@home, World Community Grid, and many others.

After installing BOINC on your computer, you can connect it to as many of these projects as you like.

"; if ($pname) { echo download_link($pname); } else { echo " "; link_row('win'); link_row('mac'); link_row('linux'); echo "
"; } echo "

System requirements | Release notes "; if ($pname) { echo " | Other systems "; } else { echo " | All versions "; } echo "

"; } if ($_GET['xml']) { Header("Location: download_all.php?xml=1"); exit(); } page_head("BOINC: compute for science"); if ($_GET['all_platforms']) { show_download(null); } else if (strstr($client_info, 'Windows')) { show_download('win'); } else if (strstr($client_info, 'Mac')) { show_download('mac'); } else if (strstr($client_info, 'Linux')) { show_download('linux'); } else { show_download(null); } page_tail(); ?>