mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Delete shortcut of remote configuration in agents
This commit is contained in:
parent
23f14f4c02
commit
f0c11a8280
@ -416,12 +416,6 @@ $table->head[8] = __('Last contact'). ' ' .
|
|||||||
|
|
||||||
$table->align = array ();
|
$table->align = array ();
|
||||||
|
|
||||||
//Only for AW flag
|
|
||||||
if (check_acl ($config["id_user"], $group_id, "AW")) {
|
|
||||||
$table->head[9] = __('R');
|
|
||||||
$table->align[9] = "center";
|
|
||||||
}
|
|
||||||
|
|
||||||
$table->align[2] = "center";
|
$table->align[2] = "center";
|
||||||
$table->align[3] = "center";
|
$table->align[3] = "center";
|
||||||
$table->align[4] = "center";
|
$table->align[4] = "center";
|
||||||
@ -500,25 +494,6 @@ foreach ($agents as $agent) {
|
|||||||
// And does not print outdated agents in red. WRONG !!!!
|
// And does not print outdated agents in red. WRONG !!!!
|
||||||
// $data[7] = ui_print_timestamp ($agent_info["last_contact"], true);
|
// $data[7] = ui_print_timestamp ($agent_info["last_contact"], true);
|
||||||
|
|
||||||
//Only for AW flag
|
|
||||||
if (check_acl ($config["id_user"], $group_id, "AW")) {
|
|
||||||
// Has remote configuration ?
|
|
||||||
$data[9]="";
|
|
||||||
|
|
||||||
if (enterprise_installed()) {
|
|
||||||
if (config_agents_has_remote_configuration($agent["id_agente"])) {
|
|
||||||
$data[9] = "<a href='index.php?" .
|
|
||||||
"sec=estado&" .
|
|
||||||
"sec2=godmode/agentes/configurar_agente&" .
|
|
||||||
"tab=remote_configuration&" .
|
|
||||||
"id_agente=" . $agent["id_agente"] . "&" .
|
|
||||||
"disk_conf=1'>".
|
|
||||||
html_print_image("images/application_edit.png", true, array("align" => 'middle', "title" => __('Edit remote config')))."</a>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user