Detect HTTPS mode in Smarty

Detect HTTPS mode in Smarty

If you get a security alert when in secure mode, it's usually due to offsite elements such as SSL certificate seals, images and javascript that are not secure, in which case you can fix with this code...

Share

If you get a security alert when in secure mode, it's usually due to offsite elements such as SSL certificate seals, images and javascript that are not secure, in which case you can fix with this code...

Examples...

{if $smarty.server.HTTPS eq "1"}Secure{else}Not secure{/if}
{if $smarty.server.HTTPS eq "1"}{$https_location}{else}{$http_location}{/if}
<img src="http{if $smarty.server.HTTPS eq '1'}s{/if}://www.geotrust.com/seal.gif" />
: *
: *
: *
Type the characters you see in the picture:
Captcha

*
Change next order ID value

Change next order ID value

If you've just opened a new store, you may not want customers to see low order ID's.

Protect company emails from spambots

Protect company emails from spambots

This will encode your company email addresses...

Detect HTTPS mode in PHP

Detect HTTPS mode in PHP

Detect HTTPS mode in PHP

More...