From bb9732b206da59b62d30d4af729bbc761658538b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 14 Jun 2017 22:32:45 -0700 Subject: [PATCH] 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 --- doc/download.php | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/doc/download.php b/doc/download.php index a9b168a9fe..61deb3214b 100644 --- a/doc/download.php +++ b/doc/download.php @@ -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 " "; + echo tra("We recommend that you also install %1VirtualBox%2, so your computer can work on science projects that require it.", "", ""); + echo " "; echo tra("Learn more about VirtualBox."); echo ""; echo "
\n"; - echo " - -
- " - .tra("Download BOINC + VirtualBox") - ." -
" - // "for %s" identifies the operating system, e.g. "for Windows" - .sprintf(tra("for %s"), $long_name) - ." ($vbox_size MB)" - ."
" - .sprintf(tra("BOINC %s"), $num) - .", " - .sprintf(tra("VirtualBox %s"), $vbox_version) - ."
- "; + // 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 " + +
+ " + .tra("Download BOINC + VirtualBox") + ." +
" + // "for %s" identifies the operating system, e.g. "for Windows" + .sprintf(tra("for %s"), $long_name) + ." ($vbox_size MB)" + ."
" + .sprintf(tra("BOINC %s"), $num) + .", " + .sprintf(tra("VirtualBox %s"), $vbox_version) + ."
+ "; + } echo "
\n"; } echo "