function isChat() { define("SESSION", getSessionId()); Server::InitDataBlock(array("FILTERS")); define("IS_FLOOD", Filter::IsFlood(Communication::GetIP(), null, true)); define("IS_FILTERED", DataManager::$Filters->Match(Communication::GetIP(), LocalizationManager::ImplodeLanguages(!empty($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? $_SERVER["HTTP_ACCEPT_LANGUAGE"] : ""), SESSION)); $parameters = Communication::GetTargetParameters(); if (operatorsAvailable(0, $parameters["exclude"], $parameters["include_group"], $parameters["include_user"]) > 0) { return true; } return false; }
$BROWSER->LoadOverlayBoxes(); $TRACKINGSCRIPT .= triggerEvents(); $TRACKINGSCRIPT .= processActions("", $openChatExternal); $ACTIVE_OVLC = false; if (!empty($_GET["fbpos"]) && !empty($_GET["fbw"]) && is_numeric(base64UrlDecode($_GET["fbw"]))) { $shadow = !empty($_GET["fbshx"]) ? "true," . base64UrlDecode($_GET["fbshb"]) . "," . base64UrlDecode($_GET["fbshx"]) . "," . base64UrlDecode($_GET["fbshy"]) . ",'" . base64UrlDecode($_GET["fbshc"]) . "'" : "false,0,0,0,''"; $margin = !empty($_GET["fbmt"]) ? "," . base64UrlDecode($_GET["fbml"]) . "," . base64UrlDecode($_GET["fbmt"]) . "," . base64UrlDecode($_GET["fbmr"]) . "," . base64UrlDecode($_GET["fbmb"]) : ",0,0,0,0"; if (!(!$conline && !empty($_GET["fboo"]))) { $TRACKINGSCRIPT .= "lz_tracking_add_floating_button(" . base64UrlDecode($_GET["fbpos"]) . "," . $shadow . $margin . "," . base64UrlDecode($_GET["fbw"]) . "," . base64UrlDecode($_GET["fbh"]) . ");"; } } if (!empty($_GET["ovlc"]) && strlen(base64UrlDecode($_GET["ovlc"])) == 7) { require LIVEZILLA_PATH . "ovl.php"; $TRACKINGSCRIPT .= @$OVLPAGE; } if (!empty($_GET["cboo"]) && !operatorsAvailable(0, $parameters["exclude"], $parameters["include_group"], $parameters["include_user"], false)) { $TRACKINGSCRIPT .= "lz_tracking_remove_buttons();"; } $hidevisitor = empty($CONFIG["gl_vmac"]) || !empty($CONFIG["gl_hide_inactive"]) && !$EXTERNALUSER->IsActivity($BROWSER); if (!empty($_SERVER['HTTP_DNT']) && $CONFIG["gl_dnt"] && empty($_GET["ovlc"])) { $BROWSER->Destroy(); $TRACKINGSCRIPT .= "lz_tracking_stop_tracking(10);"; } if ($monitoringActive || !empty($ACTIVE_OVLC)) { if (!getAvailability()) { $BROWSER->Destroy(); abortTracking(12); } else { if (IS_FLOOD) { $BROWSER->Destroy(); abortTracking(14);
$prefix = !empty($_GET["type"]) && $_GET["type"] == "overlay" ? "overlay" : "inlay"; if (operatorsAvailable(0, $parameters["exclude"], $parameters["include_group"], $parameters["include_user"]) > 0) { exit(getFileById($_GET["id"], true, $prefix)); } else { if (!empty($_GET["cboo"])) { header("Content-Type: image/gif;"); exit(file_get_contents(PATH_IMAGES . "chat_blank.gif")); } else { exit(getFileById($_GET["id"], false, $prefix)); } } } else { if (!empty($_GET["tl"]) && !empty($_GET["srv"])) { $html = "<a href=\\\"javascript:void(window.open('<!--server-->','','width=" . $CONFIG["wcl_window_width"] . ",height=" . $CONFIG["wcl_window_height"] . ",left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))\\\" <!--class-->><!--text--></a>"; $html = str_replace("<!--server-->", htmlentities(base64UrlDecode($_GET["srv"]), ENT_QUOTES, "UTF-8"), $html); if (!empty($_GET["tlont"]) && operatorsAvailable(0, $parameters["exclude"], $parameters["include_group"], $parameters["include_user"]) > 0) { if (!empty($_GET["tlonc"])) { $html = str_replace("<!--class-->", "class=\\\"" . htmlentities(base64UrlDecode($_GET["tlonc"]), ENT_QUOTES, "UTF-8") . "\\\"", $html); } else { $html = str_replace("<!--class-->", "", $html); } $html = processPlaceholders($html); $html = str_replace("<!--text-->", htmlentities(base64UrlDecode($_GET["tlont"]), ENT_QUOTES, "UTF-8"), $html); } else { if (!empty($_GET["tloft"]) && empty($_GET["tloo"])) { if (!empty($_GET["tlofc"])) { $html = str_replace("<!--class-->", "class=\\\"" . htmlentities(base64UrlDecode($_GET["tlofc"]), ENT_QUOTES, "UTF-8") . "\\\"", $html); } else { $html = str_replace("<!--class-->", "", $html); } $html = processPlaceholders($html);
} } if (!empty($html)) { exit("document.write(\"" . $html . "\");"); } } else { if (!empty($_GET["v"])) { $parts = explode("<!>", base64UrlDecode(str_replace(" ", "+", $_GET["v"]))); if (count($parts) > 3 && strlen($parts[3]) > 0) { $parts[0] = str_replace("<!--class-->", "class=\\\"" . $parts[3] . "\\\"", $parts[0]); } else { if (count($parts) > 0) { $parts[0] = str_replace("<!--class-->", "", $parts[0]); } } if (count($parts) > 1 && operatorsAvailable(0, $parameters["exclude"], $parameters["include_group"], $parameters["include_user"]) > 0) { $html = str_replace("<!--text-->", $parts[1], $parts[0]); } else { if (count($parts) > 2) { $html = str_replace("<!--text-->", $parts[2], $parts[0]); } } exit("document.write(\"" . $html . "\");"); } } } function getFileById($_id, $_online, $_prefix) { $int = $_online ? "1" : "0"; if ($_online && @file_exists("./banner/" . $_prefix . "_" . $_id . "_1.gif") || !$_online && @file_exists("./banner/" . $_prefix . "_" . $_id . "_0.gif")) { header("Content-Type: image/gif;");
function IsOperatorAvailable() { return operatorsAvailable() > 0; }
} if (isset($_GET[GET_EXTERN_USER_COMPANY])) { setCookieValue("form_113", cutString(base64UrlDecode($_GET[GET_EXTERN_USER_COMPANY]), 254)); } for ($i = 0; $i <= 9; $i++) { if (isset($_GET["cf" . $i]) && !empty($_GET["cf" . $i])) { setCookieValue("cf_" . $i, cutString(base64UrlDecode($_GET["cf" . $i]), 254)); } } if (!empty($_GET["fbpos"]) && is_numeric($_GET["fbpos"]) && !empty($_GET["fbw"]) && is_numeric($_GET["fbw"]) && !empty($_GET["fbh"]) && is_numeric($_GET["fbh"])) { $shadow = !empty($_GET["fbshx"]) && is_numeric($_GET["fbshx"]) && !empty($_GET["fbshy"]) && is_numeric($_GET["fbshy"]) && !empty($_GET["fbshb"]) && is_numeric($_GET["fbshb"]) && !empty($_GET["fbshc"]) && ctype_alnum($_GET["fbshc"]) ? "true," . $_GET["fbshb"] . "," . $_GET["fbshx"] . "," . $_GET["fbshy"] . ",'" . $_GET["fbshc"] . "'" : "false,0,0,0,''"; $margin = isset($_GET["fbmt"]) && is_numeric($_GET["fbmt"]) && isset($_GET["fbmr"]) && is_numeric($_GET["fbmr"]) && isset($_GET["fbmb"]) && is_numeric($_GET["fbmb"]) && isset($_GET["fbml"]) && is_numeric($_GET["fbml"]) ? "," . $_GET["fbml"] . "," . $_GET["fbmt"] . "," . $_GET["fbmr"] . ",'" . $_GET["fbmb"] . "'" : ",0,0,0,0"; $online = true; if (!empty($_GET["fboo"])) { $parameters = getTargetParameters(); if (!operatorsAvailable(0, $parameters["exclude"], $parameters["include_group"], $parameters["include_user"]) > 0) { $online = false; } } if ($online) { $TRACKINGSCRIPT .= "lz_tracking_add_floating_button(" . $_GET["fbpos"] . "," . $shadow . $margin . "," . $_GET["fbw"] . "," . $_GET["fbh"] . ");"; } } } else { $TRACKINGSCRIPT = "lz_tracking_set_sessid(\"" . htmlentities(CALLER_USER_ID) . "\",\"" . htmlentities(CALLER_BROWSER_ID) . "\");"; if (isset($_GET[GET_TRACK_URL]) && strpos(base64UrlDecode($_GET[GET_TRACK_URL]), GET_INTERN_COBROWSE) !== false) { abortTracking(1); } $BROWSER = new VisitorBrowser(CALLER_BROWSER_ID, CALLER_USER_ID); if ($EXTERNALUSER->FirstCall && !$BROWSER->IsFirstCall()) { $EXTERNALUSER->FirstCall = false;