function GetInviteHTML($_operatorID, $_text, $_crid) { $this->LanguageRequired = true; $html = IOStruct::GetFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_INVITE); $html = str_replace("<!--display_image-->", "''", $html); $html = str_replace("<!--image-->", "<img style=\"border-radius:2px;\" align=\"left\" src=\"" . LIVEZILLA_URL . Server::$Operators[$_operatorID]->GetOperatorPictureFile() . "\" width=\"80\" height=\"60\">", $html); $html = str_replace("<!--font_color-->", "#000000", $html); $html = str_replace("<!--id-->", $_crid, $html); $html = OverlayChat::ReplaceColors($html, true); return str_replace("<!--message-->", str_replace("<!--intern_name-->", Server::$Operators[$_operatorID]->Fullname, $_text), $html); }
VisitorMonitoring::$Response = str_replace("<!--add_html-->", base64_encode(IOStruct::GetFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_ADD)), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--offline_message_pop-->", To::BoolString(!empty(Server::$Configuration->File["gl_om_pop_up"])), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--ec_t-->", $eca = Communication::GetParameter("eca", 0, $nu, FILTER_VALIDATE_INT), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--gtv2_api_key-->", strlen(Server::$Configuration->File["gl_otrs"]) > 1 ? base64_encode(Server::$Configuration->File["gl_otrs"]) : "", VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--no_ticket_when_online-->", To::BoolString(Communication::ReadParameter("ovlntwo", false)), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--shadow-->", To::BoolString(Communication::ReadParameter("ovlsc", "")), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--shadowx-->", Communication::ReadParameter("ovlsx", 0), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--shadowy-->", Communication::ReadParameter("ovlsy", 0), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--shadowb-->", Communication::ReadParameter("ovlsb", 0), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--shadowc-->", Communication::ReadParameter("ovlsc", ""), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--kb_suggest-->", To::BoolString(Server::$Configuration->File["gl_knbs"]), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--border_radius-->", Communication::ReadParameter("ovlbr", 6), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--hide_group_select_chat-->", To::BoolString(Communication::GetParameter("hcgs", false)), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--hide_group_select_ticket-->", To::BoolString(Communication::GetParameter("htgs", false)), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--require_group_selection-->", To::BoolString(Communication::GetParameter("rgs", false)), VisitorMonitoring::$Response); VisitorMonitoring::$Response = OverlayChat::ReplaceColors(VisitorMonitoring::$Response, false); if ($eca == 1) { VisitorMonitoring::$Response = str_replace("<!--ec_header_text-->", Encoding::Base64UrlEncode(Communication::GetParameter("echt", @LocalizationManager::$TranslationStrings["client_ec_text"], $c, FILTER_HTML_ENTITIES)), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--ec_header_sub_text-->", Encoding::Base64UrlEncode(Communication::GetParameter("echst", @LocalizationManager::$TranslationStrings["client_ec_sub_text"], $c, FILTER_HTML_ENTITIES)), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--ec_o_header_text-->", Encoding::Base64UrlEncode(Communication::GetParameter("ecoht", @LocalizationManager::$TranslationStrings["client_ec_o_text"], $c, FILTER_HTML_ENTITIES)), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--ec_o_header_sub_text-->", Encoding::Base64UrlEncode(Communication::GetParameter("ecohst", @LocalizationManager::$TranslationStrings["client_ec_o_sub_text"], $c, FILTER_HTML_ENTITIES)), VisitorMonitoring::$Response); } else { if ($eca == 2) { VisitorMonitoring::$Response = str_replace("<!--ec_image-->", Encoding::Base64UrlEncode(Communication::ReadParameter("eci", "")), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--ec_o_image-->", Encoding::Base64UrlEncode(Communication::ReadParameter("ecio", "")), VisitorMonitoring::$Response); } } VisitorMonitoring::$Response = Server::Replace(VisitorMonitoring::$Response, true, false); } VisitorMonitoring::$Response = str_replace("<!--user_name-->", Encoding::Base64UrlEncode(VisitorMonitoring::$Browser->UserData->Fullname), VisitorMonitoring::$Response); VisitorMonitoring::$Response = str_replace("<!--user_email-->", Encoding::Base64UrlEncode(VisitorMonitoring::$Browser->UserData->Email), VisitorMonitoring::$Response);