Check $_SERVER['HTTPS'] if empty will check server connection port

I have added on this commit

https://github.com/acidvertigo/oscommerce2/commit/04c147148b0eb519c3843c162fef19dd7554c9c5