$response = utf8_encode("<?xml version=\"1.0\" encoding=\"UTF-8\" ?><livezilla_js>" . base64_encode(isset($EXTERNSCRIPT) ? $EXTERNSCRIPT : "") . "</livezilla_js>"); } else { if (isset($_POST[POST_INTERN_REQUEST]) && $_POST[POST_INTERN_REQUEST] == CALLER_TYPE_INTERNAL) { define("CALLER_TYPE", CALLER_TYPE_INTERNAL); define("CALLER_TIMEOUT", Server::$Configuration->File["timeout_clients"]); header("Connection: close"); header("Cache-Control: no-cache, must-revalidate"); header("Content-Type: text/xml; charset=UTF-8"); require LIVEZILLA_PATH . "intern.php"; $response = utf8_encode($response); } else { if ($getRequest == "cronjob" && !empty($_GET["cjid"]) && $_GET["cjid"] == Server::$Configuration->File["gl_cjid"]) { define("CALLER_TYPE", "cronjob"); define("CALLER_TIMEOUT", 360); Server::InitDataBlock(array("INTERNAL", "GROUPS")); $response = DB_CONNECTION ? "Success" : "No database connection"; } } } } //if(DB_CONNECTION && Is::Defined("CALLER_TYPE") && (!empty(Server::$Configuration->File["gl_cjfs"])||CALLER_TYPE=="cronjob") && !Is::Defined("SERVERSETUP") && !Is::Defined("LOGIN")) if (DB_CONNECTION && Is::Defined("CALLER_TYPE") && !Is::Defined("SERVERSETUP") && !Is::Defined("LOGIN")) { Server::RunCronJobs(false); } } if (!isset($response)) { exit(IOStruct::GetFile(TEMPLATE_HTML_SUPPORT)); } Communication::SendPushMessages(); Server::UnloadDataProvider(); exit($response);