Commit Graph

1744 Commits

Author SHA1 Message Date
David Anderson eacd111d75 web: allow customization of navbar "brand" (leftmost item in navbar) 2016-11-14 21:58:12 -08:00
David Anderson 9e5c8c7eb0 web: add optional left-column width arg to grid() 2016-11-14 14:47:40 -08:00
David Anderson 3df12e48a1 web: tweaks. disable "friends and family email" (abused by spammers) 2016-11-11 20:10:12 -08:00
David Anderson b33c463cf3 web: various bug fixes
- 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()
2016-11-11 19:11:57 -08:00
David Anderson c5b948020d Initial commit for Bootstrap 2016-11-11 12:36:27 -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
David Anderson 47b93e7170 show OpenCL GPUs on host web page
- parse <opencl_device_prop> in <coproc> elements
- add entry in host.serialnum string for OpenCL GPUs
- display this in human-readable string on web
2016-10-25 11:08:16 -07:00
David Anderson 60db5c6bde web: add function for google search form.
Add this to default front page.
Also remove <table> stuff from show_login_info();
let the caller decide how to format.
2016-10-19 13:44:38 -07:00
David Anderson e26094e41e user web: fix PHP warning 2016-09-11 19:54:43 -07:00
David Anderson 4f6347f2f5 job submission: remove debugging line 2016-08-15 11:47:56 -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 4ff667a888 remove file mgt: small fix 2016-07-24 23:11:06 -07:00
David Anderson a259991c7a Fix bugs in content-based file management system
- stray return in compute_boinc_name()
- BoincJobFile::delete() was wrong
- error-check DB record deletions
2016-07-24 22:55:33 -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
Christian Beer 572c0e46f0 Web: display Windows error messages
- 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.
2016-06-16 17:55:56 +02:00
Christian Beer 7568edb8b8 Web: substitute tab with spaces 2016-06-16 16:48:30 +02:00
Christian Beer f085a0229b Web: fix display of error codes
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).
2016-06-16 15:17:43 +02:00
Christian Beer f4c2f46ac0 allow for 2 donation levels
Atomic rewrite of 939a9012cc from David Anderson.
2016-06-16 13:21:29 +02:00
Christian Beer ef50492daf Revert "web: fix display of exit codes"
untangling non-atomic commit

This reverts commit e060f2d5ad.
2016-06-16 11:48:18 +02:00
Christian Beer 78d16d5129 Revert "web tweaks; allow for 2 donation levels"
untangling non-atomic commit

This reverts commit 939a9012cc.
2016-06-16 11:48:04 +02:00
David Anderson 939a9012cc web tweaks; allow for 2 donation levels 2016-06-01 14:16:41 -07:00
David Anderson e060f2d5ad web: fix display of exit codes
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.
2016-06-01 13:13:38 -07:00
Christian Beer 6e828f2269 Ops: hide sensitive data in read-only ops 2016-05-26 13:19:54 +02:00
Christian Beer 8c325112f0 Web: fix GD detection
This broke when 2.1.0 was released.
2016-05-09 11:36:44 +02:00
Laurence Field b4becd9fcc Added error codes
Added three error codes for use with the file completion trigger file mechanism of the vboxwrapper.
2016-05-03 11:32:05 +02:00
David Anderson 2b7c11d369 user web: don't gag if prefs have <venue> tag with no name attribute 2016-04-08 18:29:35 -07:00
David Anderson 34dd5f5868 user web: don't double-escape profile text 2016-04-08 13:22:22 -07:00
David Anderson d2e822091b Merge branch 'master' of github.com:BOINC/boinc 2016-04-05 12:14:04 -07:00
David Anderson 46c3753492 BOINC web site tweaks 2016-04-05 12:13:43 -07:00
David Anderson 39a57c07eb PHP code: avoid using a global var 2016-04-05 12:10:40 -07:00
Christian Beer 0040bd9817 Ops: enhance errorwus.php again
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.
2016-03-18 10:51:09 +01:00
Christian Beer 3b6df98c44 Ops: update cancel_workunits scripts to use db layer
Also uses the wrapper functions for variables supplied by post and get requests.
2016-03-17 14:37:59 +01:00
Oliver Bock fd3e17b04c Improve DB queries
* 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 :-)
2016-03-17 13:45:03 +01:00
Christian Beer 407a2fce47 Ops: combine statements for better performance
No need to change the same rows in two statements.
2016-03-17 13:45:03 +01:00
Christian Beer ae5b283e1a Ops: use db layer in db_ops.inc 2016-03-17 12:45:34 +01:00
funkydude 71831ee639 Expand usage of HTTPS and fix a few URLs 2016-03-08 20:04:28 +00:00
Christian Beer d806276335 Allow admins to post even if not enough RAC
[skip-ci]
2016-02-22 17:11:58 +01:00
Christian Beer 31134df412 Web: remove non working email
fixes #1494
2016-02-20 15:59:26 +01:00
David Anderson e658092255 Add ops script for creating account and team
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().
2016-02-10 14:51:34 -08:00
David Anderson 302cc2ddb7 Merge branch 'master' of github.com:BOINC/boinc 2016-02-09 22:01:40 -08:00
David Anderson 864bdac235 Merge pull request #1445 from BOINC/recaptcha-update
Web: update the reCAPTCHA PHP client library to 1.1.2
2016-02-09 22:01:30 -08:00
David Anderson b4722fdccd web: show UTF8 chars in result stderr_out correctly (from Marius Millea) 2016-02-03 02:35:41 -08:00
Greg Childers f5c252ac83 Add closing td tag on team members list 2016-01-28 18:54:44 -08:00
Oliver Bock 74b33e4dfc HTML: Make platforms accessible to Drupal by declaring it as global 2016-01-13 15:55:39 +01:00
David Anderson 85ab367894 Merge pull request #1464 from brevilo/fix-regression-d4dec27
Fix regression in d4dec27
2016-01-11 20:00:31 -08:00
Christian Beer fd41262f4f Web: fix last resort UOTD selection query
The query was failing with the error "Every derived table must have its own alias" thus not selecting a new user of the day.
2016-01-11 14:20:45 +01:00
Oliver Bock 62d73e10e3 Fix regression in d4dec27
* 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
2016-01-11 09:48:07 +01:00