[ticket/8323] Do not allow sending of Private Messages to users who do not have permission to read private messages

PHPBB3-8323
[ticket/8323] Remove code used for testing

PHPBB3-8323
[ticket/8323] Do not allow sending of Private Messages to users who are banned

PHPBB3-8323
[ticket/8323] Correcting the comment

PHPBB3-8323
[ticket/8323] Hide the Send PM link if users cannot receive the PM

Updated memberlist/viewtopic to the new rules

PHPBB3-8323
[ticket/8323] Do not allow sending PMs to Inactive users

PHPBB3-8323
[ticket/8323] Allow sending PMs to temporarily banned users

Added an argument to the phpbb_get_banned_user_ids() function to allow specifying a banned end time (default true for current functionality, false for only permanent bans, timestamp to find banned until a specified time)

PHPBB3-8323
[ticket/8323] Cleanup viewtopic code (not sure how this mess happened)

PHPBB3-8323
[ticket/8323] Correct PM notification settings (only notify those who can receive them)

Also correcting the way it was setup for users to be able to receive PMs (do not allow administrators/moderators to send to banned, inactive, or non-standard users, that just doesn't make sense)

PHPBB3-8323
[ticket/8323] Allow temporarily banned users to receive PMs, but not a notification

PHPBB3-8323
[ticket/8323] Only disable administrative deactivated accounts from receiving PMs

Allow other types of inactive accounts to receive PMs. Remove the banned PM error message and use the string saying they do not have permission (less translation)

PHPBB3-8323
Merge branch 'develop' of git://github.com/phpbb/phpbb3 into ticket/8323

Conflicts:
	phpBB/viewtopic.php
[ticket/8323] Comments for inactive reasons in constants.php

Copied from language output

PHPBB3-8323
[ticket/8323] Unit test for phpbb_get_banned_user_ids

PHPBB3-8323
[ticket/8323] Comments

PHPBB3-8323
[ticket/8323] dataProvider for the test; better test data

PHPBB3-8323
[ticket/8323] Comments

PHPBB3-8323
[ticket/8323] More readability in test case

PHPBB3-8323
[ticket/8323] Comments on phpbb_get_banned_user_ids input for test

PHPBB3-8323
[ticket/8323] Combine into a single query

PHPBB3-8323