You are here

function domain_301_redirect_check in Domain 301 Redirect 7

Menu callback item domain_301_redirect_check().

This callback prints out a validation hash string and then terminates the script.

1 string reference to 'domain_301_redirect_check'
domain_301_redirect_menu in ./domain_301_redirect.module
Implements hook_menu().

File

./domain_301_redirect.module, line 221
This module allows you to 301 redirect all domains to one specific domain.

Code

function domain_301_redirect_check($time = NULL) {
  global $conf;
  $conf['cache'] = FALSE;
  echo $time && time() - $time < 60 ? drupal_hmac_base64('domain_301_redirect_check_domain', $time . drupal_get_private_key() . drupal_get_hash_salt()) : '';
  exit;
}