$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 "
".tra("Download BOINC")."
". sprintf(tra("%s for %s (%s MB)"), $num, $long_name, $s )." |
".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."). " " ; if ($pname) { download_link($pname); } else { echo "
" .tra("If your computer is not of one of the above types, you can")."
| "; show_pictures(); echo " |