[ticket/12836] Add event core.functions.redirect

https://tracker.phpbb.com/browse/PHPBB3-12836

PHPBB3-12836
Shouldn't `else` and the brace after it be on its own line?