Hi,
I have a live chat widget. To have the widget to work in SSL pages, I had to change in all .php from:
if(!strstr($hostdomain,"http")){ $hostdomain="http://".$hostdomain; }
to:
if(!strstr($hostdomain,"https")){ $hostdomain="https://".$hostdomain; }
The problem is when I change the http to https in the code above, now the widget don't appear in non-ssl pages.
So my question is how can I modify the code below to have it to work with both http and https pages ?