mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed the policies networkmaps.
This commit is contained in:
parent
34c026b4e9
commit
5e79358952
@ -441,6 +441,18 @@ class Networkmap extends Map {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function writeJSGraph() {
|
||||||
|
parent::writeJSGraph();
|
||||||
|
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
<?php
|
||||||
|
echo "var subtype = " . $this->subtype . ";";
|
||||||
|
?>
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
public function show() {
|
public function show() {
|
||||||
$this->getNodes();
|
$this->getNodes();
|
||||||
|
|
||||||
|
@ -434,7 +434,7 @@ function networkmap_generate_dot ($pandora_name, $group = 0,
|
|||||||
|
|
||||||
$orphans[$node_count] = 1;
|
$orphans[$node_count] = 1;
|
||||||
|
|
||||||
$nodes[$node_count] = $policy;
|
$nodes[$node_count] = $policy;
|
||||||
|
|
||||||
// Add node
|
// Add node
|
||||||
$nodes_policies[$policy['id']] = $policy;
|
$nodes_policies[$policy['id']] = $policy;
|
||||||
@ -502,8 +502,9 @@ function networkmap_generate_dot ($pandora_name, $group = 0,
|
|||||||
if ($show_policies) {
|
if ($show_policies) {
|
||||||
$id_policy = db_get_value(
|
$id_policy = db_get_value(
|
||||||
'id_policy',
|
'id_policy',
|
||||||
'tpolicy_agents', 'id_agent', $agent['id_agent']);
|
'tpolicy_agents', 'id_agent', $agent['id_agente']);
|
||||||
$parents[$node_count] = $agent['parent'] = $nodes_policies[$id_policy]['id_node'];
|
if (!empty($id_policy))
|
||||||
|
$parents[$node_count] = $agent['parent'] = $nodes_policies[$id_policy]['id_node'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$node_ref[$agent['id_agente']] = $node_count;
|
$node_ref[$agent['id_agente']] = $node_count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user