fixed errors in wux
This commit is contained in:
parent
9a8e80bf68
commit
b078d48918
|
@ -4,4 +4,6 @@ ALTER TABLE tagente MODIFY COLUMN cascade_protection_module int(10) unsigned NOT
|
|||
|
||||
INSERT INTO tmodule VALUES (8, 'Wux module');
|
||||
|
||||
INSERT INTO ttipo_modulo VALUES (25,'web_analysis', 8, 'Web analysis data', 'module-wux.png');
|
||||
|
||||
COMMIT;
|
||||
|
|
|
@ -541,7 +541,11 @@ if ($id_agente) {
|
|||
$help_header = 'plugins_tab';
|
||||
break;
|
||||
case "module":
|
||||
$type_module_t = (int) get_parameter ('moduletype', '');
|
||||
$tab_description = '- '. __('Modules');
|
||||
if($type_module_t == 'webux'){
|
||||
$help_header = 'wux_console';
|
||||
}
|
||||
break;
|
||||
case "alert":
|
||||
$tab_description = '- ' . __('Alert');
|
||||
|
|
|
@ -576,6 +576,7 @@ var no_target_lang = "<?php echo __('No target IP provided') ?>";
|
|||
var no_oid_lang = "<?php echo __('No SNMP OID provided') ?>";
|
||||
var no_prediction_module_lang = "<?php echo __('No module to predict') ?>";
|
||||
var no_plugin_lang = "<?php echo __('No plug-in provided') ?>";
|
||||
var no_execute_test_from = "<?php echo __('No server provided') ?>"
|
||||
|
||||
$(document).ready (function () {
|
||||
configure_modules_form ();
|
||||
|
|
|
@ -1331,8 +1331,8 @@ function Gauge(placeholderName, configuration, font)
|
|||
function print_phases_donut (recipient, phases) {
|
||||
var svg = d3.select(recipient)
|
||||
.append("svg")
|
||||
.attr("width", 700)
|
||||
.attr("height", 330)
|
||||
.attr("width", 800)
|
||||
.attr("height", 400)
|
||||
.append("g");
|
||||
|
||||
svg.append("g")
|
||||
|
@ -1360,6 +1360,8 @@ function print_phases_donut (recipient, phases) {
|
|||
.innerRadius(radius * 0.9)
|
||||
.outerRadius(radius * 0.9);
|
||||
|
||||
width = 800;
|
||||
height = 400;
|
||||
svg.attr("transform", "translate(" + width / 2 + "," + height / 2 + ")");
|
||||
|
||||
var key = function(d){ return d.data.label; };
|
||||
|
@ -1426,8 +1428,8 @@ function print_phases_donut (recipient, phases) {
|
|||
.style("font-family", "Verdana")
|
||||
.style("font-size", "15px")
|
||||
.append("tspan")
|
||||
.attr("dy", "1.4em")
|
||||
.attr("dx", "-6em")
|
||||
.attr("dy", "1.2em")
|
||||
.attr("dx", "-2.8em")
|
||||
.text(function(d) {
|
||||
return d.data.label2 + "ms";
|
||||
})
|
||||
|
|
|
@ -437,7 +437,15 @@ function configure_modules_form () {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
moduletype = $("#hidden-id_module_type").val ();
|
||||
if (moduletype == 25) {
|
||||
if ($("#custom_integer_1").val () == 0) {
|
||||
$("#custom_integer_1").focus ();
|
||||
$("#message").showMessage (no_execute_test_from);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
module = $("#id_module_type").attr ("value");
|
||||
|
||||
if (id_modules_icmp.in_array (module) || id_modules_tcp.in_array (module) || id_modules_snmp.in_array (module)) {
|
||||
|
|
|
@ -69,7 +69,7 @@ $label = get_parameter ("label");
|
|||
echo "</h2>";
|
||||
$datos = io_safe_output($row["datos"]);
|
||||
if (is_image_data($datos)) {
|
||||
echo '<center><img src="' . $datos . '" alt="image"/></center>';
|
||||
echo '<center><img src="' . $datos . '" alt="image" style="width:100%"/></center>';
|
||||
}
|
||||
else {
|
||||
$datos = preg_replace ('/</', '<', $datos);
|
||||
|
|
Loading…
Reference in New Issue