Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/in-portal
Show All 15 Lines | |||||
if ( PHP_SAPI !== 'cli' ) { | if ( PHP_SAPI !== 'cli' ) { | ||||
echo 'This script is intended to be used from command-line only !'; | echo 'This script is intended to be used from command-line only !'; | ||||
exit(64); | exit(64); | ||||
} | } | ||||
$start = microtime(true); | $start = microtime(true); | ||||
define('CRON', 1); | define('CRON', 1); | ||||
define('INDEX_FILE', 'index.php'); | |||||
define('DBG_SKIP_REPORTING', 1); | define('DBG_SKIP_REPORTING', 1); | ||||
$_SERVER['REQUEST_URI'] = 'CRON'; | $_SERVER['REQUEST_URI'] = 'CRON'; | ||||
$_SERVER['HTTP_USER_AGENT'] = 'gecko'; | $_SERVER['HTTP_USER_AGENT'] = 'gecko'; | ||||
define('FULL_PATH', realpath(dirname(__FILE__))); | define('FULL_PATH', realpath(dirname(__FILE__))); | ||||
include_once(FULL_PATH . '/core/kernel/startup.php'); | include_once(FULL_PATH . '/core/kernel/startup.php'); | ||||
$application =& kApplication::Instance(); | $application =& kApplication::Instance(); | ||||
Show All 9 Lines |