Merge pull request #23763 from eileenmcnaughton/act_test
[civicrm-core.git] / sql / GenerateData.php
index 63c2b30b23a861ab2fae3e8f1c9dfca1d36a8409..40dca615a15c95dd4be554118078f8350b5b619d 100644 (file)
  *
  */
 
+if (!(php_sapi_name() == 'cli' || (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0))) {
+  header("HTTP/1.0 404 Not Found");
+  return;
+}
 
 require_once '../civicrm.config.php';
 CRM_Core_Config::singleton();