<?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'));
'../sql/', // $sqlCodePath
'../', // $phpCodePath
'../templates/', // $tplCodePath
- array('../packages/Smarty/plugins', '../CRM/Core/Smarty/plugins'), // smarty plugin dirs
+ NULL, // IGNORE
@$argv[3], // cms
empty($argv[2]) ? NULL : $argv[2], // db version
empty($argv[1]) ? 'schema/Schema.xml' : $argv[1], // schema file