Commit Graph

33 Commits

Author SHA1 Message Date
David Anderson ff91f05aa6 Tweaks to user URL/country flags
- Put flags in config.xml instead of project.inc
- Make them positive instead of negative
- make db_dump respect them.
2018-12-14 20:20:24 -08:00
David Anderson b45e89e9af web: add options for not collecting or showing URL and country
Add constants NO_USER_URL and NO_USER_COUNTRY.
If you set these to true (in project.inc)
there will be no query or display of user web site URL
and user country, respectively.
2018-12-10 16:58:56 -08:00
David Anderson 1e0631dc87 web: allow user URLs with https://
We need to let users have https:// URLs.
Originally http:// was assumed, and the URLs were stored without the prefix.
For compatibility, allow either form to exist in the DB

Also update the "other account info" form to user bootstrap.
2017-02-12 00:46:15 -08:00
David Anderson bdbbb0b193 Web: don't show email addrs to team owners.
Consensus is that showing team member addrs to team admins is bad for privacy,
even if members can opt out.

So: omit email addr from all forms of member list.

Instead, add a feature where team admins can send a PM to all team members.
2016-10-28 02:59:08 -07:00
Christian Beer 3b3c575694 Web: enclose PHP error messages in CDATA
We don't know what the PHP error message contains so we enclose it in a CDATA block so the response is still valid XML and can be parsed using standard tools.
2016-08-04 13:08:19 +02:00
Christian Beer b403e6dddc Web: added RPC_DEBUG option to disable error messages in public Web RPCs
PHP error messages may contain sensitive information that should not be publicly visible. This option gives each project a simple switch to turn error messages in Web RPCs on or off.
2016-08-04 10:31:12 +02:00
David Anderson c56f284904 remote job submission: improve error handling.
The way errors were being handled in submit_rpc_handler.php,
the replies could end up looking like:
<error>
    ...
    </error>
<actual_reply>
    ...
</actual_reply>

which doesn't parse with PHP's simplexml because there's no outer element.
So the PHP interface to job submission didn't work in some cases.

To fix this, I changed the RPC replies to have an enclosing element,
which is the name of the RPC, e.g.
<submit_batch>
    <error>
        ...
    </error>
    ... other stuff
</submit_batch>

RPC replies should now always be valid XML, errors or not.
2016-07-31 23:00:24 -07:00
David Anderson d738c4e879 Web RPCs: handle only warning/notice types; show type 2016-07-22 11:52:44 -07:00
David Anderson e11b62adab Improve error reporting for XML RPCs
- If handling an XML RPC, use set_error_handler() to output PHP warnings as XML.
Otherwise they appear as strings in the XML reply, making them not parse.

- suppress warnings from PHP function calls where we're already checking errors
2016-07-22 01:41:43 -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 3b363f9a87 - web RPC: include rpc_time in XML host description
- client: if acct mgr sends us an account with no authenticator,
    show an error message instead of trying to attach


svn path=/trunk/boinc/; revision=25608
2012-04-30 18:46:50 +00:00
David Anderson d2b3c97ea7 - web RPC bug fix
svn path=/trunk/boinc/; revision=23508
2011-05-05 16:12:12 +00:00
Rytis Slatkevičius 6c5fc14a23 user web: flag to send less information on team member XML requests (from Willy de Zutter).
svn path=/trunk/boinc/; revision=21780
2010-06-20 08:35:36 +00:00
David Anderson 7bb82a9f83 - web RPC: include mem and disk info in host XML record
svn path=/trunk/boinc/; revision=20997
2010-03-25 16:38:17 +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 cf6a5281b6 - web: moved some basic utility functions to a separate file
that doesn't need to include all sorts of crap

svn path=/trunk/boinc/; revision=15368
2008-06-05 22:35:03 +00:00
David Anderson 877bec76ce - user web: if user unchecked "OK to send email" pref,
don't show his email address to team founder
- user web: change wording on project prefs page to clarify
    that emails may come from project OR team
- user web: let team founder delete message board

svn path=/trunk/boinc/; revision=14232
2007-11-16 21:31:43 +00:00
David Anderson 2f602575da - user web: in the various interfaces that show team member's
email addresses to team admins,
    also show the user's "send_email" flag,
    indicating whether the agreed to get "email newsletters"
    from the project.
    If this is set, teams should NOT send email to that user.

    Ideally, we should have a separate preference for whether
    to get email from team
    (or show email address to team admins at all)
    
    Fixes (more or less) 

svn path=/trunk/boinc/; revision=14220
2007-11-15 23:25:43 +00:00
David Anderson dc4ca1e5cd - user web: changes to use new DB framework and eliminate PHP warnings
svn path=/trunk/boinc/; revision=13981
2007-10-28 15:03:14 +00:00
David Anderson 3612fe184f - web RPC: show lots more info in team_lookup.php, XML version
html/inc/
    xml.inc


svn path=/trunk/boinc/; revision=12656
2007-05-11 18:41:36 +00:00
David Anderson 582942b864 *** empty log message ***
svn path=/trunk/boinc/; revision=11637
2006-12-07 23:39:23 +00:00
Rytis Slatkevičius 6f97facae9 New RPCs to get last user's posts/threads from the forum (requested by Matthew Blumberg)
svn path=/trunk/boinc/; revision=11506
2006-11-09 19:06:20 +00:00
Rytis Slatkevičius 22798e94af account creation via RPC with invitation code
svn path=/trunk/boinc/; revision=11314
2006-10-19 18:09:02 +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 a43babc42d user web fixes
svn path=/trunk/boinc/; revision=9768
2006-03-30 00:45:24 +00:00
David Anderson 85f11e0592 *** empty log message ***
svn path=/trunk/boinc/; revision=9727
2006-03-24 23:37:32 +00:00
David Anderson 2c1bf9fb82 team lookup web RPC
svn path=/trunk/boinc/; revision=9209
2006-01-10 23:21:23 +00:00
David Anderson 66209eca82 *** empty log message ***
svn path=/trunk/boinc/; revision=8914
2005-11-23 03:28:31 +00:00
David Anderson 2fd5bf26d8 web RPC for setting venue
svn path=/trunk/boinc/; revision=8854
2005-11-14 18:38:09 +00:00
David Anderson 745c6cd26c *** empty log message ***
svn path=/trunk/boinc/; revision=6357
2005-06-15 22:22:26 +00:00
David Anderson d85c1de549 *** empty log message ***
svn path=/trunk/boinc/; revision=6349
2005-06-15 04:53:08 +00:00
David Anderson 586da17e74 *** empty log message ***
svn path=/trunk/boinc/; revision=3968
2004-08-03 16:59:27 +00:00