WRAPPER: Fix for previous commit
Merge branch 'master' of ssh://boinc.berkeley.edu/boinc-v2
WRAPPER: Remove the pthread library when building for Android.
WRAPPER: remove outdated build script
ANDROID: Fix for previous commit
Merge branch 'master' of ssh://boinc.berkeley.edu/boinc-v2
web: let projects disable forums

Do this by putting
define("DISABLE_FORUMS", true);
in your html/project/project.inc.

If this is set, admin users can still see enough forum functionality
to post and edit news items
(this is linked to from the Admin web interface).

Other users, or non-logged-in access, sees news but no forums
or forum-related info.
fix PHP warning in job submission interface
admin web: show PHP warnings
admin web: fix bug when marking app non-CPU-intensize
remote job submission: tweak
server: improve support for remote input files

A "remote input file" is located on a data server other than the project server.
Previously these could be specified only in the input template,
which was of limited utility.
Add new ways of specifying remote input files:
1) in the create_work program, a remote input file can be specified
  with command-line args
  --remote_file name URL nbytes MD5
  or by the same syntax in stdin when creating multiple jobs
2) add a variant of create_work() called create_work2(),
  which takes a vector of INFILE_DESC structures that can specify
  either local or remote files
remote job submission: support remote input files

Allow jobs submitted remotely to have input files that are remote,
i.e. hosted on other servers. See
http://boinc.berkeley.edu/trac/wiki/RemoteJobs#create_batch
PHP interface to remote job submission: support remote input files
admin web: display badge images correctly in badge admin page
job submission: generate physical name for remote input files

Don't require job submitters to come up with (unique) names
for remote input files.  Just use "jf_MD5".
Server: add some functions to PHP DB interface for platforms

- I'd like to transition from Python (and the clunky
  DB interface we developed) to PHP for tools like xadd
- I'd like to figure out how to change the PHP DB interface
  so that we can define generic functions like insert(), update() etc.
  just one, in a base class.
Client: fix bug involving small image files and UMTS proxies

Context:
1) Some clients are behing proxies that compress image files
2) We added a preference dont_verify_images that disables
   size/MD5 verification of image files, if they're nonempty.
3) If a download finishes, the file is incomplete, and we
   read less than 5 KB, we assume that what we read was a proxy
   error message, and we truncate it from the file.

Bug: if a project has a small image file,
and a UMTS proxy compresses it to < 5 KB,
3) will truncate it to zero, and 2) will flag it as an error,
and the job will fail.

Fix: don't do 3) if it's an image file and dont_verify_images is set.
client: detect NVIDIA driver version on Linux; from Matt Harvey
web: use new DB API here and there; should be no visible changes