function infoBox($where, $title, $text)
{
    $box = addHTML($where, "div");
    setAtr($box, "class", "jumbotron");
    addHTML($box, "h2", $title, true);
    addHTML($box, "p", $text, true);
}
 }
 if ($psound) {
     $USER->AddFunctionCall("lz_chat_play_sound();", false);
 }
 if (!empty($_GET["tid"])) {
     if ($ticket = $USER->SaveTicket($USER->Browsers[0]->DesiredChatGroup, base64UrlDecode($_GET["tin"]), base64UrlDecode($_GET["tie"]), "", $USER->GeoCountryISO2, "", false, base64UrlDecode($_GET["tim"]), true, getOParam(GET_TRACK_URL, "", $nu, FILTER_SANITIZE_URL, null, 512))) {
         $USER->Browsers[0]->SaveLoginData();
         Visitor::SendTicketAutoresponder($ticket, $USER->Language, false);
     }
 }
 $HTML = str_replace("<!--server-->", LIVEZILLA_URL, $HTML);
 if ($LANGUAGE) {
     $HTML = applyReplacements($HTML, $LANGUAGE, false);
 }
 if (!$chat_available && !$USER->Browsers[0]->Declined) {
     addHTML(statusHTML(@$LZLANG["client_chat_not_available"]), "sys", "OFM01");
 }
 if (!empty($HTML)) {
     $USER->AddFunctionCall("lz_chat_add_html_element('" . base64_encode($HTML) . "',true," . $lpr . "," . $LMR . ",'" . base64_encode($LASTPOSTER) . "','" . @$_GET["lp"] . "'," . $oppostcount . ");", false);
 }
 $USER->AddFunctionCall("lz_chat_set_connecting(" . parseBool(!$BOTMODE && (!empty($USER->Browsers[0]->ChatId) && !$USER->Browsers[0]->InternalActivation && !$USER->Browsers[0]->Closed && !$USER->Browsers[0]->Declined)) . ",'" . $USER->Browsers[0]->SystemId . "'," . parseBool(!empty($USER->Browsers[0]->InternalUser) && $USER->Browsers[0]->InternalUser->Status == USER_STATUS_AWAY) . ");", false);
 if ($REPOLL) {
     $USER->AddFunctionCall("lz_tracking_poll_server(1211);", false);
 }
 if ($USER->Browsers[0]->TranslationSettings != null) {
     $USER->AddFunctionCall("lz_chat_set_translation(" . $USER->Browsers[0]->TranslationSettings[0] . ",'" . base64_encode($USER->Browsers[0]->TranslationSettings[1]) . "','" . base64_encode($USER->Browsers[0]->TranslationSettings[2]) . "');", false);
 } else {
     $USER->AddFunctionCall("lz_chat_set_translation(null,null,null);", false);
 }
 if ($FULL) {
     $USER->AddFunctionCall("lz_chat_change_fullname(lz_external.Username);", false);
Exemple #3
0
                 }
             }
         }
     }
 }
 if ($FULL) {
     $oppostcount = 0;
 }
 if ($lppflag == $USER->Browsers[0]->SystemId) {
     $oppostcount = -1;
 }
 if (!empty($spkthtml) && !$spkt) {
     addHTML($spkthtml, "sys", "SPKT" . $USER->Browsers[0]->InternalUser->SystemId);
 }
 if (!empty($posthtml)) {
     addHTML($posthtml, $lppflag);
 }
 if (!empty($LASTPOST)) {
     $USER->AddFunctionCall("lz_chat_set_last_post('" . base64_encode(trim(html_entity_decode($LASTPOST, ENT_COMPAT, "UTF-8"))) . "');", false);
 }
 if ($psound) {
     $USER->AddFunctionCall("lz_chat_play_sound('message');", false);
 }
 if (!empty($_GET["tid"])) {
     if ($ticket = $USER->SaveTicket(getOParam("eg", "", $c), $USER->GeoCountryISO2, false, true, BaseURL::GetInputURL())) {
         $USER->Browsers[0]->SaveLoginData();
         Visitor::SendTicketAutoresponder($ticket, $USER->Language);
     }
 }
 $HTML = str_replace("<!--server-->", LIVEZILLA_URL, $HTML);
 if ($LANGUAGE) {