From bf7d51201ed4d9b6c9bf951ba497f9091b857b39 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Sun, 22 Mar 2009 11:54:59 +0000 Subject: [PATCH] ability to turn off "Statistics" feature git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@429 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/libs/common.php | 1 + src/messenger/webim/libs/operator.php | 2 +- src/messenger/webim/locales/en/properties | 4 +++- src/messenger/webim/operator/features.php | 2 +- src/messenger/webim/view/features.php | 29 +++++++++++++++-------- 5 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index 50e0f581..fc813b73 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -520,6 +520,7 @@ $settings = array( 'enablessl' => '0', 'usercanchangename' => '1', 'enabledepartments' => '0', + 'enablestatistics' => '1', ); $settingsloaded = false; $settings_in_db = array(); diff --git a/src/messenger/webim/libs/operator.php b/src/messenger/webim/libs/operator.php index bd5ba6df..afb95963 100644 --- a/src/messenger/webim/libs/operator.php +++ b/src/messenger/webim/libs/operator.php @@ -221,7 +221,7 @@ function prepare_menu($operator,$hasright=true) { loadsettings(); $page['showban'] = $settings['enableban'] == "1"; $page['showdep'] = $settings['enabledepartments'] == "1"; - $page['showstat'] = true; //$settings['enablestatistics'] == "1"; + $page['showstat'] = $settings['enablestatistics'] == "1"; $page['showadmin'] = is_capable($can_administrate, $operator); } } diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties index 6e4dac32..5dee9356 100644 --- a/src/messenger/webim/locales/en/properties +++ b/src/messenger/webim/locales/en/properties @@ -322,8 +322,10 @@ settings.enableban.description=Using it you can block attacks from specific IPs settings.enableban=Enable feature "Malicious Visitors" settings.enabledepartments.description=Use it to have separate queues for different questions. settings.enabledepartments=Enable "Departments" -settings.enablessl.description=Please, note that your web server should be
configured to support https requests. +settings.enablessl.description=Please, note that your web server should be configured to support https requests. settings.enablessl=Allow secure connections (SSL) +settings.enablestatistics.description=Adds page with messenger usage reports. +settings.enablestatistics=Enable "Statistics" settings.geolink.description=Each IP becomes a link opening in new window. {ip} is substituted with a real ip. settings.geolink=Link to an external geolocation service settings.geolinkparams.description=Window size and toolbars hiding diff --git a/src/messenger/webim/operator/features.php b/src/messenger/webim/operator/features.php index a79caad6..c2b23ec9 100644 --- a/src/messenger/webim/operator/features.php +++ b/src/messenger/webim/operator/features.php @@ -21,7 +21,7 @@ $operator = check_login(); $page = array('agentId' => ''); $errors = array(); -$options = array('enableban', 'usercanchangename', 'enablessl', 'enabledepartments'); +$options = array('enableban', 'usercanchangename', 'enablessl', 'enabledepartments', 'enablestatistics'); loadsettings(); $params = array(); diff --git a/src/messenger/webim/view/features.php b/src/messenger/webim/view/features.php index 1bc95145..ed7e3d9f 100644 --- a/src/messenger/webim/view/features.php +++ b/src/messenger/webim/view/features.php @@ -52,15 +52,6 @@ require_once('inc_errors.php');

- -
-
-
- /> -
-
-
-
@@ -72,7 +63,16 @@ require_once('inc_errors.php');
-
- !! incomplete in 1.6.0 alpha, use on your own risk
+
+
+ /> +
+
+
+
+ +
+
/>
@@ -80,6 +80,15 @@ require_once('inc_errors.php');
+
+
+
+ /> +
+
+
+
+