$id_plugin));
$preload = io_safe_output($description);
$preload = str_replace ("\n", "
", $preload);
echo $preload;
return;
}
// Load global vars
global $config;
check_login ();
if (! check_acl ($config['id_user'], 0, "LM")) {
db_pandora_audit("ACL Violation",
"Trying to access Plugin Management");
require ("general/noaccess.php");
return;
}
enterprise_include_once ('meta/include/functions_components_meta.php');
$view = get_parameter ("view", "");
$create = get_parameter ("create", "");
if ($view != "") {
$form_id = $view;
$plugin = db_get_row ("tplugin", "id", $form_id);
$form_name = $plugin["name"];
$form_description = $plugin["description"];
$form_max_timeout = $plugin ["max_timeout"];
$form_max_retries = $plugin ["max_retries"];
$form_execute = $plugin ["execute"];
$form_plugin_type = $plugin ["plugin_type"];
$macros = $plugin ["macros"];
$parameters = $plugin ["parameters"];
}
if ($create != "") {
$form_name = "";
$form_description = "";
$form_max_timeout = 15;
$form_max_retries = 1;
$form_execute = "";
$form_plugin_type = 0;
$form_parameters = "";
$macros = "";
$parameters = "";
}
// SHOW THE FORM
// =================================================================
$sec = 'gservers';
if (($create != "") OR ($view != "")) {
if (defined('METACONSOLE')) {
components_meta_print_header();
$sec = 'advanced';
}
else {
if ($create != "")
ui_print_page_header (__('Plugin creation'), "images/gm_servers.png", false, "plugin_definition", true);
else {
ui_print_page_header (__('Plugin update'), "images/gm_servers.png", false, "plugin_definition", true);
}
}
if ($create == "") {
$plugin_id = get_parameter ("view","");
echo "