add some protection in phpbb plugin