diff --git a/admin/operatorlist.php b/admin/operatorlist.php index 54692a28..8b3c195d 100644 --- a/admin/operatorlist.php +++ b/admin/operatorlist.php @@ -50,8 +50,9 @@ $msg = ""; if (isset($_POST['submit'])) { $operator_id = intval($_POST['operator_id']); - $voip = $enabled = 0; + $chat_enable = $voip = $enabled = 0; if (isset($_POST['voip'])) $voip = 1; + if (isset($_POST['chat_enable'])) $chat_enable = 1; if (isset($_POST['enabled'])) $enabled = 1; if (HTPASSWD_PATH !== false && $_POST['existing_username'] != $_POST['username'] && empty($_POST['password'])) @@ -64,10 +65,12 @@ if (isset($_POST['submit'])) SET username = " . $db->qstr($_POST['username']) . ", lastName = " . $db->qstr($_POST['lastName']) . ", firstName = " . $db->qstr($_POST['firstName']) . ", + chat_user = " . $db->qstr($_POST['chat_user']) . ", + chat_password = " . $db->qstr($_POST['chat_password']) . ", extension = " . $db->qstr($_POST['extension']) . ", extension_password = " . $db->qstr($_POST['extension_password']) . ", Time_zone_name = " . $db->qstr($_POST['timezone']) . ", - voip = $voip, enabled = $enabled + voip = $voip, enabled = $enabled, chat_enable = $chat_enable WHERE operator_id = $operator_id"; $rs = $db->Execute($sql); @@ -129,6 +132,9 @@ if (isset($_GET['edit']))
+ + +
+
+
+
diff --git a/database/quexs.sql b/database/quexs.sql index f48b722d..851ad231 100644 --- a/database/quexs.sql +++ b/database/quexs.sql @@ -1177,6 +1177,9 @@ CREATE TABLE `operator` ( `voip` tinyint(1) NOT NULL default '1', `voip_status` tinyint(1) NOT NULL default '0', `next_case_id` bigint(20) default NULL, + `chat_enable` tinyint(1) default '0', + `chat_user` varchar(255) collate utf8_unicode_ci default NULL, + `chat_password` varchar(255) collate utf8_unicode_ci default NULL, PRIMARY KEY (`operator_id`), UNIQUE KEY `username` (`username`), UNIQUE KEY `extension` (`extension`)