From ce82496013a2ecb4f5b8d63bbe6d0050e1296b3f Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 13 Sep 2012 13:35:25 +0000 Subject: [PATCH] Create application initialization script --- src/messenger/webim/b.php | 2 +- src/messenger/webim/captcha.php | 2 +- src/messenger/webim/client.php | 2 +- src/messenger/webim/install/migrate.php | 3 +-- src/messenger/webim/leavemessage.php | 2 +- .../webim/libs/{common.php => init.php} | 13 ++++++++- src/messenger/webim/libs/plugins.php | 27 ------------------- src/messenger/webim/license.php | 2 +- src/messenger/webim/mail.php | 2 +- src/messenger/webim/operator/agent.php | 2 +- src/messenger/webim/operator/autologin.php | 2 +- src/messenger/webim/operator/avatar.php | 2 +- src/messenger/webim/operator/ban.php | 2 +- src/messenger/webim/operator/blocked.php | 2 +- src/messenger/webim/operator/canned.php | 2 +- src/messenger/webim/operator/cannededit.php | 2 +- src/messenger/webim/operator/features.php | 2 +- src/messenger/webim/operator/getcode.php | 2 +- src/messenger/webim/operator/group.php | 2 +- src/messenger/webim/operator/groupmembers.php | 2 +- src/messenger/webim/operator/groups.php | 2 +- src/messenger/webim/operator/history.php | 2 +- src/messenger/webim/operator/index.php | 2 +- .../webim/operator/invitationstate.php | 2 +- .../webim/operator/invitationthemes.php | 2 +- src/messenger/webim/operator/invite.php | 2 +- src/messenger/webim/operator/login.php | 2 +- src/messenger/webim/operator/logout.php | 2 +- src/messenger/webim/operator/operator.php | 2 +- src/messenger/webim/operator/operators.php | 2 +- src/messenger/webim/operator/opgroups.php | 2 +- src/messenger/webim/operator/performance.php | 2 +- src/messenger/webim/operator/permissions.php | 2 +- src/messenger/webim/operator/redirect.php | 2 +- src/messenger/webim/operator/resetpwd.php | 2 +- src/messenger/webim/operator/restore.php | 2 +- src/messenger/webim/operator/settings.php | 2 +- src/messenger/webim/operator/statistics.php | 2 +- src/messenger/webim/operator/themes.php | 2 +- .../webim/operator/threadprocessor.php | 2 +- src/messenger/webim/operator/tracked.php | 2 +- src/messenger/webim/operator/translate.php | 2 +- src/messenger/webim/operator/update.php | 2 +- src/messenger/webim/operator/updates.php | 2 +- src/messenger/webim/operator/userhistory.php | 2 +- src/messenger/webim/operator/users.php | 2 +- src/messenger/webim/request.php | 2 +- src/messenger/webim/thread.php | 2 +- 48 files changed, 58 insertions(+), 75 deletions(-) rename src/messenger/webim/libs/{common.php => init.php} (81%) delete mode 100644 src/messenger/webim/libs/plugins.php diff --git a/src/messenger/webim/b.php b/src/messenger/webim/b.php index 6713114e..d98ac609 100644 --- a/src/messenger/webim/b.php +++ b/src/messenger/webim/b.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('libs/common.php'); +require_once('libs/init.php'); require_once('libs/chat.php'); require_once('libs/operator.php'); require_once('libs/groups.php'); diff --git a/src/messenger/webim/captcha.php b/src/messenger/webim/captcha.php index 960b55a3..5daf3890 100644 --- a/src/messenger/webim/captcha.php +++ b/src/messenger/webim/captcha.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('libs/common.php'); +require_once('libs/init.php'); require_once('libs/captcha.php'); $captchaCode = gen_captcha(); diff --git a/src/messenger/webim/client.php b/src/messenger/webim/client.php index eb179c9a..f09d7ec8 100644 --- a/src/messenger/webim/client.php +++ b/src/messenger/webim/client.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('libs/common.php'); +require_once('libs/init.php'); require_once('libs/chat.php'); require_once('libs/operator.php'); require_once('libs/groups.php'); diff --git a/src/messenger/webim/install/migrate.php b/src/messenger/webim/install/migrate.php index d51b4a11..c9983e13 100644 --- a/src/messenger/webim/install/migrate.php +++ b/src/messenger/webim/install/migrate.php @@ -15,8 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); -require_once('../libs/classes/database.php'); +require_once('../libs/init.php'); $db = Database::getInstance(); diff --git a/src/messenger/webim/leavemessage.php b/src/messenger/webim/leavemessage.php index e5318cae..4b4c722d 100644 --- a/src/messenger/webim/leavemessage.php +++ b/src/messenger/webim/leavemessage.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('libs/common.php'); +require_once('libs/init.php'); require_once('libs/chat.php'); require_once('libs/expand.php'); require_once('libs/groups.php'); diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/init.php similarity index 81% rename from src/messenger/webim/libs/common.php rename to src/messenger/webim/libs/init.php index 98addfc5..37f6bf76 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/init.php @@ -15,12 +15,18 @@ * limitations under the License. */ +// Initialize user session session_start(); +// Include configuration file require_once(dirname(__FILE__) . '/config.php'); -require_once(dirname(__FILE__) . '/plugins.php'); + +// Include system classes require_once(dirname(__FILE__) . '/classes/database.php'); require_once(dirname(__FILE__) . '/classes/settings.php'); +require_once(dirname(__FILE__) . '/classes/event_dispatcher.php'); +require_once(dirname(__FILE__) . '/classes/plugin_manager.php'); +require_once(dirname(__FILE__) . '/classes/plugin.php'); // Include common libs require_once(dirname(__FILE__) . '/common/constants.php'); @@ -53,4 +59,9 @@ if (function_exists("date_default_timezone_set")) { @date_default_timezone_set(function_exists("date_default_timezone_get") ? @date_default_timezone_get() : "GMT"); } +if (! empty($plugins_list)) { + // Variable $plugins_config defined in libs/config.php + PluginManager::loadPlugins($plugins_list); +} + ?> \ No newline at end of file diff --git a/src/messenger/webim/libs/plugins.php b/src/messenger/webim/libs/plugins.php deleted file mode 100644 index f3f8dd6b..00000000 --- a/src/messenger/webim/libs/plugins.php +++ /dev/null @@ -1,27 +0,0 @@ - \ No newline at end of file diff --git a/src/messenger/webim/license.php b/src/messenger/webim/license.php index 6c4f753c..fb41493b 100644 --- a/src/messenger/webim/license.php +++ b/src/messenger/webim/license.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('libs/common.php'); +require_once('libs/init.php'); start_html_output(); require('view/license.php'); diff --git a/src/messenger/webim/mail.php b/src/messenger/webim/mail.php index 4cf575fc..945d172e 100644 --- a/src/messenger/webim/mail.php +++ b/src/messenger/webim/mail.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('libs/common.php'); +require_once('libs/init.php'); require_once('libs/chat.php'); require_once('libs/expand.php'); require_once('libs/groups.php'); diff --git a/src/messenger/webim/operator/agent.php b/src/messenger/webim/operator/agent.php index d4c7e3fd..ea1b1766 100644 --- a/src/messenger/webim/operator/agent.php +++ b/src/messenger/webim/operator/agent.php @@ -15,8 +15,8 @@ * limitations under the License. */ +require_once('../libs/init.php'); require_once('../libs/canned.php'); -require_once('../libs/common.php'); require_once('../libs/chat.php'); require_once('../libs/groups.php'); require_once('../libs/operator.php'); diff --git a/src/messenger/webim/operator/autologin.php b/src/messenger/webim/operator/autologin.php index 0b665542..85c7ce99 100644 --- a/src/messenger/webim/operator/autologin.php +++ b/src/messenger/webim/operator/autologin.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); $operator = check_login(false); diff --git a/src/messenger/webim/operator/avatar.php b/src/messenger/webim/operator/avatar.php index e16e5f30..a470032e 100644 --- a/src/messenger/webim/operator/avatar.php +++ b/src/messenger/webim/operator/avatar.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/operator_settings.php'); diff --git a/src/messenger/webim/operator/ban.php b/src/messenger/webim/operator/ban.php index 3fe35b22..9f503e0d 100644 --- a/src/messenger/webim/operator/ban.php +++ b/src/messenger/webim/operator/ban.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/chat.php'); require_once('../libs/operator.php'); require_once('../libs/pagination.php'); diff --git a/src/messenger/webim/operator/blocked.php b/src/messenger/webim/operator/blocked.php index c653412d..a3691942 100644 --- a/src/messenger/webim/operator/blocked.php +++ b/src/messenger/webim/operator/blocked.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/chat.php'); require_once('../libs/operator.php'); require_once('../libs/pagination.php'); diff --git a/src/messenger/webim/operator/canned.php b/src/messenger/webim/operator/canned.php index 40b9a345..e479058c 100644 --- a/src/messenger/webim/operator/canned.php +++ b/src/messenger/webim/operator/canned.php @@ -15,8 +15,8 @@ * limitations under the License. */ +require_once('../libs/init.php'); require_once('../libs/canned.php'); -require_once('../libs/common.php'); require_once('../libs/operator.php'); require_once('../libs/settings.php'); require_once('../libs/groups.php'); diff --git a/src/messenger/webim/operator/cannededit.php b/src/messenger/webim/operator/cannededit.php index 91e7aa3b..c9c912b8 100644 --- a/src/messenger/webim/operator/cannededit.php +++ b/src/messenger/webim/operator/cannededit.php @@ -15,8 +15,8 @@ * limitations under the License. */ +require_once('../libs/init.php'); require_once('../libs/canned.php'); -require_once('../libs/common.php'); require_once('../libs/operator.php'); require_once('../libs/pagination.php'); diff --git a/src/messenger/webim/operator/features.php b/src/messenger/webim/operator/features.php index 0fddbcf2..05615d3a 100644 --- a/src/messenger/webim/operator/features.php +++ b/src/messenger/webim/operator/features.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/settings.php'); diff --git a/src/messenger/webim/operator/getcode.php b/src/messenger/webim/operator/getcode.php index 09128e56..f1d18a0c 100644 --- a/src/messenger/webim/operator/getcode.php +++ b/src/messenger/webim/operator/getcode.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/groups.php'); require_once('../libs/getcode.php'); diff --git a/src/messenger/webim/operator/group.php b/src/messenger/webim/operator/group.php index 3db09f99..9941e008 100644 --- a/src/messenger/webim/operator/group.php +++ b/src/messenger/webim/operator/group.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/groups.php'); diff --git a/src/messenger/webim/operator/groupmembers.php b/src/messenger/webim/operator/groupmembers.php index deff3840..300103d2 100644 --- a/src/messenger/webim/operator/groupmembers.php +++ b/src/messenger/webim/operator/groupmembers.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/groups.php'); diff --git a/src/messenger/webim/operator/groups.php b/src/messenger/webim/operator/groups.php index ba778e83..f458e872 100644 --- a/src/messenger/webim/operator/groups.php +++ b/src/messenger/webim/operator/groups.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); $operator = check_login(); diff --git a/src/messenger/webim/operator/history.php b/src/messenger/webim/operator/history.php index 79ba4460..c88284e1 100644 --- a/src/messenger/webim/operator/history.php +++ b/src/messenger/webim/operator/history.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/chat.php'); require_once('../libs/userinfo.php'); diff --git a/src/messenger/webim/operator/index.php b/src/messenger/webim/operator/index.php index f8a5a33e..3df826e6 100644 --- a/src/messenger/webim/operator/index.php +++ b/src/messenger/webim/operator/index.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); $operator = check_login(); diff --git a/src/messenger/webim/operator/invitationstate.php b/src/messenger/webim/operator/invitationstate.php index 288c72e5..1870110b 100644 --- a/src/messenger/webim/operator/invitationstate.php +++ b/src/messenger/webim/operator/invitationstate.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/invitation.php'); require_once('../libs/operator.php'); diff --git a/src/messenger/webim/operator/invitationthemes.php b/src/messenger/webim/operator/invitationthemes.php index bd2f9c75..30a9b03d 100644 --- a/src/messenger/webim/operator/invitationthemes.php +++ b/src/messenger/webim/operator/invitationthemes.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/pagination.php'); require_once('../libs/operator.php'); require_once('../libs/groups.php'); diff --git a/src/messenger/webim/operator/invite.php b/src/messenger/webim/operator/invite.php index c3f8ef65..b3de109d 100644 --- a/src/messenger/webim/operator/invite.php +++ b/src/messenger/webim/operator/invite.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/invitation.php'); require_once('../libs/operator.php'); diff --git a/src/messenger/webim/operator/login.php b/src/messenger/webim/operator/login.php index c3de7ab0..770cb2bf 100644 --- a/src/messenger/webim/operator/login.php +++ b/src/messenger/webim/operator/login.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); $errors = array(); diff --git a/src/messenger/webim/operator/logout.php b/src/messenger/webim/operator/logout.php index cb392052..66e15e42 100644 --- a/src/messenger/webim/operator/logout.php +++ b/src/messenger/webim/operator/logout.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); logout_operator(); diff --git a/src/messenger/webim/operator/operator.php b/src/messenger/webim/operator/operator.php index c17cb260..297de0ec 100644 --- a/src/messenger/webim/operator/operator.php +++ b/src/messenger/webim/operator/operator.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/operator_settings.php'); diff --git a/src/messenger/webim/operator/operators.php b/src/messenger/webim/operator/operators.php index a5bd4b71..996b9a4a 100644 --- a/src/messenger/webim/operator/operators.php +++ b/src/messenger/webim/operator/operators.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); $operator = check_login(); diff --git a/src/messenger/webim/operator/opgroups.php b/src/messenger/webim/operator/opgroups.php index 9b76557f..ec6d00b2 100644 --- a/src/messenger/webim/operator/opgroups.php +++ b/src/messenger/webim/operator/opgroups.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/operator_settings.php'); diff --git a/src/messenger/webim/operator/performance.php b/src/messenger/webim/operator/performance.php index 6fc37801..69f77d73 100644 --- a/src/messenger/webim/operator/performance.php +++ b/src/messenger/webim/operator/performance.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/settings.php'); diff --git a/src/messenger/webim/operator/permissions.php b/src/messenger/webim/operator/permissions.php index ad21682d..bc0c444c 100644 --- a/src/messenger/webim/operator/permissions.php +++ b/src/messenger/webim/operator/permissions.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/operator_settings.php'); diff --git a/src/messenger/webim/operator/redirect.php b/src/messenger/webim/operator/redirect.php index e106a21e..b2370c19 100644 --- a/src/messenger/webim/operator/redirect.php +++ b/src/messenger/webim/operator/redirect.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/chat.php'); require_once('../libs/expand.php'); diff --git a/src/messenger/webim/operator/resetpwd.php b/src/messenger/webim/operator/resetpwd.php index b3a48d4a..43158cb6 100644 --- a/src/messenger/webim/operator/resetpwd.php +++ b/src/messenger/webim/operator/resetpwd.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/settings.php'); diff --git a/src/messenger/webim/operator/restore.php b/src/messenger/webim/operator/restore.php index c5dc2412..823066d5 100644 --- a/src/messenger/webim/operator/restore.php +++ b/src/messenger/webim/operator/restore.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/settings.php'); require_once('../libs/notify.php'); diff --git a/src/messenger/webim/operator/settings.php b/src/messenger/webim/operator/settings.php index 984f5b36..9281c4a7 100644 --- a/src/messenger/webim/operator/settings.php +++ b/src/messenger/webim/operator/settings.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/settings.php'); require_once('../libs/styles.php'); diff --git a/src/messenger/webim/operator/statistics.php b/src/messenger/webim/operator/statistics.php index 79136dd7..6b5ed64d 100644 --- a/src/messenger/webim/operator/statistics.php +++ b/src/messenger/webim/operator/statistics.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/chat.php'); require_once('../libs/operator.php'); require_once('../libs/statistics.php'); diff --git a/src/messenger/webim/operator/themes.php b/src/messenger/webim/operator/themes.php index 4cc546dc..a4b06ce2 100644 --- a/src/messenger/webim/operator/themes.php +++ b/src/messenger/webim/operator/themes.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/chat.php'); require_once('../libs/pagination.php'); require_once('../libs/operator.php'); diff --git a/src/messenger/webim/operator/threadprocessor.php b/src/messenger/webim/operator/threadprocessor.php index 35994f43..a026d7ee 100644 --- a/src/messenger/webim/operator/threadprocessor.php +++ b/src/messenger/webim/operator/threadprocessor.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/chat.php'); require_once('../libs/userinfo.php'); diff --git a/src/messenger/webim/operator/tracked.php b/src/messenger/webim/operator/tracked.php index 8a6ec019..5405cba6 100644 --- a/src/messenger/webim/operator/tracked.php +++ b/src/messenger/webim/operator/tracked.php @@ -15,8 +15,8 @@ * limitations under the License. */ +require_once('../libs/init.php'); require_once('../libs/chat.php'); -require_once('../libs/common.php'); require_once('../libs/operator.php'); require_once('../libs/track.php'); diff --git a/src/messenger/webim/operator/translate.php b/src/messenger/webim/operator/translate.php index cf1a5d30..391f20fc 100644 --- a/src/messenger/webim/operator/translate.php +++ b/src/messenger/webim/operator/translate.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/pagination.php'); diff --git a/src/messenger/webim/operator/update.php b/src/messenger/webim/operator/update.php index eb6ca428..208fc4ef 100644 --- a/src/messenger/webim/operator/update.php +++ b/src/messenger/webim/operator/update.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/chat.php'); require_once('../libs/userinfo.php'); require_once('../libs/operator.php'); diff --git a/src/messenger/webim/operator/updates.php b/src/messenger/webim/operator/updates.php index 16f04b5a..1320c4e3 100644 --- a/src/messenger/webim/operator/updates.php +++ b/src/messenger/webim/operator/updates.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/settings.php'); diff --git a/src/messenger/webim/operator/userhistory.php b/src/messenger/webim/operator/userhistory.php index e8cdfddf..f3f400b4 100644 --- a/src/messenger/webim/operator/userhistory.php +++ b/src/messenger/webim/operator/userhistory.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/chat.php'); require_once('../libs/userinfo.php'); diff --git a/src/messenger/webim/operator/users.php b/src/messenger/webim/operator/users.php index d66e0159..00e96173 100644 --- a/src/messenger/webim/operator/users.php +++ b/src/messenger/webim/operator/users.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('../libs/common.php'); +require_once('../libs/init.php'); require_once('../libs/operator.php'); require_once('../libs/groups.php'); diff --git a/src/messenger/webim/request.php b/src/messenger/webim/request.php index 47ae83e0..d5e0429d 100644 --- a/src/messenger/webim/request.php +++ b/src/messenger/webim/request.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('libs/common.php'); +require_once('libs/init.php'); require_once('libs/invitation.php'); require_once('libs/operator.php'); require_once('libs/track.php'); diff --git a/src/messenger/webim/thread.php b/src/messenger/webim/thread.php index 3725b5fa..86c389e4 100644 --- a/src/messenger/webim/thread.php +++ b/src/messenger/webim/thread.php @@ -15,7 +15,7 @@ * limitations under the License. */ -require_once('libs/common.php'); +require_once('libs/init.php'); require_once('libs/chat.php'); require_once('libs/operator.php');