diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index 9608ef45..2467efe3 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -19,6 +19,7 @@ session_start(); require_once(dirname(__FILE__) . '/converter.php'); require_once(dirname(__FILE__) . '/config.php'); +require_once(dirname(__FILE__) . '/plugins.php'); require_once(dirname(__FILE__) . '/classes/database.php'); require_once(dirname(__FILE__) . '/classes/settings.php'); diff --git a/src/messenger/webim/libs/config.php b/src/messenger/webim/libs/config.php index ccbb670f..97d8c4b7 100644 --- a/src/messenger/webim/libs/config.php +++ b/src/messenger/webim/libs/config.php @@ -51,4 +51,18 @@ $mail_encoding = "utf-8"; $home_locale = "en"; /* native name will be used in this locale */ $default_locale = "en"; /* if user does not provide known lang */ +/* + * Plugins + */ +$plugins_list = array(); +/* Exapmle of plugins configuration +$plugins_list[] = array( + 'name' => 'plugin_name', + 'config' => array( + 'weight' => 100, + 'some_configurable_value' => 'value' + ) +) +*/ + ?> \ No newline at end of file diff --git a/src/messenger/webim/libs/plugins.php b/src/messenger/webim/libs/plugins.php new file mode 100644 index 00000000..f3f8dd6b --- /dev/null +++ b/src/messenger/webim/libs/plugins.php @@ -0,0 +1,27 @@ + \ No newline at end of file