mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed the images for the modules and groups
This commit is contained in:
parent
64d08739c7
commit
2da53b7b9e
@ -141,6 +141,9 @@ class Networkmap extends Map {
|
||||
preg_match("/data-status=\"([0-9]*)\"/", $chunks[1], $matches);
|
||||
$status = $matches[1];
|
||||
$shape = "rhombus";
|
||||
|
||||
preg_match("/<img src=\"(.*)\" \/>/", $chunks[0], $matches);
|
||||
$image = $matches[1];
|
||||
}
|
||||
elseif ($is_node_group) {
|
||||
preg_match("/<TR><TD>(.*)<\/TD><\/TR><\/TABLE>>/", $chunks[0], $matches);
|
||||
@ -151,6 +154,9 @@ class Networkmap extends Map {
|
||||
preg_match("/data-status=\"([0-9]*)\"/", $chunks[1], $matches);
|
||||
$status = $matches[1];
|
||||
$shape = "rhombus";
|
||||
|
||||
preg_match("/<img src=\"(.*)\" \/>/", $chunks[0], $matches);
|
||||
$image = $matches[1];
|
||||
}
|
||||
elseif ($is_node_module_group) {
|
||||
preg_match("/<TR><TD>(.*)<\/TD><\/TR><\/TABLE>>/", $chunks[0], $matches);
|
||||
@ -161,6 +167,8 @@ class Networkmap extends Map {
|
||||
preg_match("/data-status=\"([0-9]*)\"/", $chunks[1], $matches);
|
||||
$status = $matches[1];
|
||||
$shape = "rhombus";
|
||||
|
||||
//The module group has not icon.
|
||||
}
|
||||
elseif (strstr($chunks[1], "&id_module=") !== false) {
|
||||
// MODULE
|
||||
@ -171,6 +179,9 @@ class Networkmap extends Map {
|
||||
$title = modules_get_agentmodule_name($id);
|
||||
$type = ITEM_TYPE_MODULE_NETWORKMAP;
|
||||
$shape = "square";
|
||||
|
||||
preg_match("/<img src=\"(.*)\" \/>/", $chunks[0], $matches);
|
||||
$image = $matches[1];
|
||||
}
|
||||
else {
|
||||
// AGENT
|
||||
|
Loading…
x
Reference in New Issue
Block a user