Replace direct access to $_SERVER with $INPUT->server->…