[ticket/11688] Purge TWIG cache

Purge directories
Replace opendir() with DirectoryIterator

PHPBB3-11688
[ticket/11688] tpl_ files are no longer used

Remove tpl_ and ctpl_ from cache->purge() because those prefixes
are no longer used.

PHPBB3-11688
[ticket/11639] generate_text_for_display on functions_posting.php

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11639
[ticket/11639] Added an useful comment.

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11639
[ticket/11639] Whitespace fixing

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11639
[ticket/11641] generate_text_for_display on mcp/mcp_pm_reports.php

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11641
[ticket/11642] generate_text_for_display on mcp/mcp_post.php

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11642
[ticket/11643] generate_text_for_display on mcp/mcp_queue.php

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11643
[ticket/11653] generate_text_for_display on mcp/mcp_topic.php

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11653
[ticket/11655] generate_text_for_display on ucp_pm_viewmessage.php

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11655
[ticket/11642] Fixed typo in the variable name.

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11642
[ticket/11643] Fixed typo in the variable name.

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11643
[ticket/11639] Whitespace fixing

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11639
[ticket/11655] wrong var names for the uid and for the bitfield

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11655
[ticket/11639] Removed a non-needed unset

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11639
[ticket/8228] Fix whitespaces before code in Firefox

Based on the "[code] enhancements" modification by TerraFrost

PHPBB3-8228
[ticket/10037] Apply attached patch with a few changes

PHPBB3-10037
[ticket/10917] Revert use of phpbb wrapper

PHPBB3-10917
[ticket/10917] Variable used only once so delete it

The variable $this->unequal_version was only used once
and only to display the version the package updates to.
To display the version it updates to makes no sense when
the update files just aren't meant to update from the
current version. (It's already shown in an error message)
So I deleted the variable from there.

Furthermore the use of version_compare makes the variable
useless in that context which is why I deleted the variable
from the whole file and replaced it in the relevant if statement
with the old comparison.

PHPBB3-10917
Merge remote-tracking branch 'Elsensee/ticket/10917-2' into develop-olympus

* Elsensee/ticket/10917-2:
  [ticket/10917] Variable used only once so delete it
  [ticket/10917] Revert use of phpbb wrapper