Fix login block redirect
Use request->variable() instead of request_var()
Use phpbb_cache_moderators() instead of cache_moderators()
Get correct url if mode rewrite is on/off