Commit Graph

30 Commits

Author SHA1 Message Date
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 965faa3b71 - web RPC: in am_set_info, if both GET and POST args are present, use POST
svn path=/trunk/boinc/; revision=25721
2012-05-27 07:53:57 +00:00
David Anderson e43f04c52a - web RPC: make am_set_info available by POST as well as GET,
since its args can be too long for a URL


svn path=/trunk/boinc/; revision=25718
2012-05-26 21:53:03 +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 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 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 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 884bad0975 - client: show proxy info in messages at startup and when changed
fixes #704
- web: fix the am_set_info.php RPC
    (most args are optional, not mandatory)

svn path=/trunk/boinc/; revision=15716
2008-07-30 21:37:41 +00:00
David Anderson 1147e60b1a - web: fix bugs that cause backslashes to be introduced
in global prefs update via account manager RPC

svn path=/trunk/boinc/; revision=15602
2008-07-14 19:13:19 +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 0616e75a02 - user web: update other code to use new-style DB interfaces
svn path=/trunk/boinc/; revision=14164
2007-11-12 22:28:17 +00:00
David Anderson 84a2a077e0 - user web: add the ability to check/uncheck all PMs; clean up PM code
svn path=/trunk/boinc/; revision=14024
2007-11-02 20:51:39 +00:00
David Anderson e1ca1c5aee - User web: more DB framework changes;
extended DB framework to allow use of a read-only replica

svn path=/trunk/boinc/; revision=13985
2007-10-29 16:38:25 +00:00
Rytis Slatkevičius 0623635a9e User web: update web RPC so that project specific preferences are preserved if they are missing in the request but present in previous settings (to reset them AMS should send <project_specific></project_specific>)
svn path=/trunk/boinc/; revision=13463
2007-08-26 11:15:44 +00:00
David Anderson f4953d1829 *** empty log message ***
svn path=/trunk/boinc/; revision=11723
2006-12-27 18:22:17 +00:00
David Anderson 7fa8c7c8dd *** empty log message ***
svn path=/trunk/boinc/; revision=11125
2006-09-08 19:51:33 +00:00
David Anderson 02bb061b6d *** empty log message ***
svn path=/trunk/boinc/; revision=11117
2006-09-06 20:56:55 +00:00
David Anderson aa2b9598b9 *** empty log message ***
svn path=/trunk/boinc/; revision=10560
2006-07-02 14:30:40 +00:00
David Anderson ac596a924c *** empty log message ***
svn path=/trunk/boinc/; revision=10331
2006-06-13 20:56:05 +00:00
David Anderson d678926d95 *** empty log message ***
svn path=/trunk/boinc/; revision=10082
2006-05-02 20:37:24 +00:00
David Anderson d3c28af1f0 *** empty log message ***
svn path=/trunk/boinc/; revision=9655
2006-03-15 22:57:56 +00:00
David Anderson 4265d3db4b *** empty log message ***
svn path=/trunk/boinc/; revision=9393
2006-02-02 20:06:36 +00:00
David Anderson f886cb6f22 *** empty log message ***
svn path=/trunk/boinc/; revision=9314
2006-01-25 19:02:01 +00:00
David Anderson 24a078ee63 *** empty log message ***
svn path=/trunk/boinc/; revision=9221
2006-01-12 22:05:41 +00:00
David Anderson 6374d88da0 web RPC additions
svn path=/trunk/boinc/; revision=9088
2005-12-19 07:42:40 +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 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