Commit Graph

3720 Commits

Author SHA1 Message Date
David Anderson 34dd5f5868 user web: don't double-escape profile text 2016-04-08 13:22:22 -07:00
David Anderson d2e822091b Merge branch 'master' of github.com:BOINC/boinc 2016-04-05 12:14:04 -07:00
David Anderson 46c3753492 BOINC web site tweaks 2016-04-05 12:13:43 -07:00
David Anderson 5cfd1bd59e add XML header in team export 2016-04-05 12:11:59 -07:00
David Anderson 39a57c07eb PHP code: avoid using a global var 2016-04-05 12:10:40 -07:00
Christian Beer 644c567e32 Ops: improved version of pass_percentage_by_platform
* Selection is by app_version_num isntead of app_version_id
* Sorting does not change between most recent and all app versions
* Main query ignores not needed and timed out results
* Displays and links various metrics
* Uses the platfom name from the platform table
* Always shows anonymous platform applications
2016-03-24 14:21:19 +01:00
Christian Beer 0040bd9817 Ops: enhance errorwus.php again
Added more filters and moved logic from PHP to the DB. This results in a smaller memory footprint of the script but stresses the database a little more for big projects.
2016-03-18 10:51:09 +01:00
Christian Beer 3b6df98c44 Ops: update cancel_workunits scripts to use db layer
Also uses the wrapper functions for variables supplied by post and get requests.
2016-03-17 14:37:59 +01:00
Oliver Bock fd3e17b04c Improve DB queries
* WHERE IN clauses perform really bad for long lists/sub-queries
* Using INNER JOINs to speed up the queries
* Down from a couple of minutes to less than a second :-)
2016-03-17 13:45:03 +01:00
Christian Beer 407a2fce47 Ops: combine statements for better performance
No need to change the same rows in two statements.
2016-03-17 13:45:03 +01:00
Christian Beer ae5b283e1a Ops: use db layer in db_ops.inc 2016-03-17 12:45:34 +01:00
Christian Beer f8250782f1 Ops: cancel workunits directly from errorwus.php
Also added a cache refresh when going back from cancel_workunits_action.php so the freshly canceled workunits are gone.
2016-03-15 18:03:42 +01:00
Christian Beer fc6cd28172 Ops: restructured errorwus.php to use data cache
Also added a checkbox to hide already canceled workunits.
2016-03-15 17:27:54 +01:00
Christian Beer 9b48d3e526 Ops: show more information on WUs with errors
Now uses the DB interface but still uses the old cache mechanism.
2016-03-15 15:25:06 +01:00
funkydude 71831ee639 Expand usage of HTTPS and fix a few URLs 2016-03-08 20:04:28 +00:00
UweBeckert 759b6b3b4a remove spaces in pid_file
$d-pid_file has spaces in front of it and at the end, so the composed path is wrong.
Therefore trim it.
2016-02-28 22:57:04 +01:00
Christian Beer 1d1b2fdc61 Web: fix CPU performance list
Since it is a read only page, use the replica if available. Fix the query that gets the data to correctly exclude old hosts.
2016-02-24 12:11:23 +01:00
Christian Beer d806276335 Allow admins to post even if not enough RAC
[skip-ci]
2016-02-22 17:11:58 +01:00
David Anderson d1cf081eb8 Add --profiles_strict option to delete_spammers.php
This deletes users who have a profile and no forum posts.
Intended for use only on the BOINC message boards.
2016-02-20 10:16:59 -08:00
Christian Beer 31134df412 Web: remove non working email
fixes #1494
2016-02-20 15:59:26 +01:00
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