Difference between revisions of "JURI/isSSL"

From Joomla! Documentation

(New page: Returns '''true''' if the current request is using [ SSL]; otherwise returns '''false'''. ===Syntax=== boolean isSSL() ===Example=== <sour...)
m (See also: re-categorisation)
Line 11: Line 11:
===See also===
===See also===
* [ JURI->isSSL on]
* [ JURI->isSSL on]

Latest revision as of 10:35, 9 August 2012

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


boolean isSSL()


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

See also