Commit Graph

121 Commits

Author SHA1 Message Date
Oliver Bock 03b5960014 Web: fixed bugs in delete account feature introduced in bcd853bb4f
* missing include - required for delete_user()
* wrong property access syntax
2018-06-08 11:23:35 +02:00
Kevin Reed bcd853bb4f web: implementation of wipe account 2018-05-04 17:36:09 -05:00
David Anderson dfe7261cda web: improve button colors and appearance
principles:
- primary action buttons are green (btn-success)
- secondary action buttons are blue (btn-primary)
- potentially risky action buttons are yellow (btn-warning)
- if there are a lot of buttons (e.g. forum posts) use btn-xs
2017-08-20 01:17:21 -07:00
David Anderson e445541f4b web: allow parts of web functionality to be disabled
See issue #2051
2017-08-20 00:21:33 -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 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 bd0fc9a650 web: add recaptcha to team creation
S@h is getting lots of spam teams.
If this doesn't work, we'll add a min credit requirement.
2017-03-27 12:05:51 -07:00
David Anderson 853f8661b3 web: fix function name for country select 2017-02-16 10:59:56 -08:00
David Anderson c054358a6e web: tweaks to fix Scrutinizer complaints; few visible effects 2016-12-07 11:32:25 -08:00
David Anderson 9d673e1c93 web: appearance tweaks
- use form-control class for text inputs and selects.
    This makes them all full-width, but I guess that's OK.
- use success class (green) for action buttons
- right-align table headings where appropriate
- use <small> instead of text-muted.
- tweak custom CSS to fix link and navbar visited colors
2016-12-04 21:04:23 -08:00
David Anderson 107b170ae1 web: finish job of making headings blue in striped tables
i.e. use row_heading() or row_heading_array() to generate the heading
2016-12-02 23:25:01 -08:00
David Anderson a22b1e3136 web: various tweaks
- make selects 240px wide (kludge)
- in navbar, link user name to home page
- add Project to navbar, more Your Account there
- add maximum-scale to <meta>
2016-11-24 18:01:41 -08:00
David Anderson 7463938995 web: more fixes for dark themes 2016-11-23 02:35:28 -08:00
funkydude 71831ee639 Expand usage of HTTPS and fix a few URLs 2016-03-08 20:04:28 +00: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
Greg Childers f5c252ac83 Add closing td tag on team members list 2016-01-28 18:54:44 -08: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 2b5f319831 web: fix bug in team page display 2015-03-11 12:39:25 -07: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 e6ecb981b3 web: change CSS usage to partly match Twitter Bootstrap. From Christian Beer. 2014-10-02 12:15:54 -07:00
David Anderson 1c60e467a7 web: add page (per_app_list.php) to show top users/teams by app
Notes:
- it's per app, not per sub-project; that would have been harder
- it only shows the top 20

Also: shuffle code to reduce recursive includes.
2014-09-28 08:11:51 -07:00
David Anderson efa6f4e3d6 web: make badge display configurable
See http://boinc.berkeley.edu/trac/wiki/BadgeDoc
2014-09-18 10:08:45 -07:00
David Anderson dbd2d03a0d server/web: add support for per-application credit
See http://boinc.berkeley.edu/trac/wiki/PerAppCredit
If enabled (by the <credit_by_app> config flag)
validators will maintain on a per-(app, user, credit type) basis,
and same for teams,
in new DB tables credit_user and credit_team.
This info is displayed in the web site, on user and team pages,
using project-supplied functions to generate the HTML.

Note: update_stats doesn't decay the recent-average values
for per-app credit; I'll add this if needed.
2014-08-15 14:01:32 -07:00
David Anderson cd1a12d4f4 web: show badges in more places
Also: improve the badge admin page
Also: zebra-stripe top user and team lists
2014-08-11 09:50:06 -07:00
David Anderson 0cdee0af4e Fixes for the BOINC-wide teams site
- the exported team list wasn't parsing due to non-ASCII characters
    in some team descriptions.
    htmlspecialchars() wasn't doing the job.
    Use DOMDocument instead.
- If SHOW_NONVALIDATE_TEAMS is set (as on the BOINC-wide teams site)
    show teams whose founders email addresses are not validated
    (and hence won't be exported).
2014-03-07 00:37:44 -08:00
David Anderson e979588b7f web: cleanup and minor bug fixes, from Janus 2014-01-09 13:51:12 -08:00
David Anderson b33bf69a98 web: enhance badge features
- the default badges (defined in ops/badge_assign.php) are now
  based on RAC percentile (top 1%, 5%, and 25%) rather than plain RAC.
- RAC percentile badges are now granted for teams as well as users;
  show badges in team page.
- move badge utility functions to inc/util_ops.inc
2013-12-20 15:03:24 -08:00
David Anderson e12280909f web: fix PHP warnings, and a small bug in forum search 2013-05-13 12:29:07 -07:00
David Anderson 47409201aa - web (ops): update profile page generator:
- to use current DB interface
    - to add "-d" option printing debug info
    - to show start time w/o getting header errors
    From Christian Beer.
2013-03-05 17:26:33 +01:00
David Anderson 58808d507e - web: use &middot; instead of | as a separater 2013-03-04 17:19:39 +01:00
David Anderson 78a9c920c7 - web: more fixes from Christian Beer. Fixes #1129
svn path=/trunk/boinc/; revision=24050
2011-08-26 18:30:13 +00:00
Rytis Slatkevičius c819d552c0 user web: change remaining occurrences of fullpage caching to object cache. start_cache() and end_cache() are now deprecated.
svn path=/trunk/boinc/; revision=23230
2011-03-13 20:05:25 +00:00
David Anderson f4345f9dc4 - user web: various enhancements and fixes from Simek.
Fixes #1020

svn path=/trunk/boinc/; revision=22620
2010-11-03 21:48:39 +00:00
David Anderson 7f0d38ae0c - web: make strings translatable. From Simek, fixes #1007
svn path=/trunk/boinc/; revision=22319
2010-09-07 18:20:29 +00:00
David Anderson 21a18b7045 - web: more translations, from Christian. fixes #982
svn path=/trunk/boinc/; revision=20582
2010-02-16 01:06:03 +00:00
David Anderson 4cca81bedf - manager: when filtering messages by project,
show messages not tagged with a project (fixes #852)
- web: show X-project stats links as icons

svn path=/trunk/boinc/; revision=17456
2009-03-03 21:58:03 +00:00
David Anderson f851c4558a - web: add another team stats link
- client: if ncpus is zero in cc_config.xml, honor it.


svn path=/trunk/boinc/; revision=17160
2009-02-05 22:34:10 +00:00
David Anderson 20c2566ada - web: added BOINCstats to list of team stats sites
svn path=/trunk/boinc/; revision=17155
2009-02-05 20:25:30 +00:00
David Anderson 3ad73d70ba - client: redefine "overworked" as
debt < -1.5 * work_buf * cpu_sched_period
- web: on team page, link to cross-project team stats sites

svn path=/trunk/boinc/; revision=17152
2009-02-05 19:40:01 +00:00
David Anderson 4b5be47639 - web: replace the vaguely-named process_user_text()
with BoincDb::escape_string()
- web: have BoincDb::escape_string() also do a trim()

svn path=/trunk/boinc/; revision=16686
2008-12-14 22:18:49 +00:00
David Anderson 87ff7b07d2 - web: if user tries to edit a BOINC-wide team,
warn them that changes will get overwritten.
    Fixes #758


svn path=/trunk/boinc/; revision=16244
2008-10-21 20:33:16 +00:00
David Anderson ebe3b090e8 - add a script "upgrade_db.php" that updates project DB structure
(after user confirmation).
    This is called from "upgrade", and can also be run by itself.

    NOTE: this mechanism will handle all DB updates going forward.
    Older updates must be done the old way (edit and run db_update.php)

- Web: let teams determine whether they're accepting new members


svn path=/trunk/boinc/; revision=16160
2008-10-08 16:48:11 +00:00
David Anderson 9f6c4a133e - client: don't leak handles to shared-mem files
- client: don't leak process handles when abort jobs
- client: if an app exits or we kill it, always destroy the shmem segment.
- web: more HTML 4.01 Transitional conformity changes

svn path=/trunk/boinc/; revision=15865
2008-08-16 20:59:53 +00:00
David Anderson 9baf78fe5f - web: added copyright and license info to PHP files
svn path=/trunk/boinc/; revision=15758
2008-08-05 22:43:14 +00:00
Rytis Slatkevičius b2304c576c user web: make team.inc translatable, and update en.po using the new script (fix #661)
svn path=/trunk/boinc/; revision=15747
2008-08-04 10:07:09 +00:00
David Anderson 8062bc1bbd - web: insert() functions return ID
svn path=/trunk/boinc/; revision=15461
2008-06-24 22:20:40 +00:00
David Anderson 956a5a2cc5 - web: fixed numerous bugs in team founder transfer mechanism
svn path=/trunk/boinc/; revision=15398
2008-06-13 16:40:51 +00:00
David Anderson d403a14e42 - web: cleaned up logic of string processing.
There are two aspects:
    1) undoing magic quotes (if it's being used).
        This must be done for all GET and POST string inputs.
        It is now done automatically by get_str() and post_str().
        The places that refer to $_GET and $_POST directly
        must do it themselves using undo_magic_quotes().
    2) Escaping user-supplied strings before using them in DB queries.
        This is done by process_user_text()
        (which should be renamed db_escape_string()).
        The new principle:
        call process_user_text() in the function that does the DB query
        (not at any higher level).


svn path=/trunk/boinc/; revision=15389
2008-06-11 19:36:10 +00:00
David Anderson 9963f0958b - web: fix for cross-site scripting vulnerability
(from Nicolas Alvarez)

svn path=/trunk/boinc/; revision=15261
2008-05-20 16:42:01 +00:00
David Anderson 3a00adeb65 - web: add <no_computing> option to config.xml.
If present, don't show anything related to computing.
    Use this for Bossa/Bolt projects, and the BOINC message boards.


svn path=/trunk/boinc/; revision=15228
2008-05-15 22:05:05 +00:00