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
rpm packaging: add requires for plugin-compactpreview
db: fix warnings on install due to duplicate constraints
install: pre-create config_path/custom/
install: mta: generate password and privileges for db access
lists: fix cronjob path
mta: more gforge->fusionforge
Fixed SQL query
Strip {crypt} prefix from Unix password gotten from LDAP
plugin mantisbt: cleanup html, remove some useless vars.
plugin mantisbt: cleanup html, remove some useless vars.
Use AuthorizedKeysCommand instead of replicating ~/.ssh/authorized_keys on the filesystem; enable SSH testsuites on src and rpm
testsuite: install openssh-server from backports on debian7
Remove group write permissions on directories containing ssh_akc.php otherwise openssh considers this a security hazard
plugin mantisbt: cleanup
Trim email address when it comes from LDAP
plugin mantisbt: cleanup + support user view
plugin mantisbt: modify db
debian: fix gforge/fusionforge typo in -lists