Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pagecontent depending on SSL/NONSSL


Mfred

Recommended Posts

Posted

Hi,

I wanna have a different header for SSL and NONSSL sites.

 

Therefor I thought of the following:

 

<?php if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) {
  echo 'test-SSL';
   } else {
	echo 'test-NONSSL'; }
  } ?>

 

But then my complete header disappears.

 

What I am doing wrong there?

 

TIA

mfred

Posted

I use

 

<?php 
if ($request_type != 'SSL') {
//do this
} else { 
//do that
}
?>

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...