@@ 24-37 (lines=14) @@ | ||
21 | */ |
|
22 | function handle_regions() |
|
23 | { |
|
24 | if (isset($_POST['submit_plugins'])) { |
|
25 | store_regions(); |
|
26 | // Add event to the system log. |
|
27 | $user_id = api_get_user_id(); |
|
28 | $category = $_GET['category']; |
|
29 | Event::addEvent( |
|
30 | LOG_CONFIGURATION_SETTINGS_CHANGE, |
|
31 | LOG_CONFIGURATION_SETTINGS_CATEGORY, |
|
32 | $category, |
|
33 | api_get_utc_datetime(), |
|
34 | $user_id |
|
35 | ); |
|
36 | Display:: display_confirmation_message(get_lang('SettingsStored')); |
|
37 | } |
|
38 | ||
39 | $plugin_obj = new AppPlugin(); |
|
40 | $possible_plugins = $plugin_obj->read_plugins_from_path(); |
|
@@ 124-137 (lines=14) @@ | ||
121 | { |
|
122 | $plugin_obj = new AppPlugin(); |
|
123 | $token = Security::get_token(); |
|
124 | if (isset($_POST['submit_plugins'])) { |
|
125 | store_plugins(); |
|
126 | // Add event to the system log. |
|
127 | $user_id = api_get_user_id(); |
|
128 | $category = $_GET['category']; |
|
129 | Event::addEvent( |
|
130 | LOG_CONFIGURATION_SETTINGS_CHANGE, |
|
131 | LOG_CONFIGURATION_SETTINGS_CATEGORY, |
|
132 | $category, |
|
133 | api_get_utc_datetime(), |
|
134 | $user_id |
|
135 | ); |
|
136 | Display:: display_confirmation_message(get_lang('SettingsStored')); |
|
137 | } |
|
138 | ||
139 | $all_plugins = $plugin_obj->read_plugins_from_path(); |
|
140 | $installed_plugins = $plugin_obj->get_installed_plugins(); |