[pmwiki-users] Detecting an SSL Connection
Patrick R. Michaud
pmichaud at pobox.com
Fri Aug 11 11:57:46 CDT 2006
On Fri, Aug 11, 2006 at 01:26:02PM +0100, Ian Barton wrote:
> Some of my sites can be accessed via SSL or via http. I would like to
> display a gif if the user is using SSL. So the question is "How can I
> detect within PmWiki if the user is using https?"
It depends on your webserver -- there's no perfect
standard for it. However, the standard mechanism would
be to do something like:
$isHTTPS = isset($_SERVER['HTTPS']);
Pm
More information about the pmwiki-users
mailing list