BOINC web: don't show BOINC+VBox button to Win 10 hosts;

our current installer is bundled with VBox 4, which doesn't work on Win 10
This commit is contained in:
David Anderson 2017-06-14 22:32:45 -07:00
parent 12b802df98
commit bb9732b206
1 changed files with 23 additions and 18 deletions

View File

@ -39,29 +39,34 @@ function download_link($pname, $button=false) {
if ($button) { if ($button) {
if ($vbox_file) { if ($vbox_file) {
echo tra("We recommend that you also install VirtualBox, so your computer can work on science projects that require it."); echo tra("We recommend that you also install %1VirtualBox%2, so your computer can work on science projects that require it.", "<a href=https://www.virtualbox.org/>", "</a>");
echo " <a href=wiki/VirtualBox>"; echo " <a href=http://boinc.berkeley.edu/wiki/VirtualBox>";
echo tra("Learn more about VirtualBox."); echo tra("Learn more about VirtualBox.");
echo "</a>"; echo "</a>";
echo "<table><tr valign=top><td>\n"; echo "<table><tr valign=top><td>\n";
echo " // the current BOINC VBox doesn't work on Win 10
<table cellpadding=10><tr valign=top><td class=button_green> // remove this when we make a new release
<a href=\"$vbox_url\"><font size=5em><u>" //
.tra("Download BOINC + VirtualBox") if (!strstr($client_info, "Windows NT 10")) {
."</u></font></a> echo "
<br>" <table cellpadding=10><tr valign=top><td class=button_green>
// "for %s" identifies the operating system, e.g. "for Windows" <a href=\"$vbox_url\"><font size=5em><u>"
.sprintf(tra("for %s"), $long_name) .tra("Download BOINC + VirtualBox")
." ($vbox_size MB)" ."</u></font></a>
."<br><span class=note>" <br>"
.sprintf(tra("BOINC %s"), $num) // "for %s" identifies the operating system, e.g. "for Windows"
.", " .sprintf(tra("for %s"), $long_name)
.sprintf(tra("VirtualBox %s"), $vbox_version) ." ($vbox_size MB)"
."</span></td></tr> ."<br><span class=note>"
</table> .sprintf(tra("BOINC %s"), $num)
"; .", "
.sprintf(tra("VirtualBox %s"), $vbox_version)
."</span></td></tr>
</table>
";
}
echo "</td><td>\n"; echo "</td><td>\n";
} }
echo " echo "