Addapted modules edition to metaconsole
This commit is contained in:
parent
23ef9c8f53
commit
d0b6c9775f
|
@ -23,9 +23,9 @@ else {
|
|||
|
||||
enterprise_include ('godmode/agentes/module_manager.php');
|
||||
$isFunctionPolicies = enterprise_include_once ('include/functions_policies.php');
|
||||
require_once ('include/functions_modules.php');
|
||||
require_once ('include/functions_agents.php');
|
||||
require_once ('include/functions_servers.php');
|
||||
require_once ($config['homedir'] . '/include/functions_modules.php');
|
||||
require_once ($config['homedir'] . '/include/functions_agents.php');
|
||||
require_once ($config['homedir'] . '/include/functions_servers.php');
|
||||
|
||||
$search_string = io_safe_output(urldecode(trim(get_parameter ("search_string", ""))));
|
||||
|
||||
|
@ -35,7 +35,6 @@ if (!isset($policy_page))
|
|||
$policy_page = false;
|
||||
|
||||
// Search string filter form
|
||||
//echo '<form id="create_module_type" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=module&id_agente='.$id_agente.'">';
|
||||
if (($policy_page) || (isset($agent)))
|
||||
echo '<form id="" method="post" action="">';
|
||||
else
|
||||
|
@ -67,7 +66,7 @@ $prediction_available = db_get_sql ("SELECT count(*)
|
|||
WHERE server_type = 5"); //POSTGRESQL AND ORACLE COMPATIBLE
|
||||
|
||||
// Development mode to use all servers
|
||||
if ($develop_bypass) {
|
||||
if ($develop_bypass || is_metaconsole()) {
|
||||
$network_available = 1;
|
||||
$wmi_available = 1;
|
||||
$plugin_available = 1;
|
||||
|
|
|
@ -14,10 +14,11 @@
|
|||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
|
||||
include_once("include/functions_modules.php");
|
||||
include_once("include/functions_categories.php");
|
||||
include_once($config['homedir'] . "/include/functions_modules.php");
|
||||
include_once($config['homedir'] . "/include/functions_categories.php");
|
||||
include_once($config['homedir'] . "/include/graphs/functions_d3.php");
|
||||
|
||||
echo "<script type='text/javascript' src='include/javascript/d3.3.5.14.js'></script>" . "\n";
|
||||
include_javascript_d3();
|
||||
|
||||
function prepend_table_simple ($row, $id = false) {
|
||||
global $table_simple;
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
global $config;
|
||||
|
||||
require_once($config['homedir'] . "/include/functions_snmp_browser.php");
|
||||
?>
|
||||
<script type="text/javascript" src="include/javascript/pandora_snmp_browser.js"></script>
|
||||
<?php
|
||||
$snmp_browser_path = is_metaconsole() ? "../../" : "";
|
||||
$snmp_browser_path .= "include/javascript/pandora_snmp_browser.js";
|
||||
echo "<script type='text/javascript' src='$snmp_browser_path'/>";
|
||||
//This line does not run with the dinamic loader editor in policies.
|
||||
//ui_require_javascript_file ('pandora_snmp_browser');
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
|
|||
return;
|
||||
}
|
||||
|
||||
echo "<script type='text/javascript' src='include/javascript/d3.3.5.14.js'></script>" . "\n";
|
||||
include_javascript_d3();
|
||||
|
||||
function push_table_row ($row, $id = false) {
|
||||
global $table;
|
||||
|
|
|
@ -36,7 +36,7 @@ function snmp_browser_print_tree ($tree, $id = 0, $depth = 0, $last = 0, $last_a
|
|||
|
||||
// Get the base URL for images
|
||||
if ($url === false) {
|
||||
$url = ui_get_full_url('operation/tree');
|
||||
$url = ui_get_full_url('operation/tree', false, false, false);
|
||||
}
|
||||
|
||||
// Leaf
|
||||
|
|
|
@ -203,10 +203,8 @@ $zoom_default = file($config['homedir'] . '/images/zoom_default.svg');
|
|||
</div>
|
||||
<?php
|
||||
|
||||
echo '<script '.
|
||||
' type="text/javascript" ' .
|
||||
' src="' . $config['homeurl'] . 'include/javascript/d3.3.5.14.js" ' .
|
||||
' charset="utf-8"></script>';
|
||||
include_javascript_d3();
|
||||
|
||||
echo '<div id="dinamic_networkmap" style="overflow: hidden;"></div>';
|
||||
?>
|
||||
<style type="text/css">
|
||||
|
|
Loading…
Reference in New Issue