Commit Graph

2137 Commits

Author SHA1 Message Date
David Anderson 684b55badf Web: add functions for fetching and displaying RSS feeds 2021-04-06 12:40:45 -07:00
David Anderson 43e277c82a Web RPC: add an RPC that lets "front-end" web sites show Download buttons that auto-attach to back-end BOINC projects or account managers. 2021-01-22 00:47:02 -08:00
David Anderson 10fd6db22f web: remove 30-day limit in forum search function
The explanation for an error code could be years old.
2020-12-02 16:10:25 -08:00
Matt c19add3c0a Merge branch 'master' of https://github.com/mikaey/boinc 2020-11-10 11:39:29 -06:00
Matt 5c9acc064c Don't call magic_quotes_gpc on newer versions of PHP 2020-11-10 11:37:17 -06:00
Kevin Reed 3cf5fb5e54
Merge pull request #4052 from BOINC/dpa_web2
web: minor tweaks
2020-10-10 09:40:39 -05:00
David Anderson 01fc42f44a web: minor tweaks
- allow specification of panel body class
- say "Language: default" in language selector
2020-10-09 12:37:46 -07:00
David Anderson 7d68422e94 web: in "all projects" certificate, show message if no projects
... rather than a certificate with PHP warnings at the top
2020-10-07 16:35:12 -07:00
David Anderson e725f9bd62 manage_privileges, badge_assign.php: fix DB inserts
For newer MySQLs, need to specify values for all fields
2020-10-01 15:08:10 -07:00
Rytis Slatkevičius 0d1b425959
Add a project-customizable hook to result pages 2020-09-21 13:11:33 +03:00
David Anderson 62f25e4016 Web: make some strings translatable 2020-08-18 23:57:42 -07:00
David Anderson 18dcd34b74
Merge pull request #3947 from BOINC/dpa_submit_priority
Add priority options to remote job submission
2020-07-30 20:19:40 -07:00
David Anderson aa3163c41f Add keyword 2020-07-30 01:29:34 -07:00
David Anderson 3e903d0e36 Remote job submission was always using allocation-based prioritization.
This is not necessarily the right thing.
For example, nanoHUB submits batches of jobs that are mixtures
of speculative and user-submitted;
these simply need to be given low and high priorities.

The way things work now:
- if you want allocation-based prioritization,
    set the "allocation_priority" flag in the request object
    (Python or PHP API)
- or set the "priority" field in the request object;
    that sets the priority of all the jobs in the batch
- or set the "priority" field of jobs in the batch.

Updated wiki docs accordingly.

Also fixed a bug in the test script
(note to self: adding an object to an array adds a reference, not a copy).
2020-07-24 00:36:12 -07:00
David Anderson 87e2c5d272
Merge pull request #3926 from BOINC/dpa_user_inc
web: don't show error messages on user page if no other projects yet
2020-07-23 21:54:18 -07:00
David Anderson aa0255673c Add keywords for games and COVID 2020-07-23 00:32:53 -07:00
David Anderson b77b474f86 web: don't show error messages on user page if no other projects yet 2020-07-17 01:09:19 -07:00
David Anderson eacab4ee92 Web: if define('DARK_MODE', true) in project.inc, support dark mode
See https://web.dev/prefers-color-scheme/
Add a bootstrap theme (Darkly) for dark mode.
2020-05-25 00:37:20 -07:00
David Anderson f69d38f415 Web: fix some PHP warnings
There were lots of PHP warnings in the apache error log.
Fix most of these.
2020-04-09 13:54:16 -07:00
Kevin Reed a05f16a43b
Merge pull request #3553 from BOINC/dpa_user_count
web: fix warning when user has no projects yet
2020-04-06 16:04:31 -05:00
David Anderson a775719037 web: fix warning when user has no projects yet 2020-04-03 11:32:06 -07:00
David Anderson 110650a8fd web: if fail to connect to DB, say so rather than "project stopped". 2020-02-24 07:39:46 +01:00
David Anderson c51fa5d221 Web: fix ReCaptcha problem
I have no idea why, but out of nowhere ReCaptcha stopped working on both SU and S@h.
Changing an arg to the recaptcha constructor
(from a Stack Overflow entry from 2015) fixed the problem.
2020-02-12 10:15:12 +01:00
David Anderson 81b054b4f6 Remote job submission: delete output template file on retire batch 2019-12-21 15:46:57 -08:00
David Anderson 83fc04e248 remote job submission: add an API function for setting RPC timeout 2019-11-19 16:00:21 +01:00
David Anderson b7e12b2431 Web: fix bug in output of [list] BBcode 2019-08-31 14:18:06 -07:00
Rytis Slatkevičius c1f6f0b420 Fix typo, show "empty" as a keyword string if none set 2019-08-29 17:58:27 +03:00
Rytis Slatkevičius 8479a418f1 Add missing fields to ops DB browser.
Fixes #2529
2019-08-23 22:11:09 +03:00
Rytis Slatkevičius 1833107b84
Remove boincsynergy.com from the stats site list
According to archive.org, the site is down at least since February 2019, so removing it from the list. Fixes #3244.
2019-08-12 16:50:58 +03:00
David Anderson 4287aeb8cd job submission: add ability to view mem/disk usage stats for a batch.
It's useful to see the stats (mean, max) of memory and disk usage,
e.g. so that you can set the appropriate bounds for future jobs.
In the case of universal VM apps (e.g. nanoHUB@home)
the natural place to put this is at the batch level;
jobs in a a batch use the same tool.

Also: add a general function for printing sizes in MB and GB,
and move a function from util.inc to the appropriate file.
2019-06-26 16:30:20 -07:00
Kevin Reed 8993d2df76 web - fix if/else formatting in termsofuse code 2019-06-20 10:10:54 -05:00
Kevin Reed 3670e7cd8b
Merge pull request #3058 from BOINC/dpa_email
web: make it possible to send HTML email
2019-05-13 09:32:09 -05:00
David Anderson 83f7abd685 fix typo (.= not =) 2019-05-12 23:39:58 -07:00
Kevin Reed 8fbd4bb6b4
Merge branch 'master' into PublicKeyCrypto 2019-05-10 14:18:14 -05:00
grcgrc 8d12ac9a66 Requested changes to PR 2965
* Less technical error messages, reduced code duplication, changed makeproject to generate keys, added op php file for generating keypairs, changed the button styling, changed input to textarea.
* Split the ops scripts into separate check and generate files, reduced code duplication by creating a new inc file to define key variables.
2019-05-08 17:20:24 +01:00
David Anderson 515d407e6e web: if view empty thread, mark it as read 2019-05-06 16:48:46 -07:00
lfield 6fc464af73
Merge pull request #3075 from BOINC/dpa_submit8
remote job submission: fix race condition
2019-04-17 09:36:23 +02:00
David Anderson 80211ec5d0 server: when send HTML email, use charset=UTF-8 2019-04-16 15:59:51 -07:00
lfield ffe6739cf1
Merge pull request #3080 from BOINC/dpa_autoattach4
web: Fix auto-attach process for VBox projects
2019-04-11 09:38:53 +02:00
David Anderson 4a3eb03b26 web: use signup.php instead of deprecated create_account_form.php 2019-04-05 20:34:55 -07:00
David Anderson 5849fd5af4 fix errors in keywords.inc 2019-03-30 19:23:55 -07:00
David Anderson 4153db10df remote job submission: fix race condition
Scenario:
- a submit_batch() creates a batch in INIT state
    and starts creating jobs
- while it's in progress, a query_batches() RPC enumerates batches
- while the query_batches() is in progress,
    the submit_batch() finishes and changes the state to IN_PROGRESS
- the query_batches() finishes and rewrites the batch in INIT state

Solution: query_batches() doesn't update batches in INIT state
2019-03-26 01:14:37 -07:00
lfield fbc809b0ed
Merge pull request #3011 from BOINC/dpa_submit7
Remote job submission: add logging
2019-03-21 11:45:33 +01:00
David Anderson 24b7234204 remote job submission: logging improvements
Old: the remote job submission log had a hardwired name,
it was being put in possibly the wrong directory,
and disabling logging required editing a PHP file.

New: logging is enabled by putting
<remote_submit_log>filename</remote_submit_log>
in your config.xml; the file is put in the <log_dir> directory.

Also: you can log the XML request messages
(useful mainly for debugging) by putting
<remote_submit_request_log>filename</remote_submit_request_log>
in config.xml

Documented both of these in a new file:
https://boinc.berkeley.edu/trac/wiki/RemoteLogs
2019-03-20 14:29:50 -07:00
Vitalii Koshura a6644f9c8d
Merge pull request #3049 from brevilo/ob_enforce_rpc_consent
[web][android][lib] Add conditional terms of use consent requirement to create_account RPC
2019-03-18 16:52:14 +01:00
David Anderson e65a6b1eb0
Merge pull request #2971 from BOINC/cb_fix_deprecated_php_stuff
Web: fix deprecated php stuff
2019-03-18 02:23:10 -07:00
David Anderson 18dc48ac2a HTML email: don't specify CSS in <body> tag 2019-03-14 12:10:59 -07:00
Kevin Reed 64b78dfbc0
Merge pull request #3007 from BOINC/lfield-patch-1
Reverting PR #2794
2019-03-14 11:41:14 -05:00
David Anderson a6dd4916fb web: make it possible to send HTML email 2019-03-13 14:49:45 -07:00
Oliver Behnke 0909d34582 [web][android][lib] Add conditional terms of use consent requirement to create_account RPC
* Added a new config.xml setting "account_creation_rpc_require_consent" (default: disabled)
* Added condition to create_account RPC to return an error if consent details aren't given but required
* Defined a dedicated error number and default message (for C and Android use)
2019-03-11 11:36:41 +01:00