function handle($params) { @session_write_close(); header('Connection: close'); require_once 'inc/BackgroundProcess.php'; $out = array('running' => BackgroundProcess::getRunningProcessInfo(), 'recent' => BackgroundProcess::getRecentProcessInfo()); header('Content-Type: text/json; charset="' . Dataface_Application::getInstance()->_conf['oe'] . '"'); echo json_encode($out); exit; }