Commit Graph

2242 Commits

Author SHA1 Message Date
03a2051ad7 Fix bug with disappearing toggle control (Fixes #209) 2017-10-03 01:41:57 +03:00
51ad3e70d3 Fix unhandled error in plugins list discovering 2017-09-22 17:27:34 +03:00
9417960281 Update the server requirements in README 2017-07-17 19:38:45 +03:00
a312bc5e8f Bump version 2017-07-06 16:10:15 +03:00
a617eebeec Prevent unauthorized access to chat history 2017-07-06 16:00:06 +03:00
38e53aaa6a Bump version 2017-06-27 14:50:02 +03:00
8b6d411d58 Merge pull request #204 from Mibew/styles_fix
Styles fix
2017-06-15 19:34:14 +03:00
1b436f9535 Fix setting of the invitation style 2017-06-15 19:28:47 +03:00
64fccc272c Fix typo in comment 2017-06-09 01:01:51 +03:00
ead790853e Fix setting of the chat style 2017-06-05 18:34:13 +03:00
Fedor A. Fetisov
47e7a81f6f Update year in visible copyright notices 2017-05-26 22:23:30 +03:00
Fedor A. Fetisov
73b11b48af Fix code style 2017-05-26 16:07:26 +03:00
Fedor A. Fetisov
5bb282b3bd Bump version 2017-05-26 16:03:08 +03:00
Fedor A. Fetisov
9608c5a83d Update copyright notice 2017-05-26 16:02:42 +03:00
568e539e49 Merge branch 'ipv6' 2017-05-26 15:42:18 +03:00
Fedor A. Fetisov
8c99b13e12 Improve algorithm in setting the value for a visitor's IP 2017-05-25 12:01:11 +03:00
35bbb22c56 Fix a typo 2017-05-24 16:52:30 +03:00
Fedor A. Fetisov
169b8d3b76 Fix clean task of Gulp
Task 'clean' now compatible with multiple styles (Fixes #200)
2017-05-23 17:12:42 +03:00
d8a63bc2cd Fix invalid algorithm in setting the value for a visitor's IP 2017-05-23 16:16:00 +03:00
f105a0b5d2 Fix inline doc for get_remote_host() 2017-05-22 02:03:29 +03:00
843a6e11ae Define correct remote IP for a visitor (with IPv6 support)
See #197
2017-05-22 02:02:31 +03:00
82704cfbd6 Improve instruction for update (Fixes #189) 2017-03-18 00:57:05 +03:00
Dmitriy Simushev
19376e7f6c More promises to gulpfile.js! 2017-03-16 23:46:01 +03:00
Dmitriy Simushev
3ae6e5cdb4 Use promises to build all the styles 2017-03-13 14:29:16 +03:00
29c9d8dc7d Specify minimal version of Node.js in package.json 2017-03-10 18:07:17 +03:00
3a85c9060b Add watch task (see #179) 2017-03-10 01:45:23 +03:00
834e75cdd6 Compile all styles (see #179) 2017-03-10 01:44:53 +03:00
e2099735e1 Make existing configs backwards compatible with the trusted_proxies option 2017-03-09 23:58:13 +03:00
Dmitriy Simushev
8b1e218862 Add "trusted_proxy" option
Fixes #188
2017-03-09 13:34:57 +00:00
e718518698 Fix permissions for release archives 2017-02-08 10:41:35 +03:00
cc55a13151 Make handlebars cache adapter compatible with the new version of handlebars.php 2016-12-29 18:23:41 +03:00
0fc11b3885 Merge pull request #185 from Mibew/x 2016-12-29 17:50:08 +03:00
16b7297d19 Merge pull request #184 from Mibew/fix_143 2016-12-29 17:49:37 +03:00
1683b7c72a Fix invalid comment 2016-12-29 17:42:11 +03:00
f4ad0a2351 Prevent unnecessary increment of thread revision value
Fixes #149
2016-12-29 17:37:40 +03:00
7f6b193656 Clear routes from cache when a plugin becomes initialized or non-initialized for the first time
Fixes #143
2016-12-29 02:56:50 +03:00
15dbe153f5 Implement cache for Plugin Manager 2016-12-28 19:51:11 +03:00
547efb38e4 Load plugins after the cache initialization 2016-12-28 19:31:22 +03:00
f44ccdc4e1 Remove irrelevant comment 2016-12-28 19:19:44 +03:00
1549125665 Fix bug with failed initialization of plugins that does not need config at all 2016-12-28 19:18:46 +03:00
cf76dd744d Store plugin initialization status in the database 2016-12-28 17:30:33 +03:00
57afba72e8 Update database schema
Add into the plugins table a column to store last known initialization status
2016-12-28 03:55:18 +03:00
3f97ad09df Bump version 2016-12-28 03:53:39 +03:00
00213f806c Implement minification of the chat iframe
Fixes #153
2016-12-28 03:30:02 +03:00
d0f1c50f51 Implement toggle method for iframe-based chat popup 2016-12-27 19:39:11 +03:00
5424424eaf Remove duplicate init for isOnline 2016-12-26 18:26:22 +03:00
7aed881f08 Fix naming for the new template variable 2016-12-26 18:22:51 +03:00
ca169c5bc7 Make possible to determine whether an operator is online at any page of the administrative interface
Fixes #181
2016-12-24 03:33:49 +03:00
7041adcdfb Remove built-in (and broken) geo location feature from the core
Fixes #173
2016-12-23 17:35:42 +03:00
ffcdb223cc Fix typos in comments 2016-12-23 15:33:49 +03:00
c70bdfcd90 Prevent system from using uninitialized values when configuration doesn't exists 2016-12-23 15:32:14 +03:00
d512573af8 Make sure that configuration file exist
Fixes #105
2016-12-23 15:21:13 +03:00
0527a9def1 Remove double escape of values in the tracked path of a visitor.
Fixes #137
2016-12-23 14:43:19 +03:00
09ef31e750 Update versions requirements for Gulp 2016-12-08 18:10:19 +03:00
Joshua Fricke
8c3cbf0489 feat: set min version for xamin/handlebars.php to ~0.10.3 2016-11-02 14:55:13 -07:00
Joshua Fricke
45ac4ec1ee feat: update justblackbird/handlebars.php-helpers dependency to v1
* update .../String namespace to .../Text in Handlebars/Helpers.php
2016-09-22 13:42:12 -07:00
e3123d7c45 Update forgotten version number 2016-08-10 18:02:42 +03:00
680059dece Fix code styling in the contributed code 2016-08-09 18:21:25 +03:00
e9526daf1c Bump version 2016-08-09 18:07:11 +03:00
a2774b8fb9 Merge pull request #171 from Mibew/nav666-patch-1
Try to initialize session only once
2016-08-09 18:01:02 +03:00
Silron88
8b32bebdc2 fix: if click send and before message is sended click send again then message will be duplicated 2016-08-08 18:51:54 +03:00
788a18f7f1 Merge branch 'patch-1' of https://github.com/nav666/mibew into nav666-patch-1 2016-08-08 18:40:57 +03:00
ad186da482 Update copyright notices 2016-08-08 18:31:45 +03:00
345cb1748a Merge pull request #167 from candido1212/patch-1
Add missing localization constant
2016-08-08 17:25:12 +03:00
e8f07d27ef Merge pull request #168 from nav666/patch-2
Fix issue with invalid default weight for memcached server in config
2016-08-08 17:24:08 +03:00
e64fe1eb17 Bump version 2016-06-28 16:20:12 +03:00
Dmitriy Simushev
e6dfd1dfec Fix unused vars in JS code 2016-06-09 20:55:59 +00:00
Dmitriy Simushev
a56e775ab9 Make ES lint stop nagging about unused argument of catch statement 2016-06-08 18:20:00 +00:00
Dmitriy Simushev
ce3a59b13c Remove unreachable js code 2016-06-04 14:03:37 +00:00
Dmitriy Simushev
85d1acad5e Refer to jQuery as 'jQuery' and not '$' 2016-06-04 14:02:05 +00:00
Dmitriy Simushev
13dd999158 Add all missed semicolons to JS app
Yes, I know about ASI and that the simicolons are not actually
needed in most cases, but I belive the code looks better when
semicolons are in places.
2016-06-03 14:23:17 +00:00
Dmitriy Simushev
cb3bd91b76 Fix indent in JS app 2016-06-03 13:34:55 +00:00
Dmitriy Simushev
d5130ed655 Make sure all for-in loops works as expected 2016-06-02 23:20:24 +00:00
Stefan Weil
a149731c46 Fix some typos in variable names and strings
Most of them were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-05-30 23:00:08 +02:00
Dmitriy Simushev
2e629df611 Add gulp task for JavaScript files linting 2016-05-30 13:15:50 +00:00
Stefan Weil
ce5cbaa850 Fix some typos in comments (most of them found by codespell)
Fix also an error string in Updater.php.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-05-28 12:02:30 +02:00
Alexander Burakovskiy
4d32e942a3 Add ability to ban forever 2016-05-04 13:14:10 +03:00
nav666
95909d7ed4 Update default_config.yml 2016-04-07 02:41:19 +03:00
nav666
fad8ca5854 Update init.php 2016-04-07 02:24:01 +03:00
Candido
cd3778ca0d Add translate to string "cannot load avatar" 2016-03-07 11:27:35 -03:00
Alexander Burakovskiy
0edc9657b4 Fix thread ban 2016-02-25 14:53:15 +02:00
9fe423db62 Fix syntax errors 2015-08-23 22:15:10 +03:00
Dmitriy Simushev
a9e7114375 Reduce duplication in get_operators_from_adjacent_groups function 2015-08-05 14:38:49 +00:00
Dmitriy Simushev
e150bd1d26 Mark get_all_groups_for_operator function as deprecated 2015-08-05 14:35:13 +00:00
Dmitriy Simushev
4c9f963aa7 Fix groups isolation
See #131 for details
2015-08-05 14:22:56 +00:00
Dmitriy Simushev
9d81661cfe Fix history for operator without colleagues whose threads he can view
Fixes #132
2015-08-05 13:48:42 +00:00
fcd3cacfbc Add brief update instruction into README 2015-07-24 13:23:42 +03:00
Dmitriy Simushev
3edc959096 Bump version 2015-07-14 11:38:49 +00:00
Dmitriy Simushev
d656d8fe38 Update PHPCode Sniffer 2015-07-08 10:07:11 +00:00
Dmitriy Simushev
eccbb59bcc Require PHP's mbstring extension
Fixes #125
2015-06-19 11:26:03 +00:00
Dmitriy Simushev
8457e51717 Add THREAD_USER_IS_READY event 2015-06-19 11:15:07 +00:00
Dmitriy Simushev
227c7a9410 Localize message about no available updates at the "About" page 2015-06-10 13:02:01 +00:00
Dmitriy Simushev
9c92fda11b Localize "Download" link caption at the "About" page 2015-06-10 12:54:34 +00:00
Dmitriy Simushev
896f090aba Show history for group's related threads when isolation is on 2015-06-10 08:37:54 +00:00
Dmitriy Simushev
5363698020 Make sure appropriate defaults for omitted configs are used 2015-06-08 14:20:45 +00:00
Dmitriy Simushev
aa0c213cc3 Deny access for another's history in groups isolation mode 2015-06-08 14:18:39 +00:00
Dmitriy Simushev
5009f51342 Deny access to history for operators without CAN_VIEWTHREADS permission 2015-06-08 10:08:27 +00:00
Dmitriy Simushev
b340206d3a Merge branch 'auto_update' 2015-06-05 14:47:12 +00:00
Dmitriy Simushev
2cbb0c4134 Set correct instance ID when checking updates manually 2015-06-05 14:38:18 +00:00
Dmitriy Simushev
8c574ec88c Update Updates Server URL one more time 2015-06-05 14:28:12 +00:00
Dmitriy Simushev
5af9f92102 Send instance ID to the updates server 2015-06-05 11:53:39 +00:00
Dmitriy Simushev
6bf331b355 Rename "available_update" table to "availableupdate"
This is needed to follow naming convention
2015-06-05 11:39:44 +00:00
Dmitriy Simushev
4b74ceb854 Fix "available_update" table schema 2015-06-05 11:34:13 +00:00
Dmitriy Simushev
25054c4e0f Add "_instance_id" setting 2015-06-05 11:33:19 +00:00
Dmitriy Simushev
fbe53e3b29 Create getter for update checker inside the cron worker 2015-06-05 09:45:25 +00:00
Dmitriy Simushev
5397f7014a Fix default URL of updates server 2015-06-04 10:16:51 +00:00
Dmitriy Simushev
ebb3cf8ab1 Use the latest version of JSON2 from Douglas Crockford's repository 2015-06-01 13:35:58 +00:00
Dmitriy Simushev
55e7dbe704 Update Bower dependencies
Backbone.js and Underscrore.js left untouched because of versions
conflict with Marionette.js
2015-06-01 13:28:07 +00:00
Dmitriy Simushev
f13d938bde Update build dependencies 2015-06-01 13:08:15 +00:00
Dmitriy Simushev
0ff5c7c28a Fix localization constant at locale edit page 2015-05-28 14:42:10 +00:00
Dmitriy Simushev
fc789e6ef9 Improve statistics aggregation algorithm a little 2015-05-28 13:49:42 +00:00
Dmitriy Simushev
9f3ce28877 Remove unused "use" statement 2015-05-28 13:22:46 +00:00
Dmitriy Simushev
4e7f9eac50 Provide a way to disable automatical updates checking 2015-05-26 14:45:34 +00:00
Dmitriy Simushev
2fc85b1068 Add "check for updates" button to "about" page 2015-05-26 14:19:09 +00:00
Dmitriy Simushev
930ea9a6ac Show info about cURL extension at "About" page 2015-05-26 13:54:39 +00:00
Dmitriy Simushev
d4ebd68052 Show list of available updates at "About" page 2015-05-26 13:53:22 +00:00
Dmitriy Simushev
e9d41c4869 Fix name of "available_update" table 2015-05-26 13:34:58 +00:00
Dmitriy Simushev
577c2be622 Create a way to automatically get info about available updates 2015-05-26 13:19:13 +00:00
Dmitriy Simushev
8e7fe6bcd7 Remove debug statements from CronWorker 2015-05-26 12:17:32 +00:00
Dmitriy Simushev
973cc5746e Remove unused "use" statement 2015-05-22 12:55:49 +00:00
Dmitriy Simushev
8326eb3ebf Merge branch 'editable_locales'
This allows to edit locales meta info using UI
2015-05-22 12:22:27 +00:00
Dmitriy Simushev
e9baceb039 Add an ability to change locale setting using UI
Fixes #99
2015-05-22 11:26:48 +00:00
Dmitriy Simushev
720b72f8e4 Use the latest version of PHPCS from the repository 2015-05-22 10:59:46 +00:00
a3ebe57f1f Bump version 2015-05-22 13:40:33 +03:00
Dmitriy Simushev
d9dc5e0ed7 Fix password form disapearing on installation 2015-05-21 14:09:28 +00:00
Dmitriy Simushev
bc024c3253 Fix layout for install and login pages 2015-05-21 13:58:54 +00:00
Dmitriy Simushev
137d92624e Store locales' meta info in the database 2015-05-21 12:39:36 +00:00
Dmitriy Simushev
5d13afd8f6 Make sure visitor name is not empty in prechat survey 2015-05-08 14:54:53 +00:00
Dmitriy Simushev
5628f42782 Make sure Thread::groupId is always integer
See https://mibew.org/forums/index.php/topic,191756.0.html for details
about why it's needed.
2015-05-08 12:46:50 +00:00
Dmitriy Simushev
eae5b8bb06 Make rewrite rules work with old Apache
See https://mibew.org/forums/index.php/topic,191761.0.html
2015-05-07 14:17:14 +00:00
Dmitriy Simushev
40fef4e360 Fix "replace" Handlebars.js helper 2015-05-07 13:23:53 +00:00
Dmitriy Simushev
ab35143e18 Add gulp "rebuild" task 2015-04-17 14:18:59 +00:00
Dmitriy Simushev
f176ac628b Use clean inside "default" gulp task 2015-04-17 13:07:25 +00:00
Dmitriy Simushev
7a09546198 Fix docs for EventDispatcher\Events::BUTTON_GENERATE const 2015-04-15 14:30:44 +00:00
Dmitriy Simushev
47672a5eb6 Fix gulp clean task 2015-04-14 11:43:56 +00:00
Dmitriy Simushev
3307ba01dc Fix bug with race condition on build 2015-04-14 11:39:33 +00:00
7d3558460b Bump version 2015-04-14 13:47:23 +03:00
Dmitriy Simushev
2fdb7e4525 Update copyrights in the default page style CSS file 2015-04-08 09:46:10 +00:00
Dmitriy Simushev
48d8805605 Add "Show menu" link at awaiting users page
Fixes #95
2015-04-08 09:44:05 +00:00
Dmitriy Simushev
e4a104f52e Add CLI cron worker 2015-04-01 15:28:10 +00:00
Dmitriy Simushev
ff09ea09cc Extract CronWorker from CronController 2015-04-01 15:24:51 +00:00
Dmitriy Simushev
a4ce7ffea7 Clean up before release preparation 2015-03-31 10:54:34 +00:00
0f8b5da18a Bump version 2015-03-30 14:10:55 +03:00
Dmitriy Simushev
1a358c2f09 Don't call set_csrf_token() function in controllers 2015-03-27 15:19:10 +00:00
Dmitriy Simushev
b56881bf01 Mark Database::throwExeptions method as deprecated
This is done because the method has a typo in the name.
2015-03-27 15:05:17 +00:00
Dmitriy Simushev
59de37a12b Automatically reject invitation when visitor goes to another page 2015-03-27 14:34:53 +00:00
Dmitriy Simushev
2a819b1b98 Allow using "?" and "*" wildcards for history search 2015-03-27 13:29:12 +00:00
Dmitriy Simushev
a9eb9f8cf2 Mark thread as chatting right after an invitation is accepted 2015-03-27 12:31:11 +00:00
Dmitriy Simushev
70f630d125 Rewrite Thread::take method to simplify it 2015-03-27 12:29:54 +00:00
Dmitriy Simushev
0075e2169c Add a function that loads online operators 2015-03-26 10:46:50 +00:00
Dmitriy Simushev
f47a67fd57 Notify operators only about threads that are waiting for the answer 2015-03-25 14:41:42 +00:00
Dmitriy Simushev
b2bb9cfb92 Do not show alert if another one is already shown 2015-03-25 14:28:03 +00:00
Dmitriy Simushev
a3f68852ce Fix broken avatar URL in invitation 2015-03-24 15:29:18 +00:00
Dmitriy Simushev
2031d82600 Bump version 2015-03-24 15:05:05 +00:00
Dmitriy Simushev
31b09570f9 Allow to use multiple memcached servers for caching 2015-03-24 15:01:39 +00:00
Dmitriy Simushev
b18aef404a Use bower for managing client side dependencies
Fixes #117
2015-03-23 16:42:32 +00:00
Dmitriy Simushev
6fb71835bf Update Handlebars.js to v3.0.0 2015-03-23 10:05:40 +00:00
Dmitriy Simushev
22aaedd3be Add support of memcached storage for caching 2015-03-20 15:26:15 +00:00
Dmitriy Simushev
758203b6d3 Encapsulate cache pool instantiation in CacheFactory 2015-03-20 14:59:11 +00:00
Dmitriy Simushev
57182b0589 Forbid access to cache files 2015-03-20 13:24:34 +00:00
Dmitriy Simushev
0f44076e48 Use unexpired cache for routes by default 2015-03-20 13:15:32 +00:00
Dmitriy Simushev
094139dead Add routes caching 2015-03-20 13:08:04 +00:00
Dmitriy Simushev
30fd4bad7c Add HTTP caching headers to translations.js
Fixes #70
2015-03-19 12:04:42 +00:00
Dmitriy Simushev
9fef4b2871 Simplify working with Asset Manager in Handlebars helpers 2015-03-19 09:55:58 +00:00
Dmitriy Simushev
db702e43c9 Simplify working with Router in Handlebars helpers 2015-03-19 09:34:16 +00:00
Dmitriy Simushev
93c5cb995a Update Vex.js to v2.3.2 2015-03-18 13:15:41 +00:00
Dmitriy Simushev
5fada43676 Update Marionette.js to v2.4.1 2015-03-18 13:07:26 +00:00
Dmitriy Simushev
adac8fb3fd Update Underscore.js to v1.8.2 2015-03-18 12:57:56 +00:00
Dmitriy Simushev
0eef94a164 Update composer dependencies 2015-03-18 12:50:09 +00:00
Dmitriy Simushev
3c0c880661 Add CSRF protection for password recovery forms 2015-03-17 14:41:31 +00:00
Dmitriy Simushev
e122d020eb Add CSRF protection to login form 2015-03-17 14:22:32 +00:00
Dmitriy Simushev
a8629df5ec Use "encodeURIComponent" instead of "escape" in popup windows JS
This also fixes passing client's URL for IDN domains to the server.
2015-03-17 13:47:23 +00:00
Dmitriy Simushev
415005e2f6 Fix validation for empty emails 2015-03-17 13:25:00 +00:00
Dmitriy Simushev
6e78c45c67 Allow using email with IDN domains at the server side 2015-03-17 12:25:25 +00:00
Dmitriy Simushev
6ac77e629a Improve email validation at the client side 2015-03-17 12:24:21 +00:00
Dmitriy Simushev
313e854723 Move email validation function to Mibew\Mail\Utils class 2015-03-17 10:36:45 +00:00
Dmitriy Simushev
4332d9c205 Use third-party library to validate email at client side 2015-03-17 10:31:37 +00:00
Dmitriy Simushev
833d2a9096 Use PHP's filter_var function for email validation 2015-03-16 15:58:34 +00:00
Dmitriy Simushev
6e71f0542b Store relative avatar path in database
Also it fixes #114
2015-03-16 12:56:36 +00:00
f6fe379a54 Add information on cron job into README 2015-03-10 18:18:22 +03:00
Dmitriy Simushev
cc5adc17b2 Use correct field to pass operator's requests frequency to client side
Fixes #112
2015-03-04 09:56:37 +00:00
284318a287 Update version 2015-02-24 18:21:20 +03:00
Dmitriy Simushev
edcd348bca Fix bug with single popup window openning 2015-02-20 14:22:59 +00:00
Dmitriy Simushev
21ae86958d Remove unused AbstractGenerator::getChatUrlForJs method 2015-02-03 16:20:39 +00:00
Dmitriy Simushev
0dca0bb57d Build correct URLs for chat popups 2015-02-03 16:19:01 +00:00
Dmitriy Simushev
933ced4575 Do not use HTML entities inside script tag
Fixes #107
2015-02-03 16:17:52 +00:00
Dmitriy Simushev
232d69cf72 Use Vex.js for alert, confirm and prompt 2015-02-03 14:23:32 +00:00
Dmitriy Simushev
c1850f0bb3 Use async notice for alert, confirm and prompt functions 2015-02-03 14:08:52 +00:00
Dmitriy Simushev
ebd6684d4a Switch to PHPCS 2.x 2015-02-03 09:49:00 +00:00
Dmitriy Simushev
62f958622c Use stable version of UA parser 2015-02-03 09:46:07 +00:00
Dmitriy Simushev
626145340e Fix setting current database version in the Updater 2015-01-26 12:17:52 +00:00
Dmitriy Simushev
84b0d891e0 Update dependencies of the build system 2015-01-23 11:47:12 +00:00
Dmitriy Simushev
ef98d5056a Make the project buildable on windows 2015-01-23 11:34:24 +00:00
Dmitriy Simushev
ea0b6a0cd5 Add "widgetResponseAlter" event 2015-01-22 12:58:53 +00:00
Dmitriy Simushev
f015b5b820 Pass an instance of Request Processor to *_FUNCTION_CALL events 2015-01-22 11:41:35 +00:00
Dmitriy Simushev
6d3810b7ba Improve Mibew.Utils.toDashFormat JS function 2015-01-21 11:49:27 +00:00
Dmitriy Simushev
e273b04dab Remove unneded condition from profile controller 2015-01-21 11:48:40 +00:00
Dmitriy Simushev
9799fb5e3f Fix "empty password" notification 2015-01-21 11:28:13 +00:00
Dmitriy Simushev
c27a0e1aea Use correct login to generate password hash when it is changed 2015-01-21 11:22:12 +00:00
47ee6edaad Update copyright notices 2015-01-21 14:04:29 +03:00