[ticket/11701] Loop variables are not passed correctly to events

PHPBB3-11701
[ticket/11701] Remove useless str_replace

PHPBB3-11701
[ticket/11701] Fix loops var check

PHPBB3-11701
[ticket/11701] Fix regex for appending |length

PHPBB3-11701
[ticket/11701] Refix regex for appending |length

PHPBB3-11701
[ticket/11701] Test events in loops

PHPBB3-11701
[ticket/11701] New line at EOF

PHPBB3-11701
[ticket/11751] Add mcp modules for softdelete  on update

PHPBB3-11751
Merge remote-tracking branch 'EXreaction/ticket/11701' into develop

* EXreaction/ticket/11701:
  [ticket/11701] New line at EOF
  [ticket/11701] Test events in loops
  [ticket/11701] Refix regex for appending |length
  [ticket/11701] Fix regex for appending |length
  [ticket/11701] Fix loops var check
  [ticket/11701] Remove useless str_replace
  [ticket/11701] Loop variables are not passed correctly to events
Merge pull request #1633 from nickvergessen/ticket/11751

[ticket/11751] Add mcp modules for softdelete  on update
[feature/only-op-can-view] ACP language keys and SQL data

Include the f_read_other permission in the DB. Defaults to true
Two new roles:
- ROLE_DESCRIPTION_FORUM_STANDARD_NO_OTHER <-like standard without f_read_other
- ROLE_DESCRIPTION_FORUM_LIMITED_NO_OTHER <-like limited without f_read_other

Altering other "f_" ROLES so that they include the f_read_other as true (1)

Added the language keys for f_read_other (requires adding a tab before all "=>"

PHPBB3-10624
[feature/only-op-can-view] Adding ACP language keys

Adding the language keys  for the ACP roles systema and explanation about each
role.
The big amount of lines changed is caused by a need to add a tab before "=>" in
all lines so that all the "=>" may match from line to line

PHPBB3-10624
[feature/only-op-can-view] Bug fix: git destroyed permissions.php

This is the fix to remove the file git destroyed caused by a misplaced head.
This removes the git marks and the previous version form the file.

PHPBB3-10624
[feature/only-op-can-view] Apply to feeds.php

After applying this feature to the ACP, now the feature is also applied to
the feeds.php.
Many tests were made to make sure that it is working as it should. Please
test and confirm that all is working properly.

PHPBB3-10624
[feature/only-op-can-view] Follow code guidelines in feeds.php

There was a mistake in feeds.php where it wasn0t following the coding
guidelines.

PHPBB3-10624
[feature/only-op-can-view] Viewforum Edit. Apply this to viewforum

- New template variable to forumlist_body.html -> FORUM_PRIVATE
- forumlist_body.html tweaked:
 - If the user can only see his posts then:
  - He cannot see the number of posts. -> "?" appears
  - He cannot see the number of topics. -> "?" appears
  - He cannot see the last post. Finding it would create a significant overhead
    caused by both PHP and DBMS processing. May be added in the future as an
    option. Anyway, this is the way most other forums act.
- viewforum.php:
 - If the user has limited access, the topic recount is used.
 - To prevent too much overhead by many if's, if sort_days exist, then solve
   everything in 1 if. Probably the code can be considered cleaner this way.

- New language key "PRIVATE_FORUM_FORUM".
 - Used to replace the last post date, image link and author in
   forumlist_body.html

Notes:
 Announcements and global announcements are not filtered. This is no bug, this
 is made like that by design. It's useful for the forum admins/mods to be able
 to post topics in a way everyone can see.

 Unless there's a bug, it's now officialy impossible to get to every single post
 that can exist in a forum though viewforum (not search.php)
 if you don't have the right to see other's posts.
 Same happens for the real number of posts, the last poster of the forum,
 the number of topics and any other information that can lead to people
 thinking or finding out that there are more posts inside that forum than
 announcements, global announcements and topics they started by (him/her)self.

PHPBB3-10625
[feature/only-op-can-view] Feeds changes

Improved a comment to be more expressive.
After some discussion, it was decided that news should also be filtered.

PHPBB3-10625
[feature/only-op-can-view] The search.php edits

search.php seems to be completly "sealed"
My search shows that all that only-op-can-view is now completly applied to
search.php now.

PHPBB3-10625
[feature/only-op-can-view] Altering forum listing

I was suggested a while ago to do this but I had forgotten. Now I have applied
the suggested changes. Make it show just like it shows with links
replacing forums (a forum of type link). This also allows not to use the '?'.
Is this way ok?

PHPBB3-10625
[feature/only-op-can-view] Applying to the posting page

This commit applies the "protection" needed for posting.php by the time this
commit is made.
These changes are simple and work much like the reading permission.

PHPBB3-10623