Commit Graph

1643 Commits

Author SHA1 Message Date
David Anderson 3e6ae6f48d web: fix "stay logged in" when logging in with authenticator; from Janus
Oddly enough, I couldn't repro this on Chrome or Firefox;
I remained logged in after quit/restart browser,
even though the cookie said it was for this browsing session only.
2015-07-24 13:58:38 -07:00
David Anderson e2d57dc350 web: make team types translatable; fix warning in team import 2015-07-23 23:09:54 -07:00
Oliver Bock a515a84879 web: make team_types globally accessible (missed in 8be519a616) 2015-07-22 16:21:23 +02:00
Oliver Bock 8be519a616 HTML: Make various variables accessible to Drupal by declaring them as global 2015-07-14 14:47:31 +02:00
David Anderson 1896036dda user web: change pm_send() name to avoid Drupal conflict 2015-07-13 16:11:30 -07:00
Rom Walton 50d9e35e29 remote job submission: bug fix for getting the CPU time. 2015-07-08 11:54:58 -04:00
David Anderson b9cbb1d4a5 web: prevent thread/post counts from going negative
Because we don't use transactions, there are situations
(like if a moderator clicks "OK" repeatedly)
where decrementing thread/post counts makes them negative.
Prevent this.
2015-07-05 12:09:51 -07:00
David Anderson 364662f1dc web: add missing _mysql_fetch_array() definition 2015-07-02 10:55:59 -07:00
David Anderson 033d67d927 remote job submission: in batch query, getting CPU time is optional 2015-06-29 15:28:51 -07:00
Rom Walton 4576f446a6 bug fix for last commit 2015-06-25 13:42:08 -04:00
Rom Walton e3bd34c4de remote: Add missing piece for people using the RPC mechanism. 2015-06-25 13:41:15 -04:00
Rom Walton d9dcd82ada remote: Report total CPU Time for a batch when querying batch states. 2015-06-25 13:31:10 -04:00
David Anderson 659af28fd8 Web and BOINC Web: add comments for translated strings 2015-06-24 12:26:06 -07:00
David Anderson d48c48c530 admin web: filter deprecated apps in showing # of shmem slots 2015-06-18 15:08:09 -07:00
Eric J Korpela f253ff87ea - Changed KWSN url 2015-05-04 13:34:53 -07:00
David Anderson cc6e2f573e web: remove PHP warning and fix forum display glitch
The stuff in a forum post footer (ID: x Rating: x etc.)
wasn't vertically aligned.
Putting it inside a <span> fixed it, not sure why.
2015-04-27 10:08:21 -07:00
Eric J Korpela 0072189f9c Fixed problems with the residual "global $master_url;" in forum_email.php 2015-04-27 10:00:33 -07:00
David Anderson 7a00aa4976 web: changes to support MySQL strict mode
In "strict mode", inserts fail if they don't supply values
for columns with no default defined in the schema
(in non-strict mode, 0 and '' are implicit defaults).
Starting with MySQL version 5.6, strict mode is the default.
This breaks some of the BOINC web code,
which does inserts without giving values to some columns.

There are two ways to solve this:

1) change the schema to give defaults everywhere
2) change the PHP code to supply values for more columns.

I'm using 1) in some cases and 2) in others.
This commit fixes some of the errors; there are others.
2015-04-16 00:01:06 -07:00
David Anderson b6e60311ea web: add "Help desk expert" user flag
This doesn't give any moderator rights; it's for display only.

Also, make the special-user strings translatable.
2015-04-04 14:35:18 -07:00
David Anderson 483e8707ac In reset-password email, use URL_BASE rather than master URL 2015-03-25 16:42:00 -07:00
David Anderson 0e9e5f7145 web: add optional project_form_post_info($forum) function
For showing posting instructions for particular forums, e.g. Q&A
2015-03-20 14:54:35 -07:00
David Anderson 4fa8951120 web: add code to optionally record user IP in DB 2015-03-15 17:59:57 -07:00
David Anderson 2b5f319831 web: fix bug in team page display 2015-03-11 12:39:25 -07:00
David Anderson da12f8a45b web: prefs time-of-day enabled defaults 0:00 to 23:59 2015-03-05 12:45:58 -08:00
David Anderson 7788f1f9aa web: in prefs, change enabled default to 0:00 - 23:00 2015-03-04 12:59:40 -08:00
Rom Walton c4dca31a74 LOCALE: Mark up a couple more strings 2015-03-04 11:55:17 -05:00
Rom Walton 7a0bb1bae5 LOCALE: Mark uses of remaining '%' with xgettext:no-php-format. 2015-03-04 11:51:10 -05:00
David Anderson ce1040b91d web: avoid using "%" in translatable strings 2015-03-03 10:52:42 -08:00
David Anderson 8ada05bb96 web: prefs tooltip tweak 2015-03-03 10:04:21 -08:00
David Anderson 1c99ce8aa0 web: make prefs tooltips translatable; tweaks 2015-02-20 13:47:20 -08:00
David Anderson db015b5795 web: prefs tooltips tweaks 2015-02-19 10:56:23 -08:00
David Anderson 7348a9b47f web: prefs tooltip tweaks; simplity table format of project prefs 2015-02-18 23:35:11 -08:00
David Anderson dd1be1c0ce web: prefs pages: show tooltips on entire table row 2015-02-18 20:36:05 -08:00
David Anderson 424e5cbf0a web: don't use nested tables in prefs display 2015-02-18 20:06:09 -08:00
David Anderson db304bf4fb web: add tooltips for computing prefs 2015-02-18 08:29:20 -08:00
David Anderson 7533677f35 web: remove dead sites 2015-02-18 08:29:08 -08:00
David Anderson 4dbf011488 web: When check network "Limit usage to" pref, populate w/ reasonable values 2015-02-13 11:39:03 -08:00
David Anderson 945a0f9f7a admin web: fixes to cancel_workunits.php 2015-02-13 10:13:47 -08:00
David Anderson 8e19bc7d5d web: RSS fix 2015-02-09 08:37:12 -08:00
David Anderson 45f820b30b admin web: add more flexible interface for canceling jobs (from Bernd) 2015-01-23 11:13:44 -08:00
David Anderson 021335b9b7 LDAP support: fixes from Ben 2015-01-22 09:38:48 -08:00
David Anderson 592a8654a9 web: support shortcut icon for project pages
Projects can now define a shortcut icon in project.inc, e.g.
define("SHORTCUT_ICOM", "icon.gif");
See http://boinc.berkeley.edu/trac/wiki/WebConfig
2015-01-19 12:04:12 -08:00
Nicolás Alvarez cfd1d52c80 Update recaptcha to latest version of the API.
This allows a new simplified captcha that in some cases only makes the user
have to tick a checkbox; no need to type garbled characters or anything.
More info at:
http://googleonlinesecurity.blogspot.com/2014/12/are-you-robot-introducing-no-captcha.html
2015-01-17 00:18:44 -03:00
David Anderson c587219a5f web: support MySQL server on non-default port; from Tomi Asp. 2015-01-15 09:10:22 -08:00
David Anderson 1f6082a92d web: fix function name conflict 2015-01-14 20:56:20 -08:00
David Anderson e470620acb web: preliminary support for simplified attach
See http://boinc.berkeley.edu/trac/wiki/SimpleAttach
2015-01-14 09:19:11 -08:00
David Anderson 037f1b3eb2 web: fix PHP errors on empty team search; when delete spam team, delete user too 2015-01-09 10:54:05 -08:00
David Anderson c12ef0b54a web: fix typo in last commit 2014-12-30 20:14:20 -08:00
David Anderson 6906128e0e web: don't show non-English translation incorrectly
The translation code (translation.inc) had a special case
where if the first accepted language was "en", it would show English.
Problem: if the accepted languages are, say, "en-us", "en", "es"
then you'll see Spanish.
Fix: check for both "en" and "en_*" in the special case.

The logic of this code is still flawed, however.
It builds a list $languages_in_use of accepted languages
for which a translation file exists,
and to translate a word it tries these in sequence.
So a page could have translations from several languages.

What it should do is scan the accepted languages until it
finds one that either is English or for which a translation file exists.
Then use that one.
(there could be a check that skips languages for which
the translation is very incomplete).
2014-12-30 09:06:36 -08:00
David Anderson f2caf19b65 web: improve text at top of prefs page
e.g. say the prefs don't apply to Android, or if set locally
2014-12-24 11:32:32 -08:00