Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 05-22-2008 08:34:40

celdirect
Member
From: UK
Registered: 04-01-2005
Posts: 782

Not show Script

Hi,

I am writing a little script to show a popup - but i need to put in an IF statement for it not to show/run if the page is secure https

Like

if ($fd_ref ne 'https') {   

But that does not work (it was a shot in the dark)

Does anyone know what the reference is to see if the page is secure or not?

Thanks

Offline

 

#2 05-22-2008 09:13:35

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Not show Script

There is a page variable called 'secure'.  You could try:

Code:

$secure = $q->param('secure');

if ($secure ne 'Y') {

I don't know if that variable is always available, but it certain is on the first page of the checkout when the checkout runs in secure mode.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#3 05-22-2008 13:28:27

celdirect
Member
From: UK
Registered: 04-01-2005
Posts: 782

Re: Not show Script

Hi Rachael,

Thank you - that worked a treat.

I racked my brain and just could not think what it would be -  You have saved the day again.

Offline

 

#4 05-22-2008 14:19:01

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Not show Script

Hi Charlie,

You're very welcome - I'm glad it worked for you.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#5 05-22-2008 14:20:46

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Not show Script

Rachael has such a large collection of Gold Stars and Kudos the US is in danger of tilting towards the East Coast smile

Offline

 

#6 05-22-2008 14:41:10

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Not show Script

LOL... if only I could use them to somehow help the sorry state of our economy :-S


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#7 05-22-2008 20:32:59

celdirect
Member
From: UK
Registered: 04-01-2005
Posts: 782

Re: Not show Script

Yes Dave,

Rachael is great star - and her input on this forum is outstanding, more than I have ever know on any forum!

Rachael - Is the forum queen of 2008!!!

Offline

 

Board footer