Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Non-SSL Only For Box?


Nick_W

Recommended Posts

Hi,

 

I want to display a box in the left column only if the user is using a non-SSL connection.

 

How can I determine this (what code to I need to put in column_left.php)?

 

TIA,

 

Nick.

Link to comment
Share on other sites

Just curious, but with the latest snapshot, shouldn't that be....

 

if (getenv('HTTPS') == 'on') {

do your thing

}

 

 

It is my understanding that we changed $request_type == 'NONSSL' to getenv('HTTPS') == 'on' in MS1.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Just curious, but with the latest snapshot, shouldn't that be....

 

if (getenv('HTTPS') == 'on') {

do your thing

}

 

 

It is my understanding that we changed $request_type == 'NONSSL' to getenv('HTTPS') == 'on' in MS1.

According to my code (=snapshot of last night) it's the other way around. The current code uses the $request_type which is set in application_top.php:

// set the type of request (secure or not)

 $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

I guess this is done so the getev() is only called once to get the connection-type.

Greetings from Marcel

|Current version|Documentation|Contributions|

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...