Fixed the size of diferent nodes (agents, modules,...).

This commit is contained in:
mdtrooper 2016-05-17 10:55:05 +02:00
parent d4c84ddde2
commit 897d0171b9
1 changed files with 12 additions and 0 deletions

View File

@ -143,6 +143,9 @@ class Networkmap extends Map {
preg_match("/<img src=\"(.*)\" \/>/", $other_chunks[0], $matches);
$image = $matches[1];
$width = $width / 2;
$height = $height / 2;
}
elseif ($is_node_group) {
preg_match("/<TR><TD>(.*)<\/TD><\/TR><\/TABLE>>/", $other_chunks[0], $matches);
@ -156,6 +159,9 @@ class Networkmap extends Map {
preg_match("/<img src=\"(.*)\" \/>/", $other_chunks[0], $matches);
$image = $matches[1];
$width = $width / 2;
$height = $height / 2;
}
elseif ($is_node_module_group) {
preg_match("/<TR><TD>(.*)<\/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("/<img src=\"(.*)\" \/>/", $other_chunks[0], $matches);
$image = $matches[1];
$width = $width / 2;
$height = $height / 2;
}
else {
// AGENT