diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 54b363d9e4a..44975eed649 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -150,8 +150,7 @@ function show_forum_header($user) { '; echo sprintf( - '
', - 'btn btn-sm', + '
', button_style(), tra("Search for words in forum messages"), tra("Search forums") diff --git a/html/inc/web_rpc_api.inc b/html/inc/web_rpc_api.inc index 6dca1b98959..9d2845d5928 100644 --- a/html/inc/web_rpc_api.inc +++ b/html/inc/web_rpc_api.inc @@ -101,6 +101,8 @@ function create_account( // Get info needed to show Download buttons // that auto-attach to a particular project or account manager. // +// I DON'T THINK THIS IS USED - OK TO DELETE +// // args: // $project_url: the URL of the project or account manager // $rpc_key: a security token supplied by the above @@ -127,7 +129,7 @@ function download_software($project_url, $rpc_key, $auth, $user_agent) { return array($r, 0, null); } -if (1) { +if (0) { // Example usage of download_software(). // Show a download button, which when clicked will download a diff --git a/html/user/download_software.php b/html/user/download_software.php index acfd372e902..05b11f918c9 100644 --- a/html/user/download_software.php +++ b/html/user/download_software.php @@ -19,7 +19,7 @@ // Page for downloading the BOINC client, with support for autoattach: // https://github.com/BOINC/boinc/wiki/SimpleAttach // Note: to use autoattach: -// 1) You need to have the client versions file +// 1) You need to have the latest client versions file // run html/ops/get_versions.php // 2) Put your project ID (ask DPA if you don't have one) // in config.xml as x @@ -27,26 +27,17 @@ // There's a logged-in user. // // Autoattach case: if project has an ID and client is Win or Mac: -// - find latest version for that platform (regular and vbox) +// - find latest version for that platform // - Create a login token. // - Show download button(s) // The download will be via concierge, using the login token. // Otherwise: // - show link to download page on BOINC web site, // and instructions for what to do after that. -// -// VirtualBox: -// config.xml entries: -// This project requires VBox -// This project can use VBox -// -// Windows has combined BOINC/VBox installers. -// For other platforms, direct user to VBox download page -// before installing BOINC -// // Can also be called as a web RPC; // see https://github.com/BOINC/boinc/wiki/WebRpc#download +// NOT USED - OK TO REMOVE // rpc this says it's an RPC // user_agent web browser info // authenticator the account to link to @@ -58,8 +49,6 @@ require_once("../inc/util.inc"); require_once("../inc/account.inc"); -define("VBOX_DOWNLOAD_URL", "https://www.virtualbox.org/wiki/Downloads"); - // take the user agent string reported by web browser, // and return best guess for platform // @@ -129,93 +118,30 @@ function get_version($user_agent, $dev) { return null; } -function download_button($v, $project_id, $token, $user, $green) { +function download_button($v, $project_id, $token, $user) { return sprintf( '
- +
BOINC %s
', $project_id, $token, $user->id, (string)$v->filename, - $green?"btn-success":"btn-info", + button_style('green', 14), (string)$v->platform, (string)$v->size_mb, (string)$v->version_num ); } -function download_button_vbox($v, $project_id, $token, $user) { - // if no vbox version exists for platform, don't show vbox button - if(!$v->vbox_filename) { - return; - } - return sprintf( - '
- - - - -