Update ADOdb to v5.17 (released 17-May-2012)

Changes vs upstream release[1]:

 - removed following dirs and files:
   contrib/ cute_icons_for_site/ docs/ pear/ tests/ server.php
 - converted CRLF to LF
 - trimmed trailing whitespace

[1] http://phplens.com/lens/lensforum/msgs.php?id=19169

Fixes #13713
ADOdb pgsql fix: AlterColumnSQL conversion from bool to int

When changing type of a column from boolean to integer, PostgreSQL does
not provide implicit type cast, so the library needs to specify it via
USING statement when generating the SQL·

Porting part b) of commit 10871e5afc0bffc546b1a3d60bd7a459fa37e762

This issue exists in ADOdb <= 5.17. Upstream bug report
http://phplens.com/lens/lensforum/msgs.php?id=19204

Fixes #14398
ADOdb pgsql fix: AlterColumnSQL incorrect SQL generated

Fixes behavior on PostgreSQL, where the schema.php upgrade step

$dict->AlterColumnSQL('mantis_user_pref_table', "redirect_delay I
NOTNULL DEFAULT 0" ) );

Generates incorrect SQL:

ALTER TABLE mantis_user_pref_table ALTER COLUMN INTEGER SET NOT NULL
ERROR: column "integer" of relation "mantis_user_pref_table" does not
exist

Porting part a) of commit 10871e5afc0bffc546b1a3d60bd7a459fa37e762

This issue exists in ADOdb <= 5.17. Upstream bug report
http://phplens.com/lens/lensforum/msgs.php?id=19202

Fixes #14398
ADOdb pgsql fix: system warning sprintf(): Too few arguments error

Upstream bug report http://phplens.com/lens/lensforum/msgs.php?id=19186
ADOdb pgsql fix: Allow Quoted Default Values in DataDict

Allows definition of defaults e.g. timestamps

Upstream bug report
http://phplens.com/lens/lensforum/msgs.php?id=17397

Porting commit 156910b5dea81fe234be37695fca926f6490fb9d by Paul Richards

Fixes #14398
Fix install_category_migrate() function for PostgreSQL

With PostgreSQL, the function was throwing a warning due calling
db_query_bound() with mismatched number of parameters to the query.

It was not an issue for other DB's where the parameters are not
positional.
Fix PostgreSQL error when adding project/subproject (schema change)

The error is caused by columns mantis_project_table.inherit_global and
mantis_project_hierarchy_table.inherit_parent, which are defined as
unsigned int in schema.php, but treated as boolean in the code. This is
a problem with PostgreSQL due to strict type checking, but not on MySQL
as type cast is done automatically.

Changes in schema.php the type for the 2 fields project.inherit_global
and project_hierarchy.inherit_parent from Integer to Boolean

Fixes #14385
ADOdb pgsql fix: AlterColumnSQL conversion from int to bool

When changing type of a column from integer to boolean, PostgreSQL does
not provide implicit type cast, so the library needs to specify it via
USING statement when generating the SQL·

Reverse problem of 3fc6200386a975a204f6951acba4067b40ecabd0

This issue exists in ADOdb <= 5.17. Upstream bug report
http://phplens.com/lens/lensforum/msgs.php?id=19204
Revised code and additional fixes from John Lim
John Lim's reverted changes

Code optimization / consistency update by dregad were reverted to
original state - e-mail sent to John on 30-Aug-2012 to ask why
Optimize user_get_all_accessible_projects()

On instances having a large number of projects, this function would
consume significant resources while processing all the subprojects to
determine if one is accessible to the user (about 25 seconds to load
main_page.php for 5'000 projects, without subprojects).

The performance bottleneck was the array_merge() call in the loop. This
has been replaced by a foreach working on an associative array. The same
page now loads under 1 second.

Fixes #9876
Fix #15812: Wrong example code for custom validation functions
Merge pull request #82 from vboctor/standard_filters

Fixes #15807: Support standard filters like ones in My View page in SOAP API

Implemented mc_project_get_issues_for_user() that supports the following:

Assigned To User (or 0 for unassigned)
Reported By User
Monitored By User

Signed-off-by: Damien Regad <dregad@mantisbt.org>

Ported to master branch with modified filter constants, as per commit
c42ac127bd05851d62a9ab912229d8c279f760c9.

Conflicts:
	my_view_inc.php

Other changes:
	core/filter_api.php
Documentation: added missing closing tag
Do not display login dialog when using HTTP_AUTH

Fixes #11084
Revert "Do not display login dialog when using HTTP_AUTH"

This reverts commit 90633ab8bcfd1b9f42ad8a1882f6b1b26716cec5.
Documentation: fix docbook build errors on developers guide

  * duplicate id in Events_Reference_Output.xml
  * closing tag missing in Integrating.xml
Documentation: replace use of sectN tags by generic section

Publican issues the following message when building the docbook:

*WARNING: Unvalidated tag: 'sect1'. This tag may not be displayed
correctly, may generate invalid xhtml, or may breach Section 508
Accessibility standards.
Documentation: replace 'link' tags by 'xref'

This avoids warnings when publican builds the docbook
Documentation: bump developers guide version to 1.3