[ticket/12844] Don't clear $dbpasswd early in connection manager

PHPBB3-12844
[ticket/12846] SQLite3 bug in profilefield_base_migration.php

Using profilefield_base_migration.php to create a custom profile
field with SQlite3 DBMS returns warning:

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/sqlite3.php
on line 218: SQLite3Result::fetchArray(): Unable to execute statement:
constraint failed

This is due passing filed_id and lang_id to the DB driver in
unspecified format. As they are always int we should cast them
in int to prevent the error message appearance.

PHPBB3-12846
Merge pull request #2727 from Nicofuma/ticket/12844

[ticket/12844] Don't clear $dbpasswd early in connection manager

* Nicofuma/ticket/12844:
  [ticket/12844] Don't clear $dbpasswd early in connection manager
[ticket/12828] Add ucp_prefs.php common core event

Add common core event at the bottom of the includes/ucp/ucp_prefs.php
to allow additional actions (like template variable assignments etc.)
before the page load.

PHPBB3-12828
[ticket/12849] Fixed possible ReferenceError in core.js.

PHPBB3-12849
Merge pull request #2731 from callumacrae/ticket/12849-2

[ticket/12849] Fixed possible ReferenceError in core.js.

* callumacrae/ticket/12849-2:
  [ticket/12849] Fixed possible ReferenceError in core.js.
Merge pull request #2728 from lucifer4o/ticket/12846

[ticket/12846] SQLite3 bug in profilefield_base_migration.php

* lucifer4o/ticket/12846:
  [ticket/12846] SQLite3 bug in profilefield_base_migration.php
[ticket/12854] Don't show contact page link if board emails are disabled

PHPBB3-12854
[ticket/12855] Dump the container based on DEBUG_CONTAINER instead of DEBUG

PHPBB3-12855
Merge pull request #2737 from Elsensee/ticket/12855

[ticket/12855] Dump the container based on DEBUG_CONTAINER instead of DEBUG

* Elsensee/ticket/12855:
  [ticket/12855] Dump the container based on DEBUG_CONTAINER instead of DEBUG
Merge pull request #2736 from Elsensee/ticket/12854

[ticket/12854] Don't show contact page link if board emails are disabled

* Elsensee/ticket/12854:
  [ticket/12854] Don't show contact page link if board emails are disabled
Merge pull request #2709 from rxu/ticket/12828

[ticket/12828] Add ucp_prefs.php common core event

* rxu/ticket/12828:
  [ticket/12828] Add ucp_prefs.php common core event