Ejemplo n.º 1
0
    }
    if (DB_CONNECTION && (isset($_POST[POST_SERVER_REQUEST_TYPE]) && $_POST[POST_SERVER_REQUEST_TYPE] == CALLER_TYPE_TRACK || isset($_GET[GET_SERVER_REQUEST_TYPE]) && $_GET[GET_SERVER_REQUEST_TYPE] == CALLER_TYPE_TRACK)) {
        define("CALLER_TYPE", CALLER_TYPE_TRACK);
        header("Cache-Control: no-cache, must-revalidate");
        require LIVEZILLA_PATH . "track.php";
        $response = @$TRACKINGSCRIPT;
    } else {
        if (DB_CONNECTION && isset($_POST[POST_SERVER_REQUEST_TYPE]) && $_POST[POST_SERVER_REQUEST_TYPE] == CALLER_TYPE_EXTERNAL) {
            define("CALLER_TYPE", CALLER_TYPE_EXTERNAL);
            header("Content-Type: text/xml; charset=UTF-8");
            require LIVEZILLA_PATH . "extern.php";
            $response = utf8_encode("<?xml version=\"1.0\" encoding=\"UTF-8\" ?><livezilla_js>" . base64_encode(isset($EXTERNSCRIPT) ? $EXTERNSCRIPT : "") . "</livezilla_js>");
        } else {
            if (isset($_POST[POST_SERVER_REQUEST_TYPE]) && $_POST[POST_SERVER_REQUEST_TYPE] == CALLER_TYPE_INTERNAL) {
                define("CALLER_TYPE", CALLER_TYPE_INTERNAL);
                header("Cache-Control: no-cache, must-revalidate");
                header("Content-Type: text/xml; charset=UTF-8");
                require LIVEZILLA_PATH . "intern.php";
                $response = utf8_encode($response);
            }
        }
    }
}
if (!isset($response)) {
    exit(getFile(TEMPLATE_HTML_SUPPORT));
}
if (DB_CONNECTION) {
    runPeriodicJobs();
}
unloadDataProvider();
exit($response);
Ejemplo n.º 2
0
    if (DB_CONNECTION && (isset($_POST[POST_SERVER_REQUEST_TYPE]) && $_POST[POST_SERVER_REQUEST_TYPE] == CALLER_TYPE_TRACK || isset($_GET[GET_SERVER_REQUEST_TYPE]) && $_GET[GET_SERVER_REQUEST_TYPE] == CALLER_TYPE_TRACK)) {
        define("CALLER_TYPE", CALLER_TYPE_TRACK);
        header("Cache-Control: no-cache, must-revalidate");
        require LIVEZILLA_PATH . "track.php";
        $response = @$TRACKINGSCRIPT;
    } else {
        if (DB_CONNECTION && isset($_POST[POST_SERVER_REQUEST_TYPE]) && $_POST[POST_SERVER_REQUEST_TYPE] == CALLER_TYPE_EXTERNAL) {
            define("CALLER_TYPE", CALLER_TYPE_EXTERNAL);
            header("Content-Type: text/xml; charset=UTF-8");
            require LIVEZILLA_PATH . "extern.php";
            $response = utf8_encode("<?xml version=\"1.0\" encoding=\"UTF-8\" ?><livezilla_js>" . base64_encode(isset($EXTERNSCRIPT) ? $EXTERNSCRIPT : "") . "</livezilla_js>");
        } else {
            if (isset($_POST[POST_SERVER_REQUEST_TYPE]) && $_POST[POST_SERVER_REQUEST_TYPE] == CALLER_TYPE_INTERNAL) {
                define("CALLER_TYPE", CALLER_TYPE_INTERNAL);
                header("Cache-Control: no-cache, must-revalidate");
                header("Content-Type: text/xml; charset=UTF-8");
                require LIVEZILLA_PATH . "intern.php";
                $response = utf8_encode($response);
            }
        }
    }
}
if (!isset($response)) {
    header("Location: http://www.livezilla.net");
    exit(getFile(TEMPLATE_HTML_SUPPORT));
}
if (DB_CONNECTION) {
    runPeriodicJobs($CONFIG);
}
unloadDataProvider();
exit($response);