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