Commit Graph

352 Commits

Author SHA1 Message Date
Dmitriy Simushev
6247d20f95 Object's methods callbacks replaced by functions 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
de2f60bfdc Add some warnings to RequestProcessor class
Request/response methods not abstract any more. To prevent direct
call(without overloading) add error with E_USER_WARNING level
into this methods.
2013-03-13 15:32:40 +00:00
Dmitriy Simushev
551be06d9e Fix bug in users tracking 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
f720da79d0 Fix bug in chat button image's generation script 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
03ffd84e76 Create Thread class and tests for it 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
ce82496013 Create application initialization script 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
29d7f891da Split libs/common.php into separate files 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
b3d7a7a124 Fixed ability to use persistent database connection with an object of the Database class 2013-03-13 15:32:39 +00:00
Dmitriy Simushev
0861fd73d2 Removed global variables from the Database class constructor and updated tests for the Database class 2013-03-13 15:32:39 +00:00
Dmitriy Simushev
4db2ce5175 Fixed bug with wrong placeholders count in the 'thread_by_id' function 2013-03-13 15:32:39 +00:00
Dmitriy Simushev
031dbdc2b2 Fixed bug in a SQL query in the libs/pagination.php file 2013-03-13 15:32:39 +00:00
Dmitriy Simushev
57f1b175b1 All columns in the databse with 'datetime' type were changed to integer type 2013-03-13 15:32:39 +00:00
Dmitriy Simushev
e5ed85ed3f Added error handling to the RequestProcessor class 2013-03-13 15:32:39 +00:00
Dmitriy Simushev
fd108b1334 Added obligatory argument 'errorCode' to the mibew api 'result' function 2013-03-13 15:32:39 +00:00
Dmitriy Simushev
344299805c Renamed MibewAPIInteraction::getDefaultObligatoryArguments to MibewAPIinteraction::getObligatoryArgumentsDefaults 2013-03-13 15:32:38 +00:00
Dmitriy Simushev
41d40e3c04 Split mibew_api.php into several files 2013-03-13 15:32:38 +00:00
Dmitriy Simushev
2f18eb65b1 Added ability to specify different obligatory arguments list for different
functions to the PHP and JavaScript MibewAPI library
2013-03-13 15:32:38 +00:00
Dmitriy Simushev
79c4da8b2c Added abstract method RequestProcessor::saveCallback and its implementation CmsconnectorRequestProcessor::saveCallback 2013-03-13 15:32:38 +00:00
Dmitriy Simushev
b2a0a6cebd Created RequestProcessor class 2013-03-13 15:32:30 +00:00
Dmitriy Simushev
e708282a8f Added default value to $existance argument in the MibewAPI::getResultFunction method 2013-03-13 08:21:21 +00:00
Dmitriy Simushev
460d2d96c2 Added some documentation to the MibewAPI class 2013-03-13 08:19:20 +00:00
Dmitriy Simushev
31b6d96fc9 Added to the Mibew API the ability to use empty string as a signature 2013-03-13 08:18:39 +00:00
Dmitriy Simushev
555898e446 Implemented Mibew API 2013-03-13 08:17:34 +00:00
Dmitriy Simushev
5bd6f22cab Modified PluginManager to store plugins objects and use objects with regular methods instead static one 2013-03-13 08:13:50 +00:00
Dmitriy Simushev
ba5259b36c Fixed regexp bug in the Database class 2013-03-13 08:13:05 +00:00
Dmitriy Simushev
91c5ca45ae Modified plugin name for autoload 2013-03-13 08:12:38 +00:00
Dmitriy Simushev
c9ffa8291d Added some phpdoc documentation to EventDispatcher class 2013-03-13 08:12:11 +00:00
Dmitriy Simushev
f4e87f5303 Pass arguments to EventDispatcher::triggerEvent by reference 2013-03-13 08:11:27 +00:00
Dmitriy Simushev
17369b2f14 Replaced $initalize Plugin class member by static one 2013-03-13 08:10:44 +00:00
Dmitriy Simushev
36547eeeca Fixed cloasing threads by timeout 2013-03-13 08:10:06 +00:00
Dmitriy Simushev
f54acb3ae5 Fixed bug with placeholders and sql functions 2013-03-13 08:08:54 +00:00
Dmitriy Simushev
69695e5c3f Replaced plugin interface to plugin abstract class 2013-03-13 08:03:08 +00:00
Dmitriy Simushev
3f95a395c8 Integrate plugin system with mibew 2013-03-13 08:02:33 +00:00
Dmitriy Simushev
66a0d6ddca Added classes that implements plugin system and tests for them 2013-03-13 07:58:12 +00:00
Dmitriy Simushev
3e121c675f Removed old @todo 2013-03-13 07:55:36 +00:00
Dmitriy Simushev
be696ee3da Replaced settings functions with Settings class 2013-03-13 07:52:48 +00:00
Dmitriy Simushev
3929f26791 Created class for work with settings and test case for it 2013-03-13 07:49:50 +00:00
Dmitriy Simushev
ac64783a29 Moved database.php to libs/classes directory and related test case to tests/webim/libs/classes 2013-03-13 07:46:56 +00:00
Dmitriy Simushev
3e4163cbfe Replace database functions with Database class methods 2013-03-13 07:36:01 +00:00
Dmitriy Simushev
12883cfbe2 Created class for work with database and test class for it 2013-03-13 07:26:01 +00:00
Dmitriy Simushev
466cc31f45 Update headers 2013-03-12 21:03:50 +00:00
Dmitriy Simushev
ae149896e7 Merge branch 'v1.6.x' into OSSG/master
Conflicts:
	src/messenger/webim/install/dbperform.php
	src/messenger/webim/js/164/common.js
	src/messenger/webim/libs/common.php
	src/messenger/webim/locales/en/properties
	src/messenger/webim/locales/ru/properties
	src/messenger/webim/operator/canned.php
	src/messenger/webim/operator/operator.php
	src/messenger/webim/operator/operators.php
	src/messenger/webim/operator/performance.php
	src/messenger/webim/operator/settings.php
	src/messenger/webim/operator/translate.php
	src/messenger/webim/operator/update.php
	src/messenger/webim/operator/users.php
	src/messenger/webim/view/agents.php
	src/messenger/webim/view/performance.php
2013-03-11 11:01:35 +00:00
Evgeny Gryaznov
7bdd14c790 remove eclipse files; update version to 1.6.5; fix headers 2013-03-06 22:32:31 +01:00
Evgeny Gryaznov
98aad6e490 apache 2 license in php headers 2013-03-06 22:22:53 +01:00
Evgeny Gryaznov
c50d60730c fix move_uploaded_file errors 2013-03-05 00:03:39 +01:00
Evgeny Gryaznov
214e52e5c2 format the code; remove comments in the client code; move csrfchecktoken() right after check_login()
Conflicts:

	src/messenger/webim/libs/common.php
	src/messenger/webim/operator/canned.php
	src/messenger/webim/operator/cannededit.php
	src/messenger/webim/operator/operators.php
	src/messenger/webim/operator/settings.php
	src/messenger/webim/operator/translate.php
2012-07-03 15:21:59 +00:00
YuFei Zhu
69463ded6b update token methods to ensure csrf token is always get setted 2012-07-03 15:12:31 +00:00
YuFei Zhu
7035c3feba add csrf token check to avatar upload 2012-07-03 15:12:24 +00:00
YuFei Zhu
cb77595747 added auth token for delete offline messages check for csrf 2012-07-03 15:12:12 +00:00
YuFei Zhu
423c1335f4 enable act=del url check for auth tokens for csrf attacks
Conflicts:

	src/messenger/webim/view/agents.php
2012-07-03 15:12:04 +00:00
YuFei Zhu
5e75270cd0 having token checks on POST forms
Conflicts:

	src/messenger/webim/operator/cannededit.php
2012-07-03 15:09:47 +00:00
Evgeny Gryaznov
dd6632ffdf format the code; remove comments in the client code; move csrfchecktoken() right after check_login() 2012-06-27 10:11:40 +02:00
YuFei Zhu
7f8b2fca89 update token methods to ensure csrf token is always get setted 2012-05-01 13:18:42 +01:00
YuFei Zhu
e4be5385ca add csrf token check to avatar upload 2012-05-01 12:58:05 +01:00
YuFei Zhu
092ebd16ba added auth token for delete offline messages check for csrf 2012-04-30 17:14:44 +01:00
YuFei Zhu
8abf075e2f enable act=del url check for auth tokens for csrf attacks 2012-04-30 17:09:11 +01:00
YuFei Zhu
b84b439358 having token checks on POST forms 2012-04-30 16:41:55 +01:00
Dmitriy Simushev
9e871ee587 Fixed bug in visitor's tracking 2012-03-17 14:39:58 +00:00
Dmitriy Simushev
1681690d27 Replaced 'operator_get_all' and 'get_operators_from_adjacent_groups' functions by 'get_operators_list' function 2012-03-15 22:07:09 +00:00
Dmitriy Simushev
00fd2b796c Added sorting at operators page 2012-03-15 21:46:22 +00:00
4bb79cb7cb Fix bug in old threads cleansing 2012-03-14 22:26:44 +01:00
Dmitriy Simushev
323a7f2fcd Added closing threads by timeout 2012-03-14 22:26:39 +01:00
Dmitriy Simushev
5016eceae8 Added tabs at statistics page 2012-03-13 20:28:38 +00:00
Dmitriy Simushev
0fc5beb17a Added pergroups settings 2012-03-13 17:26:18 +00:00
Dmitriy Simushev
f9d39a8257 Added ability to select group in leavemessage form. 2012-03-09 19:40:07 +00:00
Dmitriy Simushev
b006c39c40 Added sorting at groups page 2012-03-01 21:39:19 +00:00
Dmitriy Simushev
61c52eb127 Added groups isolation 2012-02-25 19:40:05 +00:00
Dmitriy Simushev
0802ce8993 Added aggregating groups 2012-02-25 13:43:12 +00:00
Dmitriy Simushev
cf374158a8 Added groups weight 2012-02-15 13:56:55 +00:00
Dmitriy Simushev
678f54ca0c Added the ability to add 'strong' and 'span' tags in chat's system messages 2012-02-11 15:33:18 +00:00
Dmitriy Simushev
4e69fc957d Fixed empty default department description in prechat survey 2012-02-08 13:22:05 +00:00
Dmitriy Simushev
5f71deeb36 Added 'visitedpageststistics' table and fixed the bug, related to remove visitors' path during chat time 2012-02-08 11:54:39 +00:00
Dmitriy Simushev
1f4582ab20 Added some string related to threads error to localization 2012-02-08 11:54:39 +00:00
Dmitriy Simushev
6d87e5e1a6 Added short titles for canned messages 2012-01-29 11:18:35 +00:00
Dmitriy Simushev
be3efcfad3 Adding canned messages during system installation process 2012-01-26 21:29:26 +00:00
Dmitriy Simushev
177c3f22a7 Cleaned up code, related to canned messages 2012-01-26 16:00:30 +00:00
Dmitriy Simushev
1ca18622c6 Merge branch 'master' of github.com:OSSG/mibew into ossg_master 2012-01-24 22:06:34 +00:00
0b32b6a0d6 Fix bug in visitor's tracking 2012-01-24 16:41:54 +04:00
0aaed55634 Fix bug in button code generation 2012-01-24 16:41:15 +04:00
e7d9e59f4d Increase default lifetime of the old threads 2012-01-24 16:40:56 +04:00
c6e5e23057 Fix bug in old threads cleansing 2012-01-24 16:40:11 +04:00
Dmitriy Simushev
219b593b94 The 'Group' checkbox in system settings do not affect the ability to edit groups of operators, but affects only their actual availability to visitors. 2012-01-21 15:09:49 +00:00
Dmitriy Simushev
169680eda7 Fixed the bug related with the need to enter passwords when you change the profile of any operator. 2012-01-18 10:11:49 +00:00
Dmitriy Simushev
450e970ed8 When enabled the groups, visitors cannot start a chat, if only operators, who don't relate to any groups, online. 2012-01-15 20:51:12 +00:00
Dmitriy Simushev
13554a8e43 Fixed confirmation dialog before closing chat for operator 2012-01-10 16:35:31 +00:00
Dmitriy Simushev
f2ab19036a Added department description at select department screen 2012-01-03 19:45:49 +00:00
Dmitriy Simushev
2dc674e5d6 Added confirmation before closing chat 2011-12-26 18:39:27 +00:00
Dmitriy Simushev
fbeba2a54f Added ability to disable operator's account 2011-12-19 17:55:22 +00:00
Dmitriy Simushev
57f742a539 Added invitations styles 2011-12-15 08:14:07 +00:00
Dmitriy Simushev
b2167895e6 Implemented cross-domain invitations 2011-12-15 08:13:40 +00:00
Dmitriy Simushev
04a096fea1 Added Cross-domain javascript requests 2011-12-11 14:37:46 +00:00
Dmitriy Simushev
777b640f8e Added closing threads by timeout 2011-11-25 21:00:22 +00:00
Dmitriy Simushev
12b0883686 Split chatsitevisitor table into chatsitevisitor and visitedpage 2011-11-22 21:57:25 +00:00
Dmitriy Simushev
856123de48 Added Average chat time and Average waiting time statistics 2011-11-21 20:25:59 +00:00
Dmitriy Simushev
a923a3cfdc Replaced all mysql_free_result by db_free_result, except for the directory /install 2011-11-21 18:20:46 +00:00
Dmitriy Simushev
ef94a7eaf8 Added wrapper function for mysql_free_result 2011-11-21 18:20:38 +00:00
Dmitriy Simushev
12e7d34929 Replaced all mysql_query by perform_query, except for the directory /install 2011-11-21 18:19:58 +00:00
Dmitriy Simushev
7f31dfa2af Changed perform_query function. It now returns a reference to the query result 2011-11-21 18:19:44 +00:00
Dmitriy Simushev
65404ac1d2 Replaced all mysql_fetch_array by mysql_fetch_assoc or mysql_fetch_row, except for the directory /install 2011-11-21 18:19:04 +00:00
Dmitriy Simushev
b22f5456fc Added wrapper functions for mysql_fetch_assoc and mysql_fetch_row 2011-11-21 18:18:54 +00:00
Dmitriy Simushev
720c4472d3 Replaced all mysql_insert_id by db_insert_id 2011-11-21 18:11:59 +00:00
Dmitriy Simushev
863f6867c6 Added wrapper function for mysql_insert_id 2011-11-21 18:06:53 +00:00
Dmitriy Simushev
3e5834983f Replaced all mysql_error by db_error except for the directory /install 2011-11-21 18:06:04 +00:00
Dmitriy Simushev
51f6af7ced Added wrapper function for mysql_error 2011-11-21 18:05:57 +00:00
Dmitriy Simushev
5a3af46203 Replaced all mysql_real_escape_string by db_escape_string 2011-11-21 18:03:40 +00:00
Dmitriy Simushev
a47e66a6a6 Added wrapper function for mysql_real_escape_string 2011-11-21 17:55:03 +00:00
Dmitriy Simushev
1cd6926f4f Replaced all mysql_close by close_connection, except for the directory /install 2011-11-21 17:52:19 +00:00
Dmitry Simushev
6698601d19 Added wrapper function for mysql_close 2011-11-20 21:12:26 +00:00
Dmitry Simushev
b54cd674e6 Added the ability to use persistent connections 2011-11-20 21:11:27 +00:00
Haynes
e34b0d1c0d This commit forces the User to set a password for the Administrator before doing anything else after the installation. 2011-04-15 16:47:54 +04:00
Evgeny Gryaznov
65b00240d3 redirect to profile page after first login; informational banner when password is blank; do not enforce password change; rename Home -> Dashboard 2011-04-15 01:43:03 +02:00
Haynes
68f0e13e09 This commit forces the User to set a password for the Administrator before doing anything else after the installation. 2011-04-15 01:40:01 +02:00
Evgeny Gryaznov
84f37eb14c invitation patch by Fedor Fetisov 2011-04-07 10:34:37 +02:00
Evgeny Gryaznov
5bba5ed824 extract libs/getcode.php, use google closure compiler 2011-04-07 10:09:10 +02:00
Evgeny Gryaznov
79b37c720f fix groupids in visitors update; fix DB error reporting in installer; smaller opaway/oponline image 2011-04-07 00:31:22 +02:00
Evgeny Gryaznov
20bcf3c1f5 code cleanup 2011-02-27 00:02:29 +01:00
Evgeny Gryaznov
a90594235a format code in libs/ 2011-02-26 15:04:12 +01:00
Evgeny Gryaznov
693ece85fe format code, fix minor issues (link param, etc.) 2011-02-26 14:57:23 +01:00
Evgeny Gryaznov
e160af13ef use mysqlprefix in names of session vars 2011-02-26 14:43:30 +01:00
Evgeny Gryaznov
b18085de38 $mysqlprefix variable added 2011-02-26 14:13:16 +01:00
Evgeny Gryaznov
00e9c651d5 "you are offline" notification box 2011-02-26 13:24:29 +01:00
Evgeny Gryaznov
2dd0839f0d notify about new features 2011-02-26 13:15:35 +01:00
Evgeny Gryaznov
6bc85737cd extract get_operator_groupslist -> libs/groups.php; optimize db access (connect once); disable spelling inspection 2011-02-26 12:57:56 +01:00
Evgeny Gryaznov
f3d38642c6 move generate_button -> getcode.php 2011-02-26 11:56:17 +01:00
Evgeny Gryaznov
7de97c2a68 apply patch by Andrew Armstrong: available operators list (revised); remove odd eval code in common.js; fix obfuscation 2011-02-21 01:02:39 +01:00
Evgeny Gryaznov
13e5ac59a6 fix XSS problem in leavemessage 2011-02-16 02:17:30 +01:00
Evgeny Gryaznov
7e529b0567 update version: 1.6.4 2011-02-16 01:47:12 +01:00
Evgeny Gryaznov
c5bc5ed2f5 fast history search, fix redirection to groups, extract webim_mail function into notify.php 2011-02-16 01:43:19 +01:00
Evgeny Gryaznov
e3ead37bd7 2011 copyrights 2011-02-16 01:22:22 +01:00
Evgeny Gryaznov
8188c730b4 -> 1.6.3
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@691 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-10-13 21:02:06 +00:00
Evgeny Gryaznov
a2d5b04fe2 openwebim.org ->mibew.org
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@689 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-10-13 20:47:19 +00:00
Evgeny Gryaznov
23b199a406 get rid of annoying warning
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@669 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-09-22 20:59:59 +00:00
Evgeny Gryaznov
03eab80aca operator email, password retrieval - part 1
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@650 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-31 22:43:30 +00:00
Evgeny Gryaznov
85f5e291d7 split is deprecated fix
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@646 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-24 22:06:55 +00:00
Evgeny Gryaznov
1c8e8b88bf captcha issue fix
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@645 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-24 22:03:46 +00:00
Evgeny Gryaznov
b07eb9bfb6 add vcemail field into db for operator/group
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@644 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-18 23:29:05 +00:00
Evgeny Gryaznov
f94b2879c5 get rid of php warnings
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@627 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-11 16:10:22 +00:00
Evgeny Gryaznov
da0f99f530 show group name on leave message page, pass group id and referrer through leavemessage, clear group if redirected to operator not from the group, improved leave message after survey
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@625 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-11 15:06:46 +00:00
Evgeny Gryaznov
4b33346dab captcha: check if gdlib is installed
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@620 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-11 10:09:44 +00:00
Evgeny Gryaznov
04a584ffab jsver variable in tpl support
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@619 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-11 09:45:44 +00:00
Evgeny Gryaznov
997e6d81ab js versioning
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@618 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-11 09:41:13 +00:00
Evgeny Gryaznov
672fc56b46 create special thread for left message
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@607 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-07 22:49:11 +00:00
Evgeny Gryaznov
f9898e5b85 remove odd white spaces, unify headers
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@604 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-04 16:30:39 +00:00
Evgeny Gryaznov
38f4db4100 license, readme, update version to 1.6.2
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@603 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-04 15:26:11 +00:00
Evgeny Gryaznov
faf9ff61b2 update copyright header
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@602 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-04 15:03:27 +00:00
Evgeny Gryaznov
003fd4597a add GPL clause
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@599 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-08-04 13:38:37 +00:00
Evgeny Gryaznov
9aa07e48de performance options
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@596 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-07-24 09:05:39 +00:00
Evgeny Gryaznov
19a5576539 mod_security compatibility mode
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@595 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-07-24 08:06:24 +00:00
Evgeny Gryaznov
65bb8f0f97 operator is away support
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@594 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-07-24 07:37:58 +00:00
Evgeny Gryaznov
507f0c9d60 turn off captcha by default (as previous versions didn't have it)
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@593 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-07-19 00:10:15 +00:00