Merge pull request #13051 from mlutfy/customvalue-checkbox-display
[civicrm-core.git] / xml / GenCode.php
index dc071c795aeb64cb2c9bf79c18cbbaafe5bd05f5..8fef7b0d418894d40034ff3cf48aeb40500e4562 100644 (file)
@@ -1,4 +1,9 @@
 <?php
+
+if (PHP_SAPI !== 'cli') {
+  die("GenCode can only be run from command line.");
+}
+
 ini_set('include_path', '.' . PATH_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR . '..');
 // make sure the memory_limit is at least 512 MB
 $memLimitString = trim(ini_get('memory_limit'));