From 897d0171b9a3a5896b163022fd721af56b58c661 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 17 May 2016 10:55:05 +0200 Subject: [PATCH] Fixed the size of diferent nodes (agents, modules,...). --- pandora_console/include/class/Networkmap.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pandora_console/include/class/Networkmap.class.php b/pandora_console/include/class/Networkmap.class.php index f216c7a25a..a759da4ff4 100644 --- a/pandora_console/include/class/Networkmap.class.php +++ b/pandora_console/include/class/Networkmap.class.php @@ -143,6 +143,9 @@ class Networkmap extends Map { preg_match("//", $other_chunks[0], $matches); $image = $matches[1]; + + $width = $width / 2; + $height = $height / 2; } elseif ($is_node_group) { preg_match("/(.*)<\/TD><\/TR><\/TABLE>>/", $other_chunks[0], $matches); @@ -156,6 +159,9 @@ class Networkmap extends Map { preg_match("//", $other_chunks[0], $matches); $image = $matches[1]; + + $width = $width / 2; + $height = $height / 2; } elseif ($is_node_module_group) { preg_match("/(.*)<\/TD><\/TR><\/TABLE>>/", $chunks[1], $matches); @@ -171,6 +177,9 @@ class Networkmap extends Map { //The module group has not icon. $image = ""; + + $width = $width / 2; + $height = $height / 2; } elseif (strstr($other_chunks[1], "&id_module=") !== false) { // MODULE @@ -184,6 +193,9 @@ class Networkmap extends Map { preg_match("//", $other_chunks[0], $matches); $image = $matches[1]; + + $width = $width / 2; + $height = $height / 2; } else { // AGENT