* @package WoltLabSuite\Core
*/
if (PHP_SAPI !== 'cli') exit;
-// define the wcf-root-dir
-define('WCF_DIR', dirname(__FILE__).'/');
+
+// include config
+require_once(__DIR__.'/app.config.inc.php');
// initiate wcf core
require_once(WCF_DIR.'lib/system/WCF.class.php');
$zendLoader = new ZendLoader([ZendLoader::AUTOREGISTER_ZF => true]);
$zendLoader->register();
- $argv = new ArgvParser([
- 'packageID=i' => ''
- ]);
- $argv->setOption(ArgvParser::CONFIG_FREEFORM_FLAGS, true);
- $argv->parse();
- define('PACKAGE_ID', $argv->packageID ?: 1);
-
// disable benchmark
define('ENABLE_BENCHMARK', 0);