You are here

function _logintoboggan_protocol in LoginToboggan 6

Same name and namespace in other branches
  1. 5 logintoboggan.module \_logintoboggan_protocol()
  2. 7 logintoboggan.module \_logintoboggan_protocol()
1 call to _logintoboggan_protocol()
logintoboggan_mail in ./logintoboggan.module
Implementation of hook_mail().

File

./logintoboggan.module, line 1178
Logintoboggan Module

Code

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