$id_plugin)); echo htmlentities (safe_output($description), ENT_QUOTES, "UTF-8", true); return; } // Load global vars global $config; check_login (); if (! check_acl ($config['id_user'], 0, "LM")) { pandora_audit("ACL Violation", "Trying to access Plugin Management"); require ("general/noaccess.php"); return; } $view = get_parameter ("view", ""); $create = get_parameter ("create", ""); if ($view != ""){ $form_id = $view; $plugin = get_db_row ("tplugin", "id", $form_id); $form_name = $plugin["name"]; $form_description = $plugin["description"]; $form_max_timeout = $plugin ["max_timeout"]; $form_execute = $plugin ["execute"]; $form_net_dst_opt = $plugin ["net_dst_opt"]; $form_net_port_opt = $plugin ["net_port_opt"]; $form_user_opt = $plugin ["user_opt"]; $form_pass_opt = $plugin ["pass_opt"]; $form_plugin_type = $plugin ["plugin_type"]; } if ($create != ""){ $form_name = ""; $form_description = ""; $form_max_timeout = ""; $form_execute = ""; $form_net_dst_opt = ""; $form_net_port_opt = ""; $form_user_opt = ""; $form_pass_opt = ""; $form_plugin_type = 0; } // SHOW THE FORM // ================================================================= if (($create != "") OR ($view != "")){ if ($create != "") ui_print_page_header (__('Plugin creation'), "", false, "", true); else { ui_print_page_header (__('Plugin update'), "", false, "", true); $plugin_id = get_parameter ("view",""); } ui_print_help_icon("plugin_definition"); if ($create == "") echo "