You are here

function securelogin_init in Secure Login 5

Same name and namespace in other branches
  1. 6 securelogin.module \securelogin_init()

Restore the original base URL if redirection is enabled

File

./securelogin.module, line 137

Code

function securelogin_init() {
  global $base_url;
  if (isset($_REQUEST['securelogin_original_baseurl']) && variable_get('securelogin_redirect', TRUE)) {
    $base_url = variable_get('securelogin_original_baseurl', $base_url);
  }
}