Commit Graph

805 Commits

Author SHA1 Message Date
Bernd Machenschalk 3529d9483c web: ops: script to add a user account 2016-07-20 12:15:51 +02:00
Bernd Machenschalk 417fff7a50 web: ops: cancel_workunits.php: correctly close '</form>' 2016-07-20 12:15:14 +02:00
David Anderson 4d3ac8af57 ops: option for creating boinc-wide team w/o creating account 2016-06-29 11:32:12 -07:00
David Anderson d2e822091b Merge branch 'master' of github.com:BOINC/boinc 2016-04-05 12:14:04 -07:00
David Anderson 5cfd1bd59e add XML header in team export 2016-04-05 12:11:59 -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
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
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
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 1fd5978270 add mod_time field to team table (for Drupal team import; not sure why) 2016-01-27 14:56:31 -08: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 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
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 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
Rytis Slatkevičius 9a9986006f Ops: drop count operation from a loop 2015-09-03 09:37:22 +03:00
David Anderson 3d50f6b501 Merge branch 'master' of github.com:BOINC/boinc 2015-08-31 12:30:18 -07:00
David Anderson 84d7391220 admin: add --id option to delete_spammers.php (to delete a single user) 2015-08-31 11:49:30 -07:00
Rytis Slatkevičius ac27765ce0 Fix typos 2015-08-28 10:45:10 +03:00
Oliver Bock 1c1bcb92d5 admin web: retain state of "Show deprecated app versions" 2015-08-11 12:23:17 +02:00
Oliver Bock a84ba8e1d0 admin web: on update anchor at current app version 2015-08-11 12:23:04 +02:00
David Anderson 776e6fec64 web: if using HTTPS, use it also for gravatar avatars (from Janus).
Include a function gravatar_update() in db_update.php to fix existing avatar URLs
2015-07-24 14:09:11 -07:00
David Anderson 3e6ae6f48d web: fix "stay logged in" when logging in with authenticator; from Janus
Oddly enough, I couldn't repro this on Chrome or Firefox;
I remained logged in after quit/restart browser,
even though the cookie said it was for this browsing session only.
2015-07-24 13:58:38 -07:00
David Anderson e2d57dc350 web: make team types translatable; fix warning in team import 2015-07-23 23:09:54 -07:00
David Anderson 8cd8c8e7ee server software: handle 64-bit database IDs
The SETI@home result table is about to run out of 32-bit IDs,
so we need to move to 64-bit result IDs.
This will happen to the workunit table at some point too.

I changed the server C++ code to use the "long" type for all DB IDs
(and to use appropriate conversion codes like %lu).
"long" is 64 bit on 64-bit machines.
For uniformity I did this for all tables,
even ones (like app) that will never get big.

I chose NOT to change the DB schema for now.
The new code will work with 32-bit ID fields in the DB.
As projects approach the 32-bit limit on a table they can change
its ID field, and fields that reference this table, to BIGINT.
This is likely to happen only on the result and workunit tables.
I put functions in html/ops/db_update.php
to change the IDs of these tables.
2015-07-23 10:11:08 -07:00
David Anderson 8c53ae493a size_census.php: include only active hosts (expavg_credit>10) in census. 2015-07-10 16:11:16 -07:00
Rom Walton 37d8c0b4e1 HTML: Make sure BOINC-Project-Generic.pot contains comments. 2015-06-24 15:42:30 -04:00
David Anderson d48c48c530 admin web: filter deprecated apps in showing # of shmem slots 2015-06-18 15:08:09 -07:00
David Anderson 452fe458a7 size_census.php: avoid divide by zero 2015-04-28 00:32:01 -07:00
David Anderson 1c6267f2f1 scheduler: fix possible bug if use assigned jobs with FCGI scheduler
Need to end the enumeration.
2015-04-27 10:10:32 -07:00
David Anderson f55f64eec3 admin web: fix to dbinfo.php 2015-04-18 09:16:34 -07:00
David Anderson 7a00aa4976 web: changes to support MySQL strict mode
In "strict mode", inserts fail if they don't supply values
for columns with no default defined in the schema
(in non-strict mode, 0 and '' are implicit defaults).
Starting with MySQL version 5.6, strict mode is the default.
This breaks some of the BOINC web code,
which does inserts without giving values to some columns.

There are two ways to solve this:

1) change the schema to give defaults everywhere
2) change the PHP code to supply values for more columns.

I'm using 1) in some cases and 2) in others.
This commit fixes some of the errors; there are others.
2015-04-16 00:01:06 -07:00
David Anderson b6e60311ea web: add "Help desk expert" user flag
This doesn't give any moderator rights; it's for display only.

Also, make the special-user strings translatable.
2015-04-04 14:35:18 -07:00
David Anderson 226aac88c5 web: error summary page tweaks 2015-04-03 11:52:03 -07:00
David Anderson 97927e114b web: add error summary script 2015-04-01 00:12:21 -07:00
David Anderson 3c2f31fece comment tweaks 2015-03-25 16:45:36 -07:00
David Anderson 945a0f9f7a admin web: fixes to cancel_workunits.php 2015-02-13 10:13:47 -08:00
David Anderson 4b918967b8 admin web: appearance tweaks 2015-01-27 13:28:51 -08:00
David Anderson 80d792265b admin web: appearance tweaks 2015-01-27 13:03:23 -08:00
David Anderson fa7ded6751 admin web: typo fix 2015-01-26 10:14:57 -08:00
David Anderson 45f820b30b admin web: add more flexible interface for canceling jobs (from Bernd) 2015-01-23 11:13:44 -08:00
David Anderson 037f1b3eb2 web: fix PHP errors on empty team search; when delete spam team, delete user too 2015-01-09 10:54:05 -08:00
David Anderson c9d67c0a99 web: server status fix
Change the way we see if a web server is running on a host.
Fetch http://host, and check for 2xx or 4xx status.
With this change, new server_status.php works on SETI@home.
2014-12-01 12:51:12 -08:00
David Anderson dc2ecf6837 web: server status fix
remote_server_status.php (script for seeing if remote daemons are running)
did this by ps -C command,
and seeing if the last line of the output contained the command.
This didn't work for SETI@home, because the daemons are symbolic links in bin/.
The command that ps knows about is the file name after resolving the link.
This generally doesn't contain the original command name,
so it would look like no remote daemons are running.

Fix: look up the PID (in pid_host/xxx.pid) and use "ps PID".
This also correctly distinguishes between daemons
that use the same program on the same host.
2014-12-01 12:16:31 -08:00