Commit Graph

16 Commits

Author SHA1 Message Date
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
Christian Beer dff8fcffc6 Web: read-only RPCs should use the replica DB 2016-06-20 15:14:55 +02:00
David Anderson 278f3fd370 web: use new DB API here and there; should be no visible changes 2014-04-24 09:41:59 -07:00
David Anderson ecdc25968a Extend PHP interface for Web RPCs
- add a PHP interface for lookup_account()
- PHP interfaces return error number as well as message
  (messages change; numbers don't)
- using symbolic error codes instead of hardwired numbers in PHP code
2013-12-28 22:50:59 -08:00
David Anderson fc5ee59787 - user web: apparently if you put links of the form
http://setiathome.berkeley.edu/help.php?key=Viagra.uk
    all over the web, Google will list "Viagra.uk" in your site outline (why??).
    Preliminary checkin for dealing with this.

svn path=/trunk/boinc/; revision=23008
2011-02-09 19:10:10 +00:00
Rytis Slatkevičius a1b375cf4f user web: extend account manager script to export more information (from Willy de Zutter)
svn path=/trunk/boinc/; revision=21603
2010-05-23 11:10:52 +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 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 b8877e887e - add weak auth to am_get_info web RPC (from Nicolas)
svn path=/trunk/boinc/; revision=14661
2008-02-02 15:38:59 +00:00
David Anderson 02bb061b6d *** empty log message ***
svn path=/trunk/boinc/; revision=11117
2006-09-06 20:56:55 +00:00
David Anderson d1eef2c6ca *** empty log message ***
svn path=/trunk/boinc/; revision=10069
2006-05-01 16:41:27 +00:00
David Anderson 58d94e2f65 add venue to RPC params
svn path=/trunk/boinc/; revision=8850
2005-11-13 06:48:26 +00:00
David Anderson bfed4b81aa *** empty log message ***
svn path=/trunk/boinc/; revision=5782
2005-04-05 21:26:41 +00:00
David Anderson a95f0c33bd *** empty log message ***
svn path=/trunk/boinc/; revision=5724
2005-03-28 22:26:22 +00:00
David Anderson 7e4801d6f7 *** empty log message ***
svn path=/trunk/boinc/; revision=5705
2005-03-23 19:25:00 +00:00
David Anderson 2534035cae *** empty log message ***
svn path=/trunk/boinc/; revision=5527
2005-02-25 00:41:22 +00:00