コード例 #1
0
             $USER->AddFunctionCall("lz_chat_invite_timer=setTimeout('lz_chat_change_state(false,false);" . $sound . "',2500);", false);
             $USER->AddFunctionCall("lz_chat_set_group('" . base64_encode($USER->Browsers[1]->ChatRequest->SenderGroupId) . "');", false);
             $USER->AddFunctionCall("lz_chat_set_talk_to_human(true,false);", false);
             $USER->AddFunctionCall("lz_chat_prepare_data_form();", false);
             $USER->Browsers[1]->ChatRequest->SetStatus(true, false, false);
             $USER->Browsers[1]->ChatRequest->Displayed = true;
         }
         if (!empty($_GET["mi0"])) {
             $USER->Browsers[1]->ChatRequest->SetStatus(true, true, false, true);
             $USER->Browsers[1]->ForceUpdate();
         }
     }
 }
 $tymes = !empty($USER->Browsers[0]->OperatorId) && Server::$Operators[$USER->Browsers[0]->OperatorId]->Typing == $USER->Browsers[0]->SystemId ? "'" . base64_encode(str_replace("<!--operator_name-->", Server::$Operators[$USER->Browsers[0]->OperatorId]->Fullname, LocalizationManager::$TranslationStrings["client_representative_is_typing"])) . "'" : "null";
 $USER->AddFunctionCall("lz_chat_set_typing(" . $tymes . ",false);", false);
 $OVERLAY->BuildElements();
 if ($OVERLAY->FullLoad) {
     $OVERLAY->OperatorPostCount = 0;
 }
 if ($OVERLAY->Flags["LPP"] == $USER->Browsers[0]->SystemId) {
     $OVERLAY->OperatorPostCount = -1;
 }
 if (!empty($OVERLAY->SpeakingToHTML) && !$OVERLAY->SpeakingToAdded) {
     $OVERLAY->AddHTML($OVERLAY->SpeakingToHTML, "sys", "SPKT" . Server::$Operators[$USER->Browsers[0]->OperatorId]->SystemId);
 }
 if (!empty($OVERLAY->PostHTML)) {
     $OVERLAY->AddHTML($OVERLAY->PostHTML, $OVERLAY->Flags["LPP"]);
 }
 if (!empty($OVERLAY->LastPost)) {
     $USER->AddFunctionCall("lz_chat_set_last_post('" . base64_encode(trim(html_entity_decode($OVERLAY->LastPost, ENT_COMPAT, "UTF-8"))) . "');", false);
 }