Change getenv('HTTPS') to $_SERVER['HTTPS']

Checking also connection port as on some environments $_SERVER['HTTPS'] can be empty
Ass strtlower to SERVER HTTPS
Merge pull request #32 from acidvertigo/patch-33

Change getenv('HTTPS') to $_SERVER['HTTPS']