$value) { $_SERVER[$key] = str_replace('modules/simpletest/tests/http.php', 'index.php', $value); $_SERVER[$key] = str_replace('https://', 'http://', $_SERVER[$key]); } // Change current directory to the Drupal root. chdir('../../..'); define('DRUPAL_ROOT', getcwd()); require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; // Make sure this file can only be used by simpletest. drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION); if (!drupal_valid_test_ua()) { header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden'); exit; } drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); menu_execute_active_handler();