die;
}
// override default time limit
set_time_limit(300);
require_once PATH_CORE . '/classes/cron.class.php';
$cObj = new cron($init['apiKey']);
echo 'Starting CRON engine.<br />';
// when you set init variable, we populate the job list for the first time
if (isset($_GET['init'])) {
    echo 'Initialize cron jobs...';
    $cObj->initJobs();
    $cObj->resetJobs();
    $cObj->fetchJobs();
    echo 'exiting now...';
    exit;
}
if (isset($_GET['reset'])) {
    echo 'Reset cron jobs...';
    $cObj->resetJobs();
    echo 'exiting now...';
    exit;
}
if (isset($_GET['force'])) {
    // only run this one job
    $cObj->forceJob($_GET['force']);
} else {
    // run the jobs
    $cObj->fetchJobs();
}
$cObj->hasDeadTasks();
echo 'Exiting CRON engine.<br />';