[ticket/12487] Update code in includes/acp/

- Replace calls to $user->lang[] with $user->lang()
- Remove unused variables
- Remove unused global definitions

PHPBB3-12487