[ticket/346] Add back missing IN_PHPBB checks

B3P-346