change getnv to $_SERVER superglobal
Change getenv('HTTPS') to $_SERVER['HTTPS']

Checking also connection port as on some environments $_SERVER['HTTPS'] can be empty
Merge pull request #26 from acidvertigo/patch-26

change getnv to $_SERVER superglobal
Ass strtlower to SERVER HTTPS
Merge pull request #32 from acidvertigo/patch-33

Change getenv('HTTPS') to $_SERVER['HTTPS']
Merge pull request #169 from haraldpdl/superglobals

Superglobals