[ticket/10658] Use get_user_rank() for group ranks on group view.

The old code was buggy because it did not prefix the path with the phpBB root
path which causes problems with bridges and other URL rewriting.

PHPBB3-10658
[ticket/10658] Do not fetch ranks into the $ranks array, it is no longer used.

PHPBB3-10658
[ticket/10752] Removing globals acp_styles

Removing global variables from functions in acp_styles

PHPBB3-10752
[ticket/10752] Pass-by-reference fix for acp_styles

Fixing pass-by-reference bug in acp_styles

PHPBB3-10752
[ticket/10752] More fixes for acp_styles

Fixing return doc blocks, spacing, incorrect sorting function and other minor fixes

PHPBB3-10752
[ticket/10754] Changing $style to $phpbb_style

Renaming global variable $style to $phpbb_style

PHPBB3-10754
[ticket/10752] Changing private to protected variables in acp_styles

Changing private to protected variables in acp_styles

PHPBB3-10752
[ticket/10752] Fixes for acp_styles

Adding form token, changing functions to public/protected, fixing few more errors

PHPBB3-10752
Merge remote-tracking branch 'github-cyberalien/ticket/10752' into develop

* github-cyberalien/ticket/10752:
  [ticket/10752] Fixes for acp_styles
  [ticket/10752] Changing private to protected variables in acp_styles
  [ticket/10752] More fixes for acp_styles
  [ticket/10752] Pass-by-reference fix for acp_styles
  [ticket/10752] Removing globals acp_styles
[ticket/10561] All users can choose deactivated styles (fixed).

A form exploit enabled the users to select a deactivated
style. Fixed with extra check on submit, with a new function
styles_verify to check if the selected style is activated or not.

PHPBB3-10561
[ticket/10561] Changes made to function phpbb_style_is_active().

Fixed return type, documented function and, removed
style_id from fetch.

PHPBB3-10561
[ticket/10561] Changes made to $db->sql_fetchrow().

Changed $db->sql_fetchrow() to $db->sql_fetchfield().

PHPBB3-10561
[ticket/10561] Fixed syntax error and renamed return variables.

Renamed $style_verified to $style_is_active and fixed extra ';'.

PHPBB3-10561
[ticket/10508] Marked as read message now less specific.

Changed 'The selected forums have been marked read' to 'Forums
have been marked read'

PHPBB3-10508
Merge remote-tracking branch 'bantu/ticket/10658' into develop-olympus

* bantu/ticket/10658:
  [ticket/10658] Do not fetch ranks into the $ranks array, it is no longer used.
  [ticket/10658] Use get_user_rank() for group ranks on group view.
Merge branch 'develop-olympus' into develop

* develop-olympus:
  [ticket/10658] Do not fetch ranks into the $ranks array, it is no longer used.
  [ticket/10658] Use get_user_rank() for group ranks on group view.
[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