Commit Graph

135 Commits

Author SHA1 Message Date
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
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 4eea5bd714 - Add cross-project certificate
svn path=/trunk/boinc/; revision=15347
2008-06-02 15:59:20 +00:00
David Anderson 2381837ba8 - web: add project.inc variables to customize certificates;
add team certificate;
    add links to certificates from user page

svn path=/trunk/boinc/; revision=15316
2008-05-28 21:08:26 +00:00
David Anderson e9451a0bf1 - web: fix errors in translation changes
svn path=/trunk/boinc/; revision=15268
2008-05-21 16:37:11 +00:00
David Anderson 4ef8f7a3dd - web: fix bugs introduced by recent tra() changes.
PLEASE CHECK THESE CHANGES BEFORE SUBMITTING THEM

svn path=/trunk/boinc/; revision=15262
2008-05-20 21:08:52 +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
Rytis Slatkevičius 14e132820f Another typo in user.inc
svn path=/trunk/boinc/; revision=15222
2008-05-15 11:17:40 +00:00
Rytis Slatkevičius 053a6d1abe Fix typo in user.inc
svn path=/trunk/boinc/; revision=15221
2008-05-15 10:03:04 +00:00
David Anderson 929d75eedb - make some strings in user.inc translatable (from Simek)
- close fd 1, not 0, for apps

svn path=/trunk/boinc/; revision=15195
2008-05-13 21:46:50 +00:00
David Anderson f66ec3932b - user web: clear team founder change if requester left team
- user web: check for deleted thread in subcription list
- user web: fix founder change link

svn path=/trunk/boinc/; revision=15070
2008-04-21 14:04:01 +00:00