Deprecathed and undefined global variables

Deprecathed Var HTTP_SERVER_VARS and undefined $HTTP_USER_AGENT . Now should use $_SERVER