Check SSL status from PHP's HTTPS header instead of port

I believe this is the more correct way to check if AjaXplorer is being served through SSL.

This will fix situations where..
1) the webserver serving AjaXplorer is being proxied by an SSL offloader (and the "X-Forwarded-Proto" header is set and properly interpreted)
2) the webserver serving AjaXplorer doesn't run it's SSL on the standard 443 port
Merge pull request #219 from josh4trunks/patch-1

Check SSL status from PHP's HTTPS header instead of port