You are here

function securepages_is_secure in Secure Pages 5

Same name and namespace in other branches
  1. 6.2 securepages.module \securepages_is_secure()
  2. 6 securepages.module \securepages_is_secure()

Check if the current page is SSL

5 calls to securepages_is_secure()
securepages_form_alter in ./securepages.module
Implementation of hook_form_alter()
securepages_init in ./securepages.module
Implementation of hook_init()
securepages_link_alter in ./securepages.module
Implementation of hook_link_alter()
securepages_match in ./securepages.module
securepages_match()
securepages_test in ./securepages.module
Secure Pages SSL Test

File

./securepages.module, line 260

Code

function securepages_is_secure() {
  return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? TRUE : FALSE;
}