You are here

function _logintoboggan_protocol in LoginToboggan 7

Same name and namespace in other branches
  1. 5 logintoboggan.module \_logintoboggan_protocol()
  2. 6 logintoboggan.module \_logintoboggan_protocol()

File

./logintoboggan.module, line 1122
LoginToboggan module

Code

function _logintoboggan_protocol() {
  return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
}