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