2011-07-07 Sergio Martin <sergio.martin@artica.es>
* godmode/groups/group_list.php: Added code for get agent filter from policy agents view git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4528 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
0bc39cffc9
commit
9c7b719820
|
@ -1,3 +1,8 @@
|
|||
2011-07-07 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/groups/group_list.php: Added code for get agent filter
|
||||
from policy agents view
|
||||
|
||||
2011-07-07 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_graph.php: Fixed graphs on Visual console.
|
||||
|
|
|
@ -64,6 +64,8 @@ if (is_ajax ()) {
|
|||
if ($get_group_agents) {
|
||||
$id_group = (int) get_parameter ('id_group');
|
||||
$disabled = (int) get_parameter ('disabled', 0);
|
||||
$search = (string) get_parameter ('search', '');
|
||||
$keycount = (int) get_parameter ('keycount', 0);
|
||||
|
||||
if (! check_acl ($config['id_user'], $id_group, "AR")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
|
@ -72,7 +74,15 @@ if (is_ajax ()) {
|
|||
return;
|
||||
}
|
||||
|
||||
echo json_encode (agents_get_group_agents ($id_group, array('disabled' => $disabled), "none"));
|
||||
$filter['disabled'] = $disabled;
|
||||
|
||||
if($search != '') {
|
||||
$filter['string'] = $search;
|
||||
}
|
||||
|
||||
$agents['keycount'] = $keycount;
|
||||
$agents = $agents + agents_get_group_agents ($id_group, $filter, "none");
|
||||
echo json_encode ($agents);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue