|
|
|
@ -29,7 +29,7 @@ if (!in_array($plugin_name, $installed_plugins)) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
global $_configuration; |
|
|
|
|
|
|
|
|
|
$message = null; |
|
|
|
|
$content = null; |
|
|
|
|
|
|
|
|
|
if (isset($plugin_info['settings_form'])) { |
|
|
|
@ -55,14 +55,28 @@ if (isset($form)) { |
|
|
|
|
array('Plugins', $access_url_id, $plugin_name, 'setting', "status"))); |
|
|
|
|
foreach ($values as $key => $value) { |
|
|
|
|
$key = Database::escape_string($plugin_name.'_'.$key); |
|
|
|
|
api_add_setting($value, $key, $plugin_name, 'setting', 'Plugins', $plugin_name, null, null, null, $_configuration['access_url'], 1); |
|
|
|
|
|
|
|
|
|
api_add_setting( |
|
|
|
|
$value, |
|
|
|
|
$key, |
|
|
|
|
$plugin_name, |
|
|
|
|
'setting', |
|
|
|
|
'Plugins', |
|
|
|
|
$plugin_name, |
|
|
|
|
null, |
|
|
|
|
null, |
|
|
|
|
null, |
|
|
|
|
$_configuration['access_url'], |
|
|
|
|
1 |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
$message = Display::return_message(get_lang('Updated'), 'success'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$tpl = new Template($tool_name, true, true, false, true, false); |
|
|
|
|
$tpl->assign('actions', $actions); |
|
|
|
|
|
|
|
|
|
$interbreadcrumb[] = array('url' => api_get_path(WEB_CODE_PATH).'admin/index.php', 'name' => get_lang('PlatformAdmin')); |
|
|
|
|
$interbreadcrumb[] = array('url' => api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Plugins', 'name' => get_lang('Plugins')); |
|
|
|
|
|
|
|
|
|
$tpl = new Template($plugin_name, true, true, false, true, false); |
|
|
|
|
$tpl->assign('message', $message); |
|
|
|
|
$tpl->assign('content', $content); |
|
|
|
|
$tpl->display_one_col_template(); |
|
|
|
|