Commit Graph

3944 Commits

Author SHA1 Message Date
David Anderson e445541f4b web: allow parts of web functionality to be disabled
See issue #2051
2017-08-20 00:21:33 -07:00
David Anderson c0de76d4be Remote job submission: support app_version_num argument
Change the submit_batch RPC, and the various bindings of it (PHP, Python, C++)
to support an app_version_num arg,
specifying which app version number should be used to process the jobs in the batch.
2017-08-17 23:55:15 -07:00
David Anderson 36cfaca6c5 Merge pull request #2032 from BOINC/buttons
Improve button appearance in prefs page
2017-08-15 23:29:25 -07:00
David Anderson 431abc13ab Improve button appearance in prefs page
- for "add prefs for home" etc. use buttons instead of link
- use green for default button
- use yellow for risky buttons (like "reset prefs")
2017-08-14 12:35:48 -07:00
David Anderson 1be1447ce0 back end: add feature for assigning WUs to a particular version num 2017-08-09 11:56:12 -07:00
Shawn Kwang 6ed586bbae Fixed bug where assignment '=' was used instead of comparison '=='.
Fixes #2011.

https://github.com/BOINC/boinc/issues/2011
2017-08-04 11:52:33 -05:00
David Anderson 2daf37ebe6 keyword list: add Australia 2017-08-01 10:25:18 -07:00
David Anderson 20bcd33093 get_project_config.php: include project keyword list if present 2017-08-01 10:24:19 -07:00
David Anderson 2d987a7ee0 keyword list: add Australia 2017-08-01 10:22:38 -07:00
David Anderson 1901a23e86 web: if workunit has keywords, show them on WU detail page
add initial version of keyword hierarchy
2017-07-31 20:58:28 -07:00
David Anderson 3f91d42652 BOINC web: some bootstrap conversion 2017-07-31 20:56:40 -07:00
marius dfecb88bd3 skip SFS check for obviously private IP addresses 2017-07-26 16:14:32 +02:00
David Anderson 20d07be2b8 back end: add keyword-based component to job scheduling score.
- add DB field for storing job keywords: workunit.keywords
    add this to various DB parse/write functions
- add --keywords option to create_work for specifying job keywords
- add <keyword_sched> option in config.xml for enabling keyword score
    (it's disabled by default).
    If set, increment score for "yes" keyword matches,
    and disallow jobs with "no" matches
- in scheduler, add array job_keywords_array for parsed versions
    of job keywords (vector<int>)

also:
- use symbols instead of numbers for slow_check() return values
- parse unused fields in req message to remove unparsed-XML warnings
2017-07-22 00:48:38 -07:00
David Anderson 7b6479f437 Web: add option in gpu_desc() to show shorter version of GPU string 2017-07-22 00:13:08 -07:00
David Anderson 1c78ad0eba - fix bug in delete_spammers.php script 2017-07-17 10:55:41 -07:00
David Anderson 5add5fda1d client: update keyword handling
new keyword model:
- keywords as identified by integer IDs
- instead of being treated as opaque data,
    the keyword XML is now parsed by the client.

This is a first step: pass keywords from AM to client to scheduler,
so that they can be used in job filtering.
Displaying keywords in the client will come later.
2017-07-15 19:05:23 -07:00
David Anderson 2cef5954d0 Web RPC interface: comment out debugging stuff 2017-07-13 16:26:40 -07:00
David Anderson bc536494dd Web: small changes
- make the filename of user home page configurable
- make some strings translatable
2017-07-13 01:17:21 -07:00
David Anderson ac552ea8cf web: clean up some translatable strings.
Principle: translatable strings should not contain HTML tags.

moderation.php was verbose, and it linked to from the wrong place:
its target audience is forum readers, not writers.
2017-07-09 02:51:55 -07:00
David Anderson 85d3af117e Web: add optional arg to time_diff() for choosing resolution 2017-07-05 01:17:24 -07:00
Christian Beer 11a37bd1d0 Web: add extra space around placeholders
Our current translation system (Transifex) introduced a new editor feature which autodetects C-style placeholders in PO files. This wrongly detects our placeholders in the web code where a word immediately follows the digit. This leads to wrong translations if the placeholder is copied using this new transifex feature. The feature can not be globally disabled for our project. Instead every translator would need to use "raw" mode to disable it which is hard to communicate. Instead I added a space around problematic placeholders which is possing a smaller problem than wrong translations.
2017-07-04 13:13:01 +02:00
David Anderson 75d8bae2c5 web: add optional class param to row_heading() 2017-07-03 14:46:34 -07:00
David Anderson 620ba64c72 web: add rules for private messages (similar to forum rules) 2017-07-01 13:43:43 -07:00
David Anderson e76e339c64 web: fix error when user updates email addr
Also fix error that showed credit in non-computing projects
2017-06-26 13:48:38 -07:00
David Anderson 4093be9579 web: fix PHP warning in sending "report post" emails 2017-06-24 14:41:07 -07:00
David Anderson e712c7af9a web: code shuffle, no functional changes
separate user-related code into:
    user.php (web display of accounts)
    user_util.php (creating/deleting accounts)
2017-06-22 01:07:25 -07:00
David Anderson 415ebacbd1 web: encapsulate PHP
In bootstrap.inc there are some functions for creating forms.
They conceal Bootstrap (and HTML itself) from the caller.
I changed a couple of forms (edit user into and create account) to use this API.
There are many other forms that we could change as well.
This is how I'd like the PHP code to evolve:
encapsulate HTML in utility functions.
We have this for tables, forms, and header/footer.

Also finish the NO_COMPUTING changes.
2017-06-20 00:38:11 -07:00
David Anderson e9244a7844 web: use NO_COMPUTING constant rather than config.xml flag
We were using both.  Make it just one.
2017-06-16 22:44:24 -07:00
David Anderson 90f8a1d4b4 client/scheduler/db: store GPU count and peak FLOPS in DB host table
This lets a project easily see how many GPUs and how much GPU power it has
2017-06-13 22:35:17 -07:00
David Anderson 285ff99cde web: add "Preferences" items to Community, Computing, and Project menus 2017-06-06 15:31:59 -07:00
David Anderson 5afcdf0c3c Web: don't request postal code by default
We were asking for postal code (optional) on registration.
The purpose was to let projects study
the geographical distribution of their volunteers.
But AFAIK no one ever did this,
and some volunteers have said (understandably, I think)
that asking for postal code seems like an invasion of privacy.

So I conditioned the postal-code code on a boolean constant POSTAL_CODE.
If you put
define('POSTAL_CODE', true);
in your html/project/project.inc, you'll get the old behavior.
Otherwise users won't see postal-code related stuff any more.
2017-06-05 14:26:42 -07:00
David Anderson bf9f06d2ae remote job submission: show job as in progress only if an instance has been sent
fixes #1842
2017-05-25 20:54:39 -07:00
David Anderson b38bf1d983 stage_file and remote file management: fix bug with .md5 file mod time
In some cases of file staging (both remote and via stage_file)
we'd do the following:
1) create the .md5 file (in check_download_file())
2) move or copy the file into the download dir

This can result in the file having a later mod time than the .md5 file,
which causes process_input_template() to reject the .md5 file.

Solution: touch the .md5 file after the move or copy
2017-05-25 20:26:36 -07:00
David Anderson bed8265d29 remote job submission: return better error msg if file too large 2017-05-23 12:09:01 -07:00
David Anderson aba8af3bc0 admin web: fix a bug and security vulnerability
In the "ops" web page showing results, the credit link was wrong.

The page for grepping logs allowed people to run arbitrary shell commands.
Use escapeshellcmd() to prevent this.

However: the Ops interface lets you type in arbitrary SQL,
which lets bad guys do all sorts of things.
So you need to protect access to Ops very strongly.

TODO: fix all vulnerabilities in ops/.
Get rid of the DB browsing features; use phpmysqladmin.
2017-05-11 21:14:15 -07:00
David Anderson c730e78159 web: fix PHP warnings in report-post page 2017-05-10 19:39:23 -07:00
David Anderson 17dd7c68ff web: fix color problem on tables w/ links (from D. Kim)
In the default bootstrap file, links happen to be the same color
as "bg-primary" background (why??)
Use bd-default" instead, works OK and both light and dark
2017-05-10 01:35:49 -07:00
David Anderson e1617565da Merge branch 'master' of github.com:BOINC/boinc 2017-04-29 15:27:27 -07:00
David Anderson 7bf9e59981 web: show correct page when view hidden post 2017-04-29 15:27:00 -07:00
Christian Beer 086c8f8a2e Merge pull request #1805 from nikolasgianna/per_app_list_pagination
Added pagination and first level caching to per_app_list
2017-04-28 07:51:06 +02:00
Christian Beer 708e0f4cb8 Web: hide BOSSA link in non-BOSSA projects 2017-04-28 07:49:25 +02:00
Christian Beer 96109b6f1b Revert "Web: paginate user/team lists ordered by per-app credit"
This reverts commit ee3f8f1aa2.
2017-04-28 07:46:17 +02:00
nikolasgianna 0a835a00c1 Add CSS class changes from ee3f8f1 2017-04-24 11:56:12 +02:00
nikolasgianna 2b1368594f Remove wrongly inserted tabs 2017-04-20 16:28:06 +02:00
nikolasgianna f041c5873a Fix stylistic issues 2017-04-20 09:24:17 +02:00
David Anderson 7a0ea63597 web: for network up/down limit preferences, use K=1024 like the manager 2017-04-15 18:11:51 -07:00
David Anderson 6aebbdb213 Web: make TEAM_CREATE_NEED_CREDIT work for team-create RPC too 2017-04-09 00:37:27 -07:00
David Anderson dce6254411 Web: add TEAM_CREATE_NEED_CREDIT option to suppress team spam 2017-04-08 23:40:43 -07:00
David Anderson 35d40bbfc0 Merge branch 'master' of github.com:BOINC/boinc 2017-04-07 16:44:03 -07:00
David Anderson ce4cd94644 web: fix bug that shows 21 tasks instead of 20. Fixes #1853. 2017-04-07 16:37:11 -07:00