$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']; $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) { echo "
".tra("Download BOINC")."
". sprintf(tra("%s for %s (%s MB)"), $num, $long_name, $s )." |
", 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. 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) { 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(); } echo " After downloading BOINC you must install it.
|
"; show_pictures(); echo " |