<?php define('MODX_API_MODE', true); require $_SERVER['DOCUMENT_ROOT'].'/index.php'; $modx->getService('error','error.modError'); $modx->setLogLevel(modX::LOG_LEVEL_INFO); $modx->setLogTarget(XPDO_CLI_MODE ? 'ECHO' : 'HTML'); ?>