If we're going to bundle the `xml` folder so that it can be used by the
installer, then we don't this particular file to be web-accessible.
<?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'));