View Single Post
  #2  
Old 05-02-2007, 06:16 AM
 
stevekem stevekem is offline
 

Senior Member
  
Join Date: Dec 2006
Posts: 111
 

Default Re: IF Statement for HTTPS/HTTP

I know in 4.1.3, you can use:

Code:
{if $smarty.server.HTTPS ne "on"}<img src="http://www.othersitewithnohttps.com/graphic.gif">{/if}


I'm not sure if it's different for your version or not.




Quote:
Originally Posted by robidigital
Does anyone know of an IF statement that I could use in my template files to display a piece of code only if the site is not in https? For example
Code:
{if $site_secure_or_not == "http://"} <img src="http://www.othersitewithnohttps.com/graphic.gif"> {/if}
__________________
X-Cart Gold v4.4.1
Reply With Quote