From 67de68b28b1ea14639d37ce4c1ca65ed83a0e44a Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 30 Apr 2013 14:05:30 +0000 Subject: [PATCH] Add notification about cron to operator/history.php --- src/messenger/webim/locales/en/properties | 1 + src/messenger/webim/locales/ru/properties | 1 + src/messenger/webim/operator/history.php | 2 ++ src/messenger/webim/view/thread_search.php | 3 +++ 4 files changed, 7 insertions(+) diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties index 8c7300f8..64d5a67f 100644 --- a/src/messenger/webim/locales/en/properties +++ b/src/messenger/webim/locales/en/properties @@ -114,6 +114,7 @@ confirm.take.yes=Yes. I'm sure content.blocked=Here you can block malicious visitors. content.history=Search the dialogs history. content.logoff=Log out of the system. +cron.check.setup=Enshure that cron was set up correctly or run it manually. data.saved=Changes saved demo.chat.question=There are so many browsers to choose from. Which ones do you recommend? demo.chat.welcome=Hello. How may I help you? diff --git a/src/messenger/webim/locales/ru/properties b/src/messenger/webim/locales/ru/properties index 0c3c39df..3946b246 100644 --- a/src/messenger/webim/locales/ru/properties +++ b/src/messenger/webim/locales/ru/properties @@ -114,6 +114,7 @@ confirm.take.yes= content.blocked=Здесь можно защищаться от спама и вредных посетителей. content.history=Поиск по истории диалогов. content.logoff=Покинуть систему. +cron.check.setup=Убедитесь, что cron настроен правильно или запустите его вручную. data.saved=Изменения сохранены demo.chat.question=Посоветуйте мне, пожалуйста, хороший браузер? demo.chat.welcome=Здравствуйте! Чем я могу Вам помочь? diff --git a/src/messenger/webim/operator/history.php b/src/messenger/webim/operator/history.php index acada596..4ec72fb2 100644 --- a/src/messenger/webim/operator/history.php +++ b/src/messenger/webim/operator/history.php @@ -20,6 +20,7 @@ require_once('../libs/operator.php'); require_once('../libs/chat.php'); require_once('../libs/userinfo.php'); require_once('../libs/pagination.php'); +require_once('../libs/cron.php'); $operator = check_login(); force_password($operator); @@ -91,6 +92,7 @@ if ($query !== false) { $page['formtype'] = $searchType; $page['forminsystemmessages'] = $searchInSystemMessages; +$page['cron_path'] = cron_get_uri(Settings::get('cron_key')); prepare_menu($operator); start_html_output(); diff --git a/src/messenger/webim/view/thread_search.php b/src/messenger/webim/view/thread_search.php index 68c0d2e7..8ebb1db7 100644 --- a/src/messenger/webim/view/thread_search.php +++ b/src/messenger/webim/view/thread_search.php @@ -21,6 +21,9 @@ $page['menuid'] = "history"; function tpl_content() { global $page, $webimroot; ?> + +
+