Actions

JURI/isSSL

From Joomla! Documentation

Returns true if the current request is using SSL; otherwise returns false.

Syntax

boolean isSSL()

Example

$u =& JFactory::getURI();
echo 'Current request is ' . JURI::base() . ' which ';
echo $u->isSSL() ? 'uses SSL' : 'does not use SSL';

See also