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

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default Re: IF Statement for HTTPS/HTTP

Hello,

This is what you would use:
Code:
{if $smarty.server.HTTPS ne "on"} http code here {else} https code here {/if}
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}
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote