private function PrepareHtmlMessage($text, $cleanup_special_tags = false) { $message = removeSpecialSymbols(htmlspecialchars($text)); return str_replace("\n", "<br/>", self::processSpecialTags($message, "html", $cleanup_special_tags)); }
function initVisitedPage($visitsessionid, $theme) { $url = $_GET['url']; // TODO why we use _GET? $referrer = $_GET['from']; // TODO let's call referer 'referer' buy not from? $isSecure = isset($_GET['issecure']) ? $_GET['issecure'] : FALSE; // TODO, can we use false? hope so ... $title = isset($_GET['title']) ? $_GET['title'] : null; if (WEBIM_ENCODING != 'UTF-8') { $title = smarticonv('utf-8', WEBIM_ENCODING, $title); } $title = removeSpecialSymbols($title); $p_pageid = VisitedPage::GetInstance()->CreateVisitedPage($visitsessionid, $url, $referrer, $title); $p_location = get_app_location(true, $isSecure); $p_invitescript = $p_location . "/invite.php?pageid=" . $p_pageid . "&theme=" . $theme . "&issecure={$isSecure}"; $p_issecure = $isSecure; require 'js/invite/tracking.js'; }