Commit Graph

1598 Commits

Author SHA1 Message Date
Dmitriy Simushev
1a60aeac2e Remove trailing slash if it exists in a request
Fixes #36
2014-07-14 11:02:20 +00:00
Dmitriy Simushev
1a3062f2f9 Use more convenient name for the primary key in "translation" table 2014-07-14 10:35:50 +00:00
Dmitriy Simushev
14e709be37 Do not use "needChangePassword" template var 2014-07-14 10:25:59 +00:00
Dmitriy Simushev
5636b1ab3d Imporove localization strings import and saving 2014-07-14 10:23:49 +00:00
Dmitriy Simushev
67383cf052 Use YAML files for style configs 2014-07-14 08:59:13 +00:00
Dmitriy Simushev
2ba5c0e9b3 Use convenient names for database tables 2014-07-14 08:36:29 +00:00
Dmitriy Simushev
2af3df4bc6 Remove a stub for get_enabled_locales function 2014-07-11 15:15:59 +00:00
Dmitriy Simushev
e4829b9c04 Fix locales disable 2014-07-11 15:14:46 +00:00
Dmitriy Simushev
a63215f299 Replace HOME_LOCALE const with get_home_locale() func 2014-07-11 15:05:42 +00:00
Dmitriy Simushev
cca081b5c7 Replace DEFAULT_LOCALE const with get_default_locale() func 2014-07-11 14:36:37 +00:00
Dmitriy Simushev
803863571b Replace const CURRENT_LOCALE with get_current_locale() func 2014-07-11 14:26:14 +00:00
Dmitriy Simushev
e3e25f78d7 Reduce count of .htaccess files
Fixes #34
2014-07-11 13:33:59 +00:00
Dmitriy Simushev
7ce675da86 Remove outdated PHPUnit tests
Need new good tests.
2014-07-11 13:10:18 +00:00
Dmitriy Simushev
f33c686aab Lowercase database columns names 2014-07-11 13:00:11 +00:00
Dmitriy Simushev
bdd7d31bd5 Remove operator's avatar file when it is removed for UI
Fixes #39
2014-07-11 12:13:57 +00:00
Dmitriy Simushev
6ae53d90af Remove message about empty password and first login 2014-07-11 11:56:48 +00:00
Dmitriy Simushev
217ccb9e09 Fix phpdoc comments 2014-07-11 11:14:42 +00:00
Dmitriy Simushev
8a79393989 Add an ability to use non-default database port
Fixes #40
2014-07-11 11:09:17 +00:00
524302fb2e Prevent use of an invalid salt for Blowfish hashing of passwords 2014-07-11 09:20:49 +00:00
Dmitriy Simushev
dadbe36bd2 Downgrade Handlebars.php a little
The latest version of Handlebars.php contains a problem with nested
ifs (https://github.com/XaminProject/handlebars.php/pull/71) thus
it cannot be used.
2014-07-11 09:08:18 +00:00
Dmitriy Simushev
0f9e49a1ce Update Handlebars.php 2014-07-10 14:29:58 +00:00
Dmitriy Simushev
991422fef4 Update README 2014-07-10 14:25:31 +00:00
Dmitriy Simushev
b5e502c647 Remove "mibew_root" variable from configs 2014-07-10 14:18:11 +00:00
Dmitriy Simushev
5688f81904 Fix installation sound check 2014-07-10 14:07:15 +00:00
Dmitriy Simushev
0a82b6933e Use step-by-step installation process 2014-07-10 13:53:44 +00:00
Dmitriy Simushev
0820dc9997 Do not ignore "mibew/install" dir in "check_coding_style" script
This dir was not follow coding standatrds but not it does not
exist.
2014-07-09 10:09:28 +00:00
Dmitriy Simushev
93cfdc3ed1 Remove unused "start_html_output" function 2014-07-09 10:06:50 +00:00
Dmitriy Simushev
3bb795a793 Use YAML for the core configurations 2014-07-09 09:14:26 +00:00
Dmitriy Simushev
99a4ca6192 Move all runtime configs to "configs" dir 2014-07-09 08:31:51 +00:00
Dmitriy Simushev
b84a6b1855 Make the first approach to a new installer 2014-07-08 14:30:53 +00:00
Dmitriy Simushev
8384a58118 Check for installation in get_localized_string function 2014-07-08 14:25:36 +00:00
Dmitriy Simushev
037b823db9 Do not rely on database state during installation 2014-07-08 12:43:53 +00:00
Dmitriy Simushev
edef518da3 Add mail templates import 2014-07-08 11:51:06 +00:00
Dmitriy Simushev
1bfbb5c243 Add canned messages import 2014-07-08 11:01:30 +00:00
Dmitriy Simushev
232fde0a73 Decouple CookieFactory from AuthenticationManager 2014-07-04 13:49:16 +00:00
Dmitriy Simushev
93eeeafd3c Inject authentication manager into Application using constructor 2014-07-04 13:11:40 +00:00
Dmitriy Simushev
af112aa72b Implement "AuthenticationManagerInterface" in "CheckResolver" class 2014-07-04 12:56:48 +00:00
Dmitriy Simushev
8dbc46145c Implement "AuthenticationManagerAwareInterface" in "ControllerResolver" class 2014-07-04 12:48:43 +00:00
Dmitriy Simushev
184e6ccdc3 Make "ControllerResolver" implements "RouterAwareInterface" 2014-07-04 12:46:16 +00:00
Dmitriy Simushev
42c1d4e340 Use "RouterInterface" instead of "Router" in "AbstractController" 2014-07-04 12:24:21 +00:00
Dmitriy Simushev
2ab669ba3a Use "RouterInterface" instead of "Router" in "RouterAwareInterface" 2014-07-04 12:04:51 +00:00
Dmitriy Simushev
eb078a0b73 Specify routes set to load via Router options 2014-07-02 12:24:28 +00:00
Dmitriy Simushev
4649a0d3dc Fix bug with localized strings case sensitivity 2014-07-02 11:44:27 +00:00
Dmitriy Simushev
1a599a6af3 Inject a Router to the Application via constructor 2014-07-02 10:44:16 +00:00
Dmitriy Simushev
5337d899d4 Do not initialize database and load plugins during installation 2014-07-02 10:00:12 +00:00
Dmitriy Simushev
c3685f3aad Make basic locale function work without database 2014-07-02 09:51:23 +00:00
Dmitriy Simushev
feff032c31 Remove unused "read_config_file" function 2014-07-02 09:28:06 +00:00
Dmitriy Simushev
ef958483bb Use a function to load system configs 2014-07-02 09:26:55 +00:00
Dmitriy Simushev
dfeadec80b Remove unused "libs/common/forms.php" library 2014-07-01 12:56:45 +00:00
Dmitriy Simushev
f66bab2dd2 Remove unused functions related with request processing 2014-07-01 08:27:27 +00:00
Dmitriy Simushev
27ed59eb08 Do not automatically load translations from plugins
One shoud use translations import feature instead
2014-07-01 08:07:16 +00:00
Dmitriy Simushev
c9a81dd174 Rename "TranslationsImportController" to "TranslationImportController" 2014-06-30 14:53:23 +00:00
Dmitriy Simushev
fe40fd57ae Provide an ability to import translations 2014-06-30 14:34:14 +00:00
Dmitriy Simushev
53fbb8e6e7 Import localized messages when locale is enabled for the first time 2014-06-30 13:21:14 +00:00
Dmitriy Simushev
904f7d1109 Fix title at the "operator/locales" page 2014-06-30 13:07:15 +00:00
Dmitriy Simushev
7edc74b253 Remove "get_locale_names" function 2014-06-30 11:59:14 +00:00
Dmitriy Simushev
2f82594a60 Remove unneeded function "get_local_for_js" 2014-06-30 07:47:17 +00:00
Dmitriy Simushev
791abc1c2b Make translation interface play nice with new localization system 2014-06-27 13:22:38 +00:00
Dmitriy Simushev
1f899a3d80 Save unknown localization strings to the database 2014-06-27 11:35:14 +00:00
Dmitriy Simushev
1a3982d1b7 Update Handlebars.php 2014-06-26 15:15:54 +00:00
Dmitriy Simushev
64c626ffdb Use english strings instead of keys for localization 2014-06-26 15:14:15 +00:00
Dmitriy Simushev
c454ec6d98 Remove asterisk markup from localization constants 2014-06-24 10:14:21 +00:00
Dmitriy Simushev
70c77762a2 Add locales managment to UI 2014-06-24 09:47:23 +00:00
Dmitriy Simushev
7309244ccf Update Handlebars.php 2014-06-23 10:27:21 +00:00
Dmitriy Simushev
fa5bf90195 Remove canned messafes from localization constants 2014-06-20 09:25:30 +00:00
Dmitriy Simushev
f34ddb1060 Remove mail templates from localization constants 2014-06-19 14:21:23 +00:00
Dmitriy Simushev
561c512a9b Remove time format from localization constants 2014-06-18 13:54:50 +00:00
Dmitriy Simushev
bde9f2eb00 Fix bug with mail_template_load function 2014-06-18 11:14:35 +00:00
Dmitriy Simushev
47880fa951 Create "get_locale_info" function to improve code readability 2014-06-17 14:27:52 +00:00
Dmitriy Simushev
56357c4d40 Remove "localedirection" localization constant 2014-06-17 14:17:12 +00:00
Dmitriy Simushev
ec2574d707 Remove "localeid" localization constatant 2014-06-17 13:30:15 +00:00
Dmitriy Simushev
7c183fbe73 Remove unused localization constants 2014-06-17 12:07:19 +00:00
Dmitriy Simushev
3f60187158 Remove trailing space from locale constants 2014-06-17 11:19:20 +00:00
Dmitriy Simushev
5193574f68 Add mail templates functionallity 2014-06-17 11:15:44 +00:00
Dmitriy Simushev
d9e41240a4 Clean up code in "read_locale_file" function 2014-06-10 14:18:32 +00:00
e9924db3a2 Change japanese language code according to ISO 639 2014-06-10 18:16:29 +04:00
Dmitriy Simushev
96efd0f194 Fix bug with locale changing 2014-06-10 14:12:28 +00:00
Dmitriy Simushev
99cccc9d2f Use .po file for localized strings 2014-06-10 12:26:06 +00:00
Dmitriy Simushev
af3aa7afec Store changed localized strings in database 2014-06-10 10:50:36 +00:00
Dmitriy Simushev
12cb4f014a Remove "names" locale 2014-06-06 10:58:05 +00:00
Dmitriy Simushev
91b46e23aa Clean up markup in localization 2014-06-06 10:35:26 +00:00
Dmitriy Simushev
2bb02b6e13 Clean up markup in "common.asterisk_explanation" localization constant 2014-06-06 09:39:36 +00:00
Dmitriy Simushev
ef0f43d7e4 Remove markup from "old browsers" localization constants 2014-06-06 08:55:39 +00:00
Dmitriy Simushev
49469f6aaf Remove markup from errors realated localized strings 2014-06-05 15:38:17 +00:00
Dmitriy Simushev
12634894ac Remove admin buttons from localization 2014-06-05 14:47:18 +00:00
Dmitriy Simushev
a2383a2702 Fix bug with call to undefined "_getlocal" function 2014-06-05 13:33:14 +00:00
Dmitriy Simushev
ddd7498016 Remove unused images from locale 2014-06-05 12:57:15 +00:00
Dmitriy Simushev
4ecec3a3ab Remove separation of localization constants by level 2014-06-05 11:05:06 +00:00
Dmitriy Simushev
3bb7507fe5 Fix docs about language code standard 2014-06-05 10:04:23 +00:00
Dmitriy Simushev
7410a0019b Replace "getlocal2" function with "getlocal" one 2014-06-05 08:51:14 +00:00
Dmitriy Simushev
8105bfaa1e Replace "getlocal2_" function with "getlocal" 2014-06-05 08:27:26 +00:00
Dmitriy Simushev
9ddaba0b4c Replace "getlocal_" function with "getlocal" 2014-06-05 08:15:25 +00:00
Dmitriy Simushev
090166b780 Update arguemnts list of the "getlocal" function. 2014-06-05 07:56:08 +00:00
Dmitriy Simushev
98fe748bef Remove getstring* functions 2014-06-04 12:20:40 +00:00
Dmitriy Simushev
24c50487d2 Fix bug with undefined "$start" variable in StatisticsController 2014-06-03 15:37:58 +00:00
Dmitriy Simushev
2da623dfb3 Remove "start_xml_output" and "start_js_output" functions 2014-06-03 14:58:14 +00:00
Dmitriy Simushev
390391d117 Do not output content in "*Style::render" methods 2014-06-03 14:55:31 +00:00
Dmitriy Simushev
80f1fbbce7 Remove "check_login" and "force_password" functions 2014-06-03 14:42:39 +00:00
Dmitriy Simushev
1a628d39f7 Replace "index.php" files with a controller. 2014-06-03 14:40:38 +00:00
Dmitriy Simushev
66a68d0f23 Replace "cron.php" with a controller 2014-06-03 13:34:08 +00:00
Dmitriy Simushev
457045d81a Remove legacy code from csrf_check_token function 2014-06-03 13:18:00 +00:00
Dmitriy Simushev
3346a0c90f Remove "setup_settings_tabs" function 2014-06-03 13:13:35 +00:00
Dmitriy Simushev
b75f693454 Replace "operator/*_themes.php" with a controller 2014-06-03 12:44:52 +00:00
Dmitriy Simushev
7b6604fba2 Replace "thread.php" with a controller 2014-06-03 10:10:20 +00:00
Dmitriy Simushev
5244480d4c Simplify chat controllers directory stucture 2014-06-03 09:55:28 +00:00
Dmitriy Simushev
6c9734648a Beautify user chat URLs 2014-06-03 09:43:44 +00:00
Dmitriy Simushev
44ca9e2a2e Clean up "Chat\User\MailController" logic 2014-06-03 08:56:11 +00:00
Dmitriy Simushev
e886e7dc33 Beautify operator chat URLs 2014-06-03 08:15:11 +00:00
Dmitriy Simushev
e31b03ccdf Extract redirection logic from "Chat\Operator\ChatController" 2014-06-02 13:05:34 +00:00
Dmitriy Simushev
7ceb242814 Fix bug with the route name 2014-06-02 12:20:54 +00:00
Dmitriy Simushev
4ff92e7f5c Replace "$mibew_mailbox" variable with a constant 2014-06-02 12:08:24 +00:00
Dmitriy Simushev
b6ee459833 Replace "mail.php" with a controller 2014-06-02 11:56:56 +00:00
Dmitriy Simushev
f7dd6a8d72 Replace "client.php" with a controller 2014-06-02 11:27:19 +00:00
Dmitriy Simushev
0cdf90e24a Replace "operator/redirect.php" with a controller 2014-06-02 10:32:51 +00:00
Dmitriy Simushev
94ab0b8b07 Replace "operator/agent.php" with a controller 2014-06-02 09:58:03 +00:00
Dmitriy Simushev
1163023062 Rewrite Authentication Manager to keep the current operator within it 2014-05-30 10:53:22 +00:00
Dmitriy Simushev
65a9e7c9e8 Remove outdated styles "how to" file 2014-05-30 08:27:56 +00:00
Dmitriy Simushev
c3fd4941fe Replace "captcha.php" with a controller 2014-05-30 08:26:35 +00:00
Dmitriy Simushev
36e06aec16 Remove unused functions 2014-05-29 15:15:35 +00:00
Dmitriy Simushev
f5cb3ec179 Replace "operator/getcode.php" with a controller 2014-05-29 15:13:03 +00:00
Dmitriy Simushev
090ebdb332 Merge branch 'master' of github.com:Mibew/mibew 2014-05-29 12:13:20 +00:00
Dmitriy Simushev
a05f966cfd Add 'operatorAuthenticate' event 2014-05-29 11:50:16 +00:00
Dmitriy Simushev
335cdc6055 Rewrite login/logout process 2014-05-29 11:38:21 +00:00
Dmitriy Simushev
6a5b962f01 Build cookie factory
Please, do not tell Cookie Monster.
2014-05-29 08:17:40 +00:00
88ff761876 Merge branch 'invitation_style' 2014-05-28 18:23:32 +04:00
eefd9ece11 Fix appearance of the default invitation in ie8+ 2014-05-28 18:20:59 +04:00
Dmitriy Simushev
078bf1c1fc Merge remote-tracking branch 'invitation_style' 2014-05-28 09:22:30 +00:00
Dmitriy Simushev
037d69bccb Merge remote-tracking branch 'default_chat_logo' 2014-05-28 08:11:23 +00:00
eb062a2424 Add screenshots to a styles of invitations 2014-05-28 02:06:43 +04:00
0619cdc9c1 Fix outlook of the default chat invitation in standard modern browsers 2014-05-28 01:46:18 +04:00
15739dd410 Fix header of the default chat invitation 2014-05-27 18:41:15 +04:00
Dmitriy Simushev
e458257c65 Add missed property to Application class 2014-05-27 14:16:26 +00:00
Dmitriy Simushev
3d8fa75d59 Use RouterInterface in ConrollerResolver constructor 2014-05-27 13:23:59 +00:00
Dmitriy Simushev
f4268b53cf Mark "check_login" function as deprecated 2014-05-27 11:08:17 +00:00
Dmitriy Simushev
dfca800514 Mark "setup_settings_tabs" function as deprecated 2014-05-27 08:28:01 +00:00
Dmitriy Simushev
862d94d35d Replace "operator/features.php" with a controller 2014-05-27 08:23:13 +00:00
af08dd1b43 Update screenshot for the default chat theme 2014-05-27 00:01:33 +04:00
6c3c70024d Update default logo for the default chat theme 2014-05-27 00:01:07 +04:00
edc7838128 Improve the default invitation theme 2014-05-27 00:00:04 +04:00
Dmitriy Simushev
46e329471c Replace "operator/performance.php" with a controller 2014-05-26 13:08:33 +00:00
Dmitriy Simushev
3373095a66 Replace "operator/settings.php" with a controller 2014-05-26 12:36:14 +00:00
Dmitriy Simushev
3ea2da1ad2 Create "BanController" 2014-05-26 10:01:38 +00:00
Dmitriy Simushev
8969b71613 Replace "operator/translate.php" with a controller 2014-05-23 12:56:39 +00:00
Dmitriy Simushev
ae92fe1514 Remove "$messages" global variable 2014-05-23 11:43:09 +00:00
Dmitriy Simushev
36b817ac58 Do not use IDs from form fields 2014-05-23 11:19:53 +00:00
Dmitriy Simushev
9527ef632f Extract access check from operator controllers 2014-05-23 10:53:29 +00:00
Dmitriy Simushev
af45d34721 Restrict access to avatar edit page 2014-05-23 09:11:35 +00:00
Dmitriy Simushev
c39131199d Replace "operator/permissions.php" with a controller 2014-05-23 09:08:13 +00:00
Dmitriy Simushev
e4cce9618e Make "Mibew\Controller\Group\AbstractController" really abstract 2014-05-23 08:54:30 +00:00
Dmitriy Simushev
4d45e57a9b Remove "&" from "get_csrf_token_in_url" function's result 2014-05-23 07:53:09 +00:00