Merge pull request #23763 from eileenmcnaughton/act_test
[civicrm-core.git] / sql / GenerateGroups.php
index 205b73d518952bc4ed2550ebe8f9548dbfe850f7..18381428ea9132eaab2d375abdca02dde137c171 100644 (file)
  * @package CRM
  * @copyright CiviCRM LLC https://civicrm.org/licensing
  */
+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';