- fix "jump to first unread post" feature
- use <pre> for bbcode [code]
- don't use table-responsive class for tables.
It does bad/funky things, especially on small displays
- remove start_table_noborder()
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.
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.
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.
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.
- 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
- int2hex() now uppercases the actual value to make it easier to compare.
- Decode large negative values as Windows error codes. Right now assumes everything smaller than -400 to be a Windows error code. Unfortunately there are also positive codes that overlap with Linux and BOINC ones.
Exit codes (32 bits) with the high order bit set (e.g. 0xc0000005) were being displayed as 0xffffffffc0000005.
This seems to be a problem with php's printf("%x") where negative values are shown as 64 bit integers in the hex representation (dechex() has the same problem).
Exit codes (32 bits) with the high order bit set (e.g. 0xc0000005)
were being displayed as 0xffffffffc0000005.
Also: fix some confusion between exit codes and error numbers.
BOINC doesn't use error numbers as exit codes.
Added more filters and moved logic from PHP to the DB. This results in a smaller memory footprint of the script but stresses the database a little more for big projects.
* WHERE IN clauses perform really bad for long lists/sub-queries
* Using INNER JOINs to speed up the queries
* Down from a couple of minutes to less than a second :-)
This is for my own use in BOINC-wide teams.
It must work even if account/team creation are disabled
(as they are in the BOINC-wide teams site).
To do this, I moved the <disable_team_creation> check out of make_team()
and moved it to the existing places that call make_team().
The logic now matches that of make_user().
* Added still required code that was removed without apparent reason
* If in doubt about a code's purpose, please check the history first
* Original commit: 8be519a