X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=sql%2FGenerateGroups.php;h=18381428ea9132eaab2d375abdca02dde137c171;hb=c66054d28435f089215f8f6a1e581312fc31cbbe;hp=18cc7c5b782f512e667742bfd9adf649e4a5a6af;hpb=dfbf151818668f98a0cdfe583a5d629f5cc8bb2b;p=civicrm-core.git diff --git a/sql/GenerateGroups.php b/sql/GenerateGroups.php index 18cc7c5b78..18381428ea 100644 --- a/sql/GenerateGroups.php +++ b/sql/GenerateGroups.php @@ -13,9 +13,11 @@ * * @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';