[ticket/346] Remove usage of legacy phpBB functions and methods

Fixes #346