mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Removed unused code
This commit is contained in:
parent
9a47d5325e
commit
995bfe0fad
@ -101,6 +101,9 @@ function mainAgentsModules() {
|
||||
serialize_in_temp($agents_id, $config['id_user']."_agents", 1);
|
||||
}
|
||||
|
||||
|
||||
//if($agents_id != -1) $agents_id = null;
|
||||
|
||||
if ($config["pure"] == 0) {
|
||||
if($modules_selected[0] && $agents_id[0]){
|
||||
|
||||
@ -145,17 +148,6 @@ function mainAgentsModules() {
|
||||
$filter_module_groups = html_print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name",
|
||||
'modulegroup', $modulegroup, '',__('All'), 0, true, false, true, false, 'width: auto;');
|
||||
|
||||
$agents_select = array();
|
||||
if (is_array($id_agents) || is_object($id_agents)){
|
||||
foreach ($id_agents as $id) {
|
||||
foreach ($agents as $key => $a) {
|
||||
if ($key == (int)$id) {
|
||||
$agents_select[$key] = $key;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//agent
|
||||
$agents = agents_get_group_agents($group_id);
|
||||
if ((empty($agents)) || $agents == -1) $agents = array();
|
||||
@ -301,7 +293,6 @@ function mainAgentsModules() {
|
||||
$count++;
|
||||
}
|
||||
$total_pagination = count($agents);
|
||||
|
||||
if($agents_id[0] != -1){
|
||||
$all_modules = array();
|
||||
foreach ($modules_selected as $key => $value) {
|
||||
@ -333,7 +324,6 @@ function mainAgentsModules() {
|
||||
$all_modules[$value['id_agente_modulo']] = io_safe_output($name);
|
||||
}
|
||||
}
|
||||
// $all_modules[$value] = modules_get_agentmodule_name($value);
|
||||
}
|
||||
|
||||
} else {
|
||||
@ -346,7 +336,6 @@ function mainAgentsModules() {
|
||||
$modules_by_name = array();
|
||||
$name = '';
|
||||
$cont = 0;
|
||||
|
||||
foreach ($all_modules as $key => $module) {
|
||||
if ($module == $name) {
|
||||
$modules_by_name[$cont-1]['id'][] = $key;
|
||||
@ -358,7 +347,6 @@ function mainAgentsModules() {
|
||||
$cont ++;
|
||||
}
|
||||
}
|
||||
|
||||
if ($config["pure"] == 1) {
|
||||
$block = count($modules_by_name);
|
||||
}
|
||||
@ -502,7 +490,6 @@ function mainAgentsModules() {
|
||||
$agent_modules = agents_get_modules($agent['id_agente'], false, $filter_module_group, true, true);
|
||||
|
||||
$nmodules = 0;
|
||||
|
||||
foreach ($modules_by_name as $module) {
|
||||
$nmodules++;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user