Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display a picture only if page is not secure.


rs2k

Recommended Posts

I have a free web tracker that I like to use but I have not been using it because it makes my page pop up the dreaded non secure box. Is there a way to place it in the footer to display only if the page is using http instead of https?

Link to comment
Share on other sites

I have a free web tracker that I like to use but I have not been using it because it makes my page pop up the dreaded non secure box. Is there a way to place it in the footer to display only if the page is using http instead of https?

 

 

Figured it out:

 

<?php 
if ($_SERVER['HTTPS'] != "on") {
echo 'info here';
} 
?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...