mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Working in the refresh arrows.
This commit is contained in:
parent
dff1b8593c
commit
5fc27d1f2e
@ -33,6 +33,29 @@ if (is_ajax ()) {
|
|||||||
if ($refresh_arrows_open) {
|
if ($refresh_arrows_open) {
|
||||||
$return = array();
|
$return = array();
|
||||||
|
|
||||||
|
$id_map = (int)get_parameter('id_map', 0);
|
||||||
|
$arrows = (array)get_parameter('arrows', array());
|
||||||
|
|
||||||
|
foreach ($arrows as $arrow) {
|
||||||
|
$temp = array();
|
||||||
|
|
||||||
|
if (!empty($arrow['to_module']))
|
||||||
|
$status = modules_get_agentmodule_status($arrow['to_module']);
|
||||||
|
else
|
||||||
|
$status = null;
|
||||||
|
$temp['to_status'] = 2; //$status;
|
||||||
|
|
||||||
|
if (!empty($arrow['to_module']))
|
||||||
|
$status = modules_get_agentmodule_status($arrow['to_module']);
|
||||||
|
else
|
||||||
|
$status = null;
|
||||||
|
$temp['from_status'] = 2; //$status;
|
||||||
|
|
||||||
|
$temp['graph_id'] = $arrow['graph_id'];
|
||||||
|
|
||||||
|
$return[$arrow['graph_id']] = $temp;
|
||||||
|
}
|
||||||
|
|
||||||
echo json_encode($return);
|
echo json_encode($return);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user