mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +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);
|
preg_match("/data-status=\"([0-9]*)\"/", $chunks[1], $matches);
|
||||||
$status = $matches[1];
|
$status = $matches[1];
|
||||||
$shape = "rhombus";
|
$shape = "rhombus";
|
||||||
|
|
||||||
|
preg_match("/<img src=\"(.*)\" \/>/", $chunks[0], $matches);
|
||||||
|
$image = $matches[1];
|
||||||
}
|
}
|
||||||
elseif ($is_node_group) {
|
elseif ($is_node_group) {
|
||||||
preg_match("/<TR><TD>(.*)<\/TD><\/TR><\/TABLE>>/", $chunks[0], $matches);
|
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);
|
preg_match("/data-status=\"([0-9]*)\"/", $chunks[1], $matches);
|
||||||
$status = $matches[1];
|
$status = $matches[1];
|
||||||
$shape = "rhombus";
|
$shape = "rhombus";
|
||||||
|
|
||||||
|
preg_match("/<img src=\"(.*)\" \/>/", $chunks[0], $matches);
|
||||||
|
$image = $matches[1];
|
||||||
}
|
}
|
||||||
elseif ($is_node_module_group) {
|
elseif ($is_node_module_group) {
|
||||||
preg_match("/<TR><TD>(.*)<\/TD><\/TR><\/TABLE>>/", $chunks[0], $matches);
|
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);
|
preg_match("/data-status=\"([0-9]*)\"/", $chunks[1], $matches);
|
||||||
$status = $matches[1];
|
$status = $matches[1];
|
||||||
$shape = "rhombus";
|
$shape = "rhombus";
|
||||||
|
|
||||||
|
//The module group has not icon.
|
||||||
}
|
}
|
||||||
elseif (strstr($chunks[1], "&id_module=") !== false) {
|
elseif (strstr($chunks[1], "&id_module=") !== false) {
|
||||||
// MODULE
|
// MODULE
|
||||||
@ -171,6 +179,9 @@ class Networkmap extends Map {
|
|||||||
$title = modules_get_agentmodule_name($id);
|
$title = modules_get_agentmodule_name($id);
|
||||||
$type = ITEM_TYPE_MODULE_NETWORKMAP;
|
$type = ITEM_TYPE_MODULE_NETWORKMAP;
|
||||||
$shape = "square";
|
$shape = "square";
|
||||||
|
|
||||||
|
preg_match("/<img src=\"(.*)\" \/>/", $chunks[0], $matches);
|
||||||
|
$image = $matches[1];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// AGENT
|
// AGENT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user