Commit Graph

145 Commits

Author SHA1 Message Date
David Anderson 9df6e43863 web: handle the case of missing user records in a few places
The delete-spammers script was creating dangling user references
(although this is now fixed).
Detect these dangling references and clean them up.
2014-07-12 14:32:59 -07:00
David Anderson a243e19bdc web: replace lookup_* functions with their DB API equivalents
also:
- fix bug in db_cleanse.php
- replace some uses of deprecated mysql_* API
2014-06-23 18:29:20 -07:00
David Anderson af99251e79 web: let projects disable forums
Do this by putting
define("DISABLE_FORUMS", true);
in your html/project/project.inc.

If this is set, admin users can still see enough forum functionality
to post and edit news items
(this is linked to from the Admin web interface).

Other users, or non-logged-in access, sees news but no forums
or forum-related info.
2014-04-18 15:54:28 -07:00
David Anderson 4d7c0113f5 web: tweaks for "no teams" feature 2014-04-18 00:15:05 -07:00
David Anderson 1010cee2ae web: 2014-04-17 23:31:51 -07:00
David Anderson ef245d456b web: show badges on private user page 2013-12-23 22:13:27 -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 65b5ab5184 server/web: preliminary support for badges
- DB: add tables for badges and badge/user and badge/team associations
- add script that defines 3 RAC-based badges and assigns them
- add images for these badges
- add admin page for creating/editing badges
- show badges on user page
not done:
- figure out how to send badges to client
- display badges somewhere in the GUIs
- export badges in db_dump
- enable badges by default for new projects
2013-12-05 10:14:26 -08:00
David Anderson 78b7faed99 web: remove "Pending credit" link from account page. This page didn't work, and is subsumed by results.php 2013-09-29 02:44:47 -07:00
David Anderson 286646554e web: fix broken link to change-password form if SECURE_URL_BASE not defined 2013-05-28 23:19:18 -07:00
David Anderson 1b4c2c0dbf web: fix PHP warnings 2013-05-13 23:29:19 -07: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 b0555bbf24 web: fix some PHP warnings 2013-05-07 00:53:06 -07:00
David Anderson 4f7bd9e7ad web: user $x = new StdClass instead of $x = null for new objects 2013-05-03 22:12:26 -07:00
David Anderson 0c430ce1fa Add support for multi-size apps
See http://boinc.berkeley.edu/trac/wiki/MultiSize
The components of this include:
- DB changes:
    add size_class to workunit and result
    n_size_classes to app; >1 means multi-size
- size_regulator daemon program: change results states
    from INACTIVE to UNSENT carefully
- size_census program; writes quantile info in flat files
- transitioner: when creating results for multi-size apps,
    set server state to INACTIVE
- sched shmem (feeder): read quantile info from flat files,
    store in shared memory
- scheduler (score-based scheduling): for multi-size apps,
    add component to score function for size class.
- show_shmem: show result size class
- make_work (and other callers of count_unsent_results()):
    count both INACTIVE and UNSENT
- create_work: add --size_class cmdline option

Also:
- if get MySQL errors in upgrade, don't rewrite db_version
2013-04-25 00:27:35 -07:00
David Anderson 58808d507e - web: use · instead of | as a separater 2013-03-04 17:19:39 +01:00
David Anderson c34093e374 - web: don't show account keys on account page;
rewrite the page explaining and showing account keys.
- client: remove <std_debug> log flag
- client: remove <zero_debts> config option


svn path=/trunk/boinc/; revision=25581
2012-04-19 07:36:47 +00:00
Rytis Slatkevičius 2bb7957386 Fix previous commit
svn path=/trunk/boinc/; revision=25486
2012-03-24 14:55:58 +00:00
David Anderson 24761958fd - client/server: estimate FLOPS for NVIDIA GPUs with
compute capability 3.x.
    Not sure if the parameters are right
    (128 cores/proc, 2 flops/clock)
    but they're better than nothing.
- web: don't allow user names that have leading or trailing white space,
    or HTML tags, or are empty


svn path=/trunk/boinc/; revision=25485
2012-03-24 06:31:03 +00:00
David Anderson 58e26b9b4b - web: in user search, show most recent rather than oldest users
- web: don't show URL in account page if expavg_credit < 1.
    This discourages a type of spam.


svn path=/trunk/boinc/; revision=25267
2012-02-15 19:25:41 +00:00
David Anderson 53af2ae778 - client/API: pass bool using_sandbox in APP_INIT_DATA;
says whether the client is using account-based sandboxing.
    Needed by vboxwrapper.
- web: don't show authenticator in Your Account page.
    The problem with authenticators is that if a bad guys gets yours,
    they can log in to your account even if you change your password.
    Eventually we should not use them at all
    (i.e. in cookies and sent to client).
- make_project: copy python stuff (e.g. bin/start) for web-only projects;
    generate appropriate project.readme file for web-only projects.


svn path=/trunk/boinc/; revision=24447
2011-10-21 06:58:35 +00: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
David Anderson a3cccc85e6 - web: show "logged in as" info on every page;
remove funky "log out" link from user page
- web: go to home page on logout,
    not dorky "you are logged out" page


svn path=/trunk/boinc/; revision=23387
2011-04-20 14:50:50 +00:00
David Anderson eaee1ddba6 - user web: fix wrong user ID
svn path=/trunk/boinc/; revision=23117
2011-02-26 23:10:06 +00:00
David Anderson f0ef6140ef - user web:
- in friend request notification, link to user page
    - in user page, show ID
    - remove "Account data for " in page title


svn path=/trunk/boinc/; revision=23112
2011-02-25 19:10:36 +00:00
David Anderson 58c5c0c5b3 - user web: disable "delete account" feature
svn path=/trunk/boinc/; revision=23022
2011-02-11 18:18:17 +00:00
David Anderson 3e2e5f2fdc - user web: CSS cleanup.
Use classes instead of IDs.
    white.css and black.css are cleaned up; style2.css needs work


svn path=/trunk/boinc/; revision=23018
2011-02-10 22:45:39 +00:00
David Anderson 91c251c103 - user web: add "delete account" feature.
This allows a user to delete all traces of themselves from a project.
    Namely:
    - clear fields of user record: email_addr, authenticator,
        name, country, postal_code
        Note: record is not deleted
    - clear the domain_name and last_ip_addr fields of hosts
        Note: records are not deleted
    - quit team
    - delete private messages sent and received
    - delete forum posts, subscriptions, and forum prefs
    - delete profile and associated images
- server: compile fix


svn path=/trunk/boinc/; revision=23006
2011-02-08 21:38:16 +00:00
David Anderson da19f328e9 - web: tweaks so that BOINC-Wide Teams site can warn people if
their email address is not validated

svn path=/trunk/boinc/; revision=22946
2011-01-26 22:43:23 +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 d3e4c729e5 - web: don't require that SECURE_URL_BASE be set,
or that it end with a /

svn path=/trunk/boinc/; revision=22366
2010-09-15 23:47:49 +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 98d44b0120 - web: finish the above
svn path=/trunk/boinc/; revision=22313
2010-09-02 19:29:28 +00:00
Rytis Slatkevičius d07da32b55 Fixed line order in the last patch
svn path=/trunk/boinc/; revision=21669
2010-06-01 18:40:17 +00:00
Rytis Slatkevičius a3b27efb6f user web: do not wait for cross-project stats for more than 3 seconds as it slows down "Your account" page load in case stats server is slow to respond.
svn path=/trunk/boinc/; revision=21667
2010-06-01 14:07:53 +00:00
Rytis Slatkevičius ea8fd996a0 user web: fix PHP warning when netsoft stats are down
svn path=/trunk/boinc/; revision=21422
2010-05-09 08:42:51 +00:00
David Anderson 6dd7401da7 - various components: fix inconsistencies in how user names
and team names are represented.
    In particular, edit_user_info_action.php was using
    htmlentities() on names; this led to double-encoding.

    The new rules:
    1) no HTML tags allowed in either one.
        This is enforced silently, using strip_tags()
    2) names are stored in the DB exactly as entered.
        They may contain chars like & and >.
        They may contain non-ASCII characters
        (use UTF-8 if you want them displayed correctly).
        None of these are not escaped.
    3) When the names are put in XML
        (e.g. in scheduler reply or db_dump output)
        they are XML-escaped.
        This escapes <, &, and non-ASCII chars
    4) The client leaves them in this form,
        and writes them that way in GUI RPCs
        and init_data.xml files.
    5) The parsing of GUI RPC replies and init_data.xml files
        XML-unescapes them.

svn path=/trunk/boinc/; revision=20647
2010-02-18 22:33:26 +00:00
David Anderson 5f1bf70056 - web: Drupal stuff
svn path=/trunk/boinc/; revision=20418
2010-02-04 16:55:16 +00:00
David Anderson 4ab335eb49 - user web: make a bunch of strings translatable (from Nicolas)
svn path=/trunk/boinc/; revision=20180
2010-01-16 06:19:19 +00:00
David Anderson 8e51669769 - tweak to start
svn path=/trunk/boinc/; revision=19201
2009-09-28 16:19:20 +00:00
David Anderson a4e82069d6 - client: add a bunch of debugging messages (<task_debug>)
for showing how GPU instances are being reserved
- scheduler: add "sse3" plan class example
- web: add option (NO_TEAMS constant) for suppressing teams

svn path=/trunk/boinc/; revision=18658
2009-07-22 18:41:02 +00:00
David Anderson d6d738a47d - web: allow projects to account email addresses in certain domains.
Add the following to html/project/project.inc:

    $banned_email_domains = array(
        "foo.bar",
        "blah"
    );

    Email addresses ending with any of those strings will be disallowed.
- Web RPCs: have am_set_info.php do the same checking for
    email addresses (invalid, banned) as the other web code


svn path=/trunk/boinc/; revision=18352
2009-06-10 18:34:51 +00:00
David Anderson bf93abb67a - web: fix bug in cached user page stuff from 12/29/08
svn path=/trunk/boinc/; revision=17166
2009-02-06 03:40:54 +00:00
Janus B. Kristensen 57296e7004 Fixed issue where a translation text was broken into pieces making it impossible to translate for languages that have a different word order than english.
svn path=/trunk/boinc/; revision=16778
2009-01-05 15:50:33 +00:00
Janus B. Kristensen 209d519fc4 - Fixed issue where the cached version of the profile page was displayed in a wrong language
- Added translation awareness to view_profile.php
- Added translation awareness to show_user.php
- Added cacheability to the community_links() by splitting it into a function for getting the cacheable object "get_community_links_object()" and another for displaying it "community_links()"
- Added the community_links cacheable object to the cache in show_user.php
- Changed view_profile.php from being full-page cached to using data caching. Only the community_links object is cached as that is the only one containing heavy queries. All other queries are simple and will be cached at the SQL query cache level.

svn path=/trunk/boinc/; revision=16749
2008-12-29 18:44:11 +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 d786872da7 web tweeak
svn path=/trunk/boinc/; revision=16228
2008-10-17 16:47:02 +00:00
David Anderson 6e62285252 - web: prevent a cross-site request forgery attack
svn path=/trunk/boinc/; revision=16224
2008-10-16 04:02:59 +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
David Anderson 8062bc1bbd - web: insert() functions return ID
svn path=/trunk/boinc/; revision=15461
2008-06-24 22:20:40 +00:00