Actions

Difference between revisions of "JURI/isSSL"

From Joomla! Documentation

(New page: Returns '''true''' if the current request is using [http://en.wikipedia.org/wiki/Secure_Sockets_Layer SSL]; otherwise returns '''false'''. ===Syntax=== boolean isSSL() ===Example=== <sour...)
 
m (See also: re-categorisation)
 
Line 11: Line 11:
 
===See also===
 
===See also===
 
* [http://api.joomla.org/Joomla-Framework/Environment/JURI.html#isSSL JURI->isSSL on api.joomla.org]
 
* [http://api.joomla.org/Joomla-Framework/Environment/JURI.html#isSSL JURI->isSSL on api.joomla.org]
<noinclude>[[Category:Development]][[Category:Framework]][[Category:JURI]]</noinclude>
+
<noinclude>[[Category:JURI]]</noinclude>

Latest revision as of 11:35, 9 August 2012

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