function securepages_is_secure in Secure Pages 6.2
Same name and namespace in other branches
- 5 securepages.module \securepages_is_secure()
- 6 securepages.module \securepages_is_secure()
Check if the current page is SSL
6 calls to securepages_is_secure()
- SecurePagesTestCase::_testMatch in ./
securepages.test - Tests the securepages_match() function.
- securepages_form_alter in ./
securepages.module - Implements hook_form_alter().
- securepages_init in ./
securepages.module - Implements hook_init().
- securepages_match in ./
securepages.module - Checks the page past and see if it should be secure or insecure.
- securepages_redirect in ./
securepages.module - Checks the current page and see if we need to redirect to the secure or insecure version of the page.
File
- ./
securepages.module, line 246 - Provide method of creating allowing certain pages to only viewable from https pages
Code
function securepages_is_secure() {
// This check is identical to Drupal 7's. See D7 bootstrap.inc.
return isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on';
}