Commit Graph

3700 Commits

Author SHA1 Message Date
David Anderson e658092255 Add ops script for creating account and team
This is for my own use in BOINC-wide teams.
It must work even if account/team creation are disabled
(as they are in the BOINC-wide teams site).
To do this, I moved the <disable_team_creation> check out of make_team()
and moved it to the existing places that call make_team().
The logic now matches that of make_user().
2016-02-10 14:51:34 -08:00
David Anderson 302cc2ddb7 Merge branch 'master' of github.com:BOINC/boinc 2016-02-09 22:01:40 -08:00
David Anderson 864bdac235 Merge pull request #1445 from BOINC/recaptcha-update
Web: update the reCAPTCHA PHP client library to 1.1.2
2016-02-09 22:01:30 -08:00
David Anderson b4722fdccd web: show UTF8 chars in result stderr_out correctly (from Marius Millea) 2016-02-03 02:35:41 -08:00
Greg Childers f5c252ac83 Add closing td tag on team members list 2016-01-28 18:54:44 -08:00
David Anderson 1fd5978270 add mod_time field to team table (for Drupal team import; not sure why) 2016-01-27 14:56:31 -08:00
Oliver Bock 74b33e4dfc HTML: Make platforms accessible to Drupal by declaring it as global 2016-01-13 15:55:39 +01:00
David Anderson 85ab367894 Merge pull request #1464 from brevilo/fix-regression-d4dec27
Fix regression in d4dec27
2016-01-11 20:00:31 -08:00
Christian Beer fd41262f4f Web: fix last resort UOTD selection query
The query was failing with the error "Every derived table must have its own alias" thus not selecting a new user of the day.
2016-01-11 14:20:45 +01:00
Oliver Bock 62d73e10e3 Fix regression in d4dec27
* Added still required code that was removed without apparent reason
* If in doubt about a code's purpose, please check the history first
* Original commit: 8be519a
2016-01-11 09:48:07 +01:00
Juha Sointusalo 4c6a530d5e ops: show large numbers in human readable format 2016-01-05 21:10:19 +02:00
Juha Sointusalo 263e9ac701 web: remove debug output from account pages 2016-01-05 21:08:38 +02:00
David Anderson 3052111d02 web: don't show errors if get-project RPC to boinc.netsoft-online.com fails 2015-12-29 12:42:46 -08:00
David Anderson d32e42397c web: use HTTPS for gravatar avatars 2015-12-29 12:19:19 -08:00
David Anderson 9fffea505f web: remote "@" before mysql_connect calls 2015-12-23 17:18:10 -08:00
Christian Beer 2032288b29 Web: fix get_other_projects() RPC
There can be intermittent "simplexml_load_file(): I/O warning : failed to load external entity" errors when using simplexml_load_file(). According to http://stackoverflow.com/questions/20534866 the solution is to use file_get_contents() first. This seems to work in our case too.
2015-12-18 11:08:19 +01:00
Christian Beer 2f71577973 Merge branch 'master' into recaptcha-update 2015-12-16 09:53:11 +01:00
Christian Beer 1ca5f51cc7 Merge pull request #1446 from BOINC/get_other_projects_by_curl
Web: use curl in get_other_projects() if fopen() is disallowed
2015-12-16 09:50:59 +01:00
Christian Beer de3b547754 Merge pull request #1447 from BOINC/improve_uotd
Web: Improve uotd selection
2015-12-16 09:49:56 +01:00
Christian Beer 3991e7ea2a Merge pull request #1448 from BOINC/replica_fallback_mode
Web: introduce fallback_mode when using a replica DB
2015-12-16 09:47:56 +01:00
Christian Beer ca61881a92 Web: improve the reselection of old UOTD
This will pick a more random UOTD if no new profiles are available and old ones are reselected.
2015-12-14 14:27:02 +01:00
Christian Beer 7e3d0802af Web: fix selection of UOTD
The default for uotd_time in the profile table is NULL but new profiles created after commit 6543928 have uotd_time=0. This means they are not eligible for UOTD because the default candidate queries only check if uotd_time is null. This fixes that and considers NULL and 0 as 'profile has not been UOTD but can be a candidate'.
2015-12-14 11:29:48 +01:00
Christian Beer 9b8c291a87 Merge branch 'master' into improve_uotd 2015-12-14 11:17:02 +01:00
David Anderson 6741bd0ced web: message tweak 2015-12-12 20:55:02 -08:00
Christian Beer 8c49d7cd88 Web: new utility function to retrieve contents of an url
The same as file_get_contents() but uses curl to also work if allow_url_fopen is set to false.
2015-12-09 17:00:50 +01:00
Christian Beer 67fa907078 Web (ops): show additional information on ops pages 2015-12-09 14:54:18 +01:00
Christian Beer 4fd8f3699b Web: fix incomplete change to BoincProfile::delete() in 9440c29
The new function was not used, so it was not tested properly.
2015-12-09 11:22:29 +01:00
Christian Beer 3481806b6d Web: introduce fallback_mode when using a replica DB
Specify a $fallback_mode that is used for read-only DB connections:
0: default, use db_user if no replica_db_user is specified,
   first try replica_db_host (if specified) then db_host
1: only use replica_db_user, first try replica_db_host then db_host
2: only use replica_db_user, only try replica_db_host
can be set projectwide using <replica_fallback_mode> in config.xml
2015-12-09 11:07:50 +01:00
Christian Beer 9440c29781 Web: fix BoincProfile::delete() to use object attributes
Now it is consistent with other member functions in the DB layer.
2015-12-09 08:08:36 +01:00
Christian Beer f8c531599c Web: more restrictive get_current_uotd()
This will prevent the rare case where a project has not yet chosen a UOTD but there are profiles in the DB (a random profile would be shown).
2015-12-07 16:32:15 +01:00
Christian Beer 115cfd2054 Web: improve user of the day selection
UOTD selection now uses the DB layer and outputs the different stages of candidate selection so they end up in the logfile. Selecting a new UOTD can now be enforced (so it always happens at the same time or the current UOTD's profile is not approved by the project).
2015-12-07 16:17:48 +01:00
Christian Beer 186f0d8f53 Web: add missing functions to DB layer 2015-12-07 15:43:13 +01:00
David Anderson 65ba7f9990 client: close GPU libraries after we're done with them 2015-12-03 13:02:09 -08:00
Christian Beer dbc5a14894 Web: disable some statistics links that are not working anymore
The KWSN statistics site says that the service is retired. The other pages are not accessible or show other non-BOINC related content. allprojectstats.com is not updated so I disabled it for the time being.
2015-12-03 08:34:47 +01:00
Christian Beer ecab174db8 Web: use curl in get_other_projects() if fopen() is disallowed
The simplexml_load_file() call fails if allow_url_fopen is set to false and does not retrieve the statistics for the user. Curl is assumed to be available instead, if not, no information is shown to the user.
2015-12-03 07:45:23 +01:00
Oliver Bock 0051de7db9 Fix case typo 2015-12-02 15:52:27 +01:00
Christian Beer bf2820ee90 Merge pull request #1444 from brevilo/fix_pass_percentage_by_platform
Web (ops): Fix pass percentage by platform
2015-12-02 14:43:21 +01:00
Oliver Bock cd313414ce New DB API doesn't need this anymore 2015-12-02 13:59:55 +01:00
Oliver Bock f9a9119002 Added missing tag 2015-12-02 13:59:46 +01:00
Oliver Bock b51e7ca2e2 Migrated to new BOINC DB API 2015-12-02 13:59:31 +01:00
Christian Beer f8a1762ea2 Web: use master_url instead of URL_BASE in example
The URL_BASE in project.inc may not be the same as the <master_url> in config.xml so the example would be wrong if those differ.
2015-12-02 13:56:57 +01:00
David Anderson 9a4a26e898 web: fix the mechanism for forwarding to original page after login. 2015-12-01 23:49:31 -08:00
Christian Beer ea7df2637e Web: use https urls everywhere
Modern Browser complain if there are non-https elements in https websites. This makes sure that if the user visits via https all elements of the page are also retrieved using SSL. Furthermore it uses https urls in emails that are send to the user, if SECURE_URL_BASE is set in project/project.inc.
The only remaining places where URL_BASE is used is when it is used as master_url where it is important that it is in sync with what the scheduler uses.
2015-11-30 09:36:29 +01:00
David Anderson bf24331c05 Web: message tweak 2015-11-25 22:47:40 -08:00
David Anderson d4dec27a68 web: include platform name in app version string 2015-11-20 12:25:40 -08:00
Christian Beer b4665845d0 Web: update the reCAPTCHA PHP client library to 1.1.2
This version allows the use of alternative RequestMethods in case get_file_contents() is disabled for security reasons. Currently it uses fsockopen() but it can also use php-curl. Include inc/recaptchalib.php into the file where the reCaptcha is shown or validated. The function boinc_recaptcha_isValidated() is a convenient wrapper that can be updated for future versions or changes of the RequestMethod used.
2015-11-19 16:53:48 +01:00
David Anderson 1dcbac0bf1 web: change "Aborted by user" to "Aborted" 2015-11-18 14:34:33 -08:00
Christian Beer 13a002cb8b Web: fix mysqli DB connection initialization
The mysqli class constructor returns an object even if the connection failed. The only way to find out about a connection failure is to call mysqli_connect_error() after the mysqli object was created.
See: http://php.net/manual/en/mysqli.construct.php#refsect1-mysqli.construct-examples
2015-11-18 10:44:46 +01:00
Rom Walton 0ad62aad64 Moved source code into a separate repo.
See: https://github.com/BOINC/boinc-leiden-queue
2015-11-14 22:49:54 -05:00
Rom Walton 49b671f523 Moved source code into a separate repo.
See: https://github.com/BOINC/boinc-bittorrent
2015-11-14 22:49:04 -05:00