Merge pull request #21509 from JMAConsulting/core_2820
[civicrm-core.git] / sql / GenerateMailing.php
index f234f6d550cdb5e3658e46ac51376226f4a9a733..1ea8e744e8d04b977eb6631dc3343d4a004f7217 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';