[ticket/12487] Update code in adm/, develop/ and download/

- Replace $user->lang[] calls with $user->lang()
- Remove unused declarations
- Remove unused imports

PHPBB3-12487