[ticket/10760] Use externally specified PHP_BIN if any.

We have a PHP_BIN variable but we always set it unconditionally,
therefore in order to use a different php binary one had to
modify the hook script.

Instead set PHP_BIN if it is not set.

Now one can set PHP_BIN in their environment to use a non-default
php binary.

PHPBB3-10760
[ticket/10760] Use echo -e only if echo understands -e.

/bin/echo on freebsd and dash's builtin echo do not understand -e,
therefore -e is printed with the other messages in such cases.

Test if echo understands -e, if not do not use it.

PHPBB3-10760
[ticket/10760] Quote PHP_BIN when using it.

This should make a difference on windows where paths may include spaces.

PHPBB3-10760
[ticket/10760] Account for display_errors=stderr in pre-commit hook.

With that php.ini value set errors are printed to stderr, therefore
by redirecting stderr to /dev/null we also throw out the errors.

Instead merge stderr into stdout.

PHPBB3-10760
[ticket/10607] Added 'Powered by' translation string.

Added POWERED_BY line to common.php and modified the templates
to use it.

PHPBB3-10607
[ticket/10760] Catch both versions of parse error output in php.

PHPBB3-10760
[ticket/10760] PHP is great. This commit is the proof.

PHPBB3-10760
[ticket/10760] Value must be quoted as it might be two words.

PHPBB3-10760
[ticket/10760] Fix numbering in php fun facts.

PHPBB3-10760
[ticket/10650] Displaying last topic on forum list

The most recent topic title of the forum can now
be displayed on the board index. An option is provided
in the ACP under the 'General Forum Setting' which
allows the admin to enable or disable this feature.

PHPBB3-10650
[ticket/10650] Added static sql files

Ran create_schema_files.php and added
the generated static sql files to the commit.

PHPBB3-10650
[ticket/10650] Changed language files and forumlist

The entry in languages have been changed from
title to subject. Also the IF condition in forumlist_body.html
has been properly intented.

PHPBB3-10650
[ticket/10650] Corrected space before true

Inserted a space before 'true' as per coding
guidelines.

PHPBB3-10650
[ticket/10650] Cropped subject and inserted newline

The subject being displayed in the forum list have been
shortened to 30 characters. Also it is now being shown
in a separate line.

PHPBB3-10650
[ticket/10650]Added permission checking and utf8 functions

Passworded forums and ones in which user doesn't have
read access will be excluded. Also uft8 based string functions and
html encode/decode functions have been used to sanitise subject.

PHPBB3-10650
Merge remote-tracking branch 'Fyorl/ticket/10607' into develop-olympus

* Fyorl/ticket/10607:
  [ticket/10607] Added 'Powered by' translation string.
Merge branch 'develop-olympus' into develop

* develop-olympus:
  [ticket/10607] Added 'Powered by' translation string.

Conflicts:
	phpBB/adm/index.php
	phpBB/language/en/common.php
[ticket/10650] Corrected intendation

Corrected the intendation of if condition.

PHPBB3-10650
[ticket/10650] Added checking for empty subjects

Now empty subjects will not be displayed in a
new line on the forum list.

PHPBB3-10650
Merge remote-tracking branch 'rahulr92/ticket/10650' into develop