Commit Graph

3654 Commits

Author SHA1 Message Date
David Anderson 1dcbac0bf1 web: change "Aborted by user" to "Aborted" 2015-11-18 14:34:33 -08:00
Christian Beer 13a002cb8b Web: fix mysqli DB connection initialization
The mysqli class constructor returns an object even if the connection failed. The only way to find out about a connection failure is to call mysqli_connect_error() after the mysqli object was created.
See: http://php.net/manual/en/mysqli.construct.php#refsect1-mysqli.construct-examples
2015-11-18 10:44:46 +01:00
Rom Walton 0ad62aad64 Moved source code into a separate repo.
See: https://github.com/BOINC/boinc-leiden-queue
2015-11-14 22:49:54 -05:00
Rom Walton 49b671f523 Moved source code into a separate repo.
See: https://github.com/BOINC/boinc-bittorrent
2015-11-14 22:49:04 -05:00
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