pg_result was PHP3 and died with PHP 4.2; pg_fetch_result is “new”

thanks to PHP4 docs archive and nerville
Merge branch 'Branch_5_1' into Branch_5_2

Conflicts:
	src/common/include/database-pgsql.php
Fixed SQL query
Strip {crypt} prefix from Unix password gotten from LDAP
Trim email address when it comes from LDAP
document a known PHP bug whose fix was rejected
Merge branch 'Branch_5_1' into Branch_5_2
Merge branch 'Branch_5_2' into Branch_5_3
Prepare 5.3.2 release
Fixed /users/foo when restrict_users_visibility is true
Fix testsuite
httpd: disable per-group cgi-bin by default (CVE-2014-6275)

Conflicts:
	src/cronjobs/homedirs.php
httpd: disable per-group cgi-bin by default (CVE-2014-6275)

Conflicts:
	src/cronjobs/homedirs.php
several more places where we can disable cgi-bin for CVE-2014-6275
Merge branch 'Branch_5_1' into Branch_5_2
Merge branch 'Branch_5_2' into Branch_5_3
Fixes to .spec file for gitweb
Use wrapper for cron jobs
fix [#732]: plugin authldap: error and warning messages dislayed twice
itk: packaged apache-2.4 / itk / php / dav_svn for wheezy