You are here

function _bootstrap_library_isSecure in Bootstrap Library 8

File

./bootstrap_library.module, line 168
Primarily Drupal hooks.

Code

function _bootstrap_library_isSecure() {
  if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) {
    return 'https:';
  }
  else {
    return 'http:';
  }
}