Commit Graph

3614 Commits

Author SHA1 Message Date
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