David Anderson
920ee2777c
Web: add active/all button in host_app_versions.php
2015-11-12 18:14:47 -08:00
David Anderson
80abc358e3
web: in "application details for host" page, don't show deprecated items
2015-11-09 16:14:30 -08:00
David Anderson
5c269be699
web: message tweak
2015-11-08 22:42:51 -08:00
David Anderson
dde8233752
client: change quit/abort timeouts from 15 to 60 sec.
...
My last change handled only the client-exit case; need to handle all cases.
2015-11-07 16:06:54 -08:00
David Anderson
5f075e9ada
Merge branch 'master' of github.com:BOINC/boinc
2015-11-04 12:03:24 -08:00
David Anderson
d5167aeec5
web: don't show "forgot email" link for non-compute projects
2015-11-04 11:54:38 -08:00
Oliver Bock
116fa7a4b7
Added missing include
2015-10-29 10:11:48 +01:00
David Anderson
89b11f4158
web: initialize post.modified to zero, not current time
2015-10-20 14:08:09 -07:00
David Anderson
98bfcdb2d3
web: don't accidentally write to read-only DB replica
...
BOINC lets you maintain a read-only DB replica,
and certain read-only web pages (like top_users.php)
use the replica in preferences to the master.
But it turns out that these pages aren't actually read-only
because of the too-clever forum_preferences logic.
So sometimes it would add forum_preferences records to the replica,
leading to errors it later copies the same item from the master.
Solution: skip the forum preferences logic if we're using the replica.
We could make this more bulletproof by putting in checks
in insert(), update(), delete() etc.
2015-10-19 14:02:55 -07:00
Christian Beer
72bec2388a
Web: rename recaptcha_get_html() because of a conflict with Drupal
...
When also including an older recaptchalib.php this function gets redefined. Since it is only a wrapper function and only used within BOINC, renaming it is safe.
2015-10-14 12:10:06 +02:00
David Anderson
ac7aa15151
Merge branch 'master' of github.com:BOINC/boinc
2015-10-10 15:33:23 -07:00
David Anderson
bc78eb9eae
LOCLE: Update generic project localizations for projects
2015-10-10 11:36:56 -07:00
David Anderson
757fe4609e
web: same msg tweak
2015-10-09 15:35:37 -07:00
David Anderson
db5d58609b
Web: change BBCode to add [github] tags and remove [trac] tags.
...
(for linking to issue-tracker items and Wiki pages)
2015-10-07 12:21:12 -07:00
David Anderson
3ba2d9c83d
Web: fix language selection mechanism
...
New browsers pass "auto" as the first accepted language.
This broke the language selection logic.
BTW, the language selection logic is a kludge and I don't think it works
correctly for e.g. "es en da"
2015-10-07 12:17:07 -07:00
David Anderson
3bb136aca5
BOINC web site: add wallpaper images
...
Added [sm_img] BBCode tag to show small images.
Kludge. Should be able to say e.g. [img width=400]
2015-09-28 12:40:03 -07:00
Oliver Bock
755e891084
Add missing include
...
* tra() is defined in translation.inc
* prefs.inc didn't yet include it in any way
2015-09-28 14:44:43 +02:00
David Anderson
5f21fe99fd
add license file for rappture example
2015-09-08 22:33:24 -07:00
Rytis Slatkevičius
9a9986006f
Ops: drop count operation from a loop
2015-09-03 09:37:22 +03:00
David Anderson
c70698eeef
Web: fix BBCode transform for [img] when using HTTPS URL
2015-09-02 11:37:37 -07:00
David Anderson
3d50f6b501
Merge branch 'master' of github.com:BOINC/boinc
2015-08-31 12:30:18 -07:00
David Anderson
84d7391220
admin: add --id option to delete_spammers.php (to delete a single user)
2015-08-31 11:49:30 -07:00
Rytis Slatkevičius
ac27765ce0
Fix typos
2015-08-28 10:45:10 +03:00
David Anderson
2cb97f4b89
web: suppress DB connect warnings
2015-08-21 14:17:59 -07:00
David Anderson
52a9a3e746
user web: fix PHP warning
2015-08-19 21:00:51 -07:00
David Anderson
ad5014dd67
user web: change banish period options per Jord's request
2015-08-15 10:31:14 -07:00
Oliver Bock
1c1bcb92d5
admin web: retain state of "Show deprecated app versions"
2015-08-11 12:23:17 +02:00
Oliver Bock
a84ba8e1d0
admin web: on update anchor at current app version
2015-08-11 12:23:04 +02:00
David Anderson
04bc445a24
web: cache the results of getting user project list from boinc.netsoft-online.com.
...
From Janus.
2015-08-07 15:22:10 -07:00
David Anderson
15ac87749c
web: suppress mysql connect warnings
2015-08-06 10:46:59 -07:00
David Anderson
ce82f44bf7
BOINC web site: fix MySQL warnings; fix news RSS
2015-08-04 10:57:05 -07:00
David Anderson
ad83e9e0e1
web: supply defaults for thread/post inserts; for MySQL strict mode
2015-07-29 16:26:25 -07:00
Rom Walton
c479dc30f7
web: Remove obsolete Drupal stuff
2015-07-24 19:03:57 -04:00
David Anderson
776e6fec64
web: if using HTTPS, use it also for gravatar avatars (from Janus).
...
Include a function gravatar_update() in db_update.php to fix existing avatar URLs
2015-07-24 14:09:11 -07:00
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
Rom Walton
43ed191287
Merge pull request #1372 from brevilo/web_global_vars
...
web: make team_types globally accessible (missed in 8be519a616
)
2015-07-24 00:39:22 -04:00
David Anderson
8cd8c8e7ee
server software: handle 64-bit database IDs
...
The SETI@home result table is about to run out of 32-bit IDs,
so we need to move to 64-bit result IDs.
This will happen to the workunit table at some point too.
I changed the server C++ code to use the "long" type for all DB IDs
(and to use appropriate conversion codes like %lu).
"long" is 64 bit on 64-bit machines.
For uniformity I did this for all tables,
even ones (like app) that will never get big.
I chose NOT to change the DB schema for now.
The new code will work with 32-bit ID fields in the DB.
As projects approach the 32-bit limit on a table they can change
its ID field, and fields that reference this table, to BIGINT.
This is likely to happen only on the result and workunit tables.
I put functions in html/ops/db_update.php
to change the IDs of these tables.
2015-07-23 10:11:08 -07:00
David Anderson
e39047b61a
web: make "email friends" feature work without project configuration
...
Previously the feature that lets people send email about the project
to their friends only worked if the project supplied a message.
Remove this restriction; supply a default message.
Also make it work with or without PHPMailer.
Projects can still supply a default subject and message;
the user can now edit these.
Remove the ability to send HTML email
and to macro-substitute names in the message.
2015-07-22 23:37:40 -07:00
Oliver Bock
a515a84879
web: make team_types globally accessible (missed in 8be519a616
)
2015-07-22 16:21:23 +02:00
David Anderson
40a630e56b
web: fix last commit
2015-07-21 23:54:21 -07:00
David Anderson
1a0824bfe5
web: fix bug in family/friends email feature
2015-07-21 23:41:13 -07:00
David Anderson
588e001c17
web: in thread page, don't show some buttons if not logged in
2015-07-20 10:16:14 -07: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
David Anderson
0192970350
web: fix bug when need to login to complete an operation; from Janus
2015-07-12 21:12:06 -07:00
David Anderson
8c53ae493a
size_census.php: include only active hosts (expavg_credit>10) in census.
2015-07-10 16:11:16 -07:00
David Anderson
366e4cd100
server_status.php: query local daemons by looking for PIDs, not commands
...
Avoids confusion if multiple daemons w/ same command.
From tmannerm on github.
2015-07-10 11:21:41 -07:00
David Anderson
a519c3fb25
server_status: show scheduler as a daemon, and check stop_sched and stop_upload
...
From tmannerm on github
2015-07-10 11:16:12 -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
4f0d27c702
remote job submission: create output file zip in html/cache rather than /tmp
...
/tmp is small on some systems
2015-07-07 23:21:10 -07:00
David Anderson
ab2453a35a
web: fix bug if request foundership of a team with no founder.
...
Also, grant such a request immediately
2015-07-07 23:10:59 -07: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
Rom Walton
37d8c0b4e1
HTML: Make sure BOINC-Project-Generic.pot contains comments.
2015-06-24 15:42:30 -04:00
David Anderson
659af28fd8
Web and BOINC Web: add comments for translated strings
2015-06-24 12:26:06 -07:00
David Anderson
4f4b842227
Web: fix XSS issue in result.php
2015-06-22 11:03:42 -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
452fe458a7
size_census.php: avoid divide by zero
2015-04-28 00:32:01 -07:00
David Anderson
1c6267f2f1
scheduler: fix possible bug if use assigned jobs with FCGI scheduler
...
Need to end the enumeration.
2015-04-27 10:10:32 -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
f55f64eec3
admin web: fix to dbinfo.php
2015-04-18 09:16:34 -07:00
David Anderson
f63b3dea25
web: fix crufty profile code
2015-04-16 10:48:23 -07:00
David Anderson
65439286df
web: MySQL 5.6 fixes
2015-04-16 10:36:51 -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
37ae3de469
web: tweak user privileges page
2015-04-06 18:58:29 -07:00
David Anderson
14b9bd7772
web: add script for editing user permissions
2015-04-05 21:30:31 -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
226aac88c5
web: error summary page tweaks
2015-04-03 11:52:03 -07:00
David Anderson
97927e114b
web: add error summary script
2015-04-01 00:12:21 -07:00
David Anderson
3c2f31fece
comment tweaks
2015-03-25 16:45:36 -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
3031d56363
web: add option for project-defined text in server status page
2015-03-16 21:48:49 -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
d84bee5063
web: bug fixes in server_status.php
2015-03-13 12:42:50 -07:00
David Anderson
e44b96ca4b
web: fixes to server status page
2015-03-12 12:21:13 -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
Oliver Bock
2a1c2ae3ce
Partially revert "locale: Update compiled localization files"
...
*.po files are normalized to LFs and Charlie fixed this in 88d14fd
.
No idea why this got reverted by David's commit but this fixes it again.
This partially reverts commit 252e45dadc
.
2015-03-03 11:38:59 +01:00
David Anderson
f359db8a87
web: CPU list tweaks
2015-03-01 09:25:41 -08:00
David Anderson
3a03188dbd
web: cpu_list.php fixes
2015-02-28 21:01:35 -08:00
David Anderson
5d91e10d24
web: more efficient cpu_list.php
2015-02-28 20:36:00 -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