$v) { if (!$dev && is_dev($v)) continue; return $v; } foreach ($p['versions'] as $i=>$v) { return $v; } } // show a download link as a button or table row // function download_link($pname, $button=false) { global $platforms; global $url_base; $p = $platforms[$pname]; $v = latest_version($p); $file = $v['file']; $vbox_file = $v['vbox_file']; $vbox_version = $v['vbox_version']; $long_name = $p['name']; $num = $v['num']; $path = "dl/$file"; $url = $url_base.$file; $dlink = "$file"; $s = number_format(filesize($path)/1000000, 2); if ($button) { if ($vbox_file) { echo tra("We recommend that you also install VirtualBox, so your computer can work on science projects that require it."); echo " "; echo tra("Learn more about VirtualBox."); echo ""; echo "
\n";
$vbox_url = $url_base.$vbox_file;
$vbox_path = "dl/$vbox_file";
$vbox_size = number_format(filesize($vbox_path)/1000000, 2);
echo "
| \n";
}
echo "
|
", linux_info(); } } else { echo "
".tra("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.")
." "
.tra("After installing BOINC on your computer, you can connect it to as many of these projects as you like.")
." " .tra("You may run this software on a computer only if you own the computer or have the permission of its owner."). " " ; if ($pname == 'android') { echo "" .tra("We recommend that you download BOINC from the Google Play Store or Amazon Appstore, not from here.") ." "; } if ($pname) { download_link($pname, true); } else { list_start(); list_heading_array(array( 'Computer type', 'Current version ', 'Size' )); download_link('win'); download_link('winx64'); download_link('mac'); download_link('macppc'); download_link('linux'); download_link('linuxx64'); download_link('linuxcompat'); end_table(); } if ($pname != 'android') { echo " After downloading BOINC you must install it:
|
"; show_pictures(); echo " |