From 2e1a271acfbca7dcc3f920ba446962a986150caa Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Sat, 4 Apr 2009 21:33:56 +0000 Subject: [PATCH] add several options git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@449 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/libs/common.php | 5 ++ src/messenger/webim/operator/features.php | 2 +- src/messenger/webim/view/features.php | 83 ++++++++++++++++++++++- 3 files changed, 87 insertions(+), 3 deletions(-) diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index 21d9652e..1722f30f 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -533,9 +533,14 @@ $settings = array( 'enableban' => '0', 'enablessl' => '0', + 'forcessl' => '0', 'usercanchangename' => '1', 'enablegroups' => '0', 'enablestatistics' => '1', + 'enablepresurvey' => '1', + 'surveyaskmail' => '0', + 'surveyaskgroup' => '1', + 'surveyaskmessage' => '0', ); $settingsloaded = false; $settings_in_db = array(); diff --git a/src/messenger/webim/operator/features.php b/src/messenger/webim/operator/features.php index f8defadc..995cb498 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', 'enablegroups', 'enablestatistics'); +$options = array('enableban', 'usercanchangename', 'enablessl', 'enablegroups', 'enablestatistics', 'enablepresurvey', 'surveyaskmail', 'surveyaskgroup', 'surveyaskmessage', 'forcessl'); loadsettings(); $params = array(); diff --git a/src/messenger/webim/view/features.php b/src/messenger/webim/view/features.php index 522e44ec..2aa525be 100644 --- a/src/messenger/webim/view/features.php +++ b/src/messenger/webim/view/features.php @@ -16,6 +16,40 @@ require_once("inc_menu.php"); $page['title'] = getlocal("settings.title"); $page['menuid'] = "settings"; +function tpl_header() { global $page, $webimroot; +?> + + + @@ -52,14 +86,23 @@ require_once('inc_errors.php');

- +
- /> + />

+ +
+
+
+ /> +
+
+
+
@@ -89,6 +132,42 @@ require_once('inc_errors.php');
+
+
+
+ /> +
+
+
+ +
+
+
+ /> +
+
+
+
+ +
+
+
+ /> +
+
+
+
+ +
+
+
+ /> +
+
+
+
+
+