From b249edd0e15c5f398647b025a25d2f9c484ad14a Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Mon, 10 Aug 2009 12:47:14 +0000 Subject: [PATCH] lite co-browsing git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@613 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/button.php | 12 ++++++++++++ src/messenger/webim/install/whatsnew.txt | 1 + src/messenger/webim/locales/en/properties | 1 + src/messenger/webim/locales/ru/properties | 1 + 4 files changed, 15 insertions(+) diff --git a/src/messenger/webim/button.php b/src/messenger/webim/button.php index f476b760..4636506d 100644 --- a/src/messenger/webim/button.php +++ b/src/messenger/webim/button.php @@ -20,9 +20,21 @@ */ require_once('libs/common.php'); +require_once('libs/chat.php'); require_once('libs/operator.php'); require_once('libs/groups.php'); +$referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ""; +if($referer && isset($_SESSION['threadid'])) { + $link = connect(); + $thread = thread_by_id_($_SESSION['threadid'], $link); + if ($thread && $thread['istate'] != $state_closed) { + $msg = getstring2_("chat.client.visited.page", array($referer), $thread['locale']); + post_message_($thread['threadid'], $kind_for_agent,$msg,$link); + } + mysql_close($link); +} + $image = verifyparam("image","/^\w+$/", "webim"); $lang = verifyparam(isset($_GET['language']) ? "language" : "lang", "/^[\w-]{2,5}$/", ""); if(!$lang || !locale_exists($lang)) { diff --git a/src/messenger/webim/install/whatsnew.txt b/src/messenger/webim/install/whatsnew.txt index f5ddf26e..9a652941 100644 --- a/src/messenger/webim/install/whatsnew.txt +++ b/src/messenger/webim/install/whatsnew.txt @@ -8,6 +8,7 @@ [!] do not show empty groups in redirect/survey [!] compatibility with the latest mod_security rules [+] performance options in settings: update intervals, operator online time threshold + [+] information messages: visitor navigated to ... 1.6.1 ----- diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties index 2b124d5a..4e57f431 100644 --- a/src/messenger/webim/locales/en/properties +++ b/src/messenger/webim/locales/en/properties @@ -34,6 +34,7 @@ chat.came.from=Vistor came from page {0} chat.client.changename=Change name chat.client.name=You are chat.client.spam.prefix=[spam]  +chat.client.visited.page=Visitor navigated to {0}. chat.default.username=Visitor chat.error_page.close=Close... chat.error_page.head=Error occurred: diff --git a/src/messenger/webim/locales/ru/properties b/src/messenger/webim/locales/ru/properties index 7b989dda..9a232e4f 100644 --- a/src/messenger/webim/locales/ru/properties +++ b/src/messenger/webim/locales/ru/properties @@ -34,6 +34,7 @@ chat.came.from= chat.client.changename=Изменить имя chat.client.name=Вы chat.client.spam.prefix=[спам]  +chat.client.visited.page=Посетитель перешел на {0}. chat.default.username=Посетитель chat.error_page.close=Закрыть... chat.error_page.head=Произошла ошибка: