Delete shortcut of remote configuration in agents

This commit is contained in:
m-lopez-f 2015-01-22 14:58:45 +01:00
parent 23f14f4c02
commit f0c11a8280
1 changed files with 0 additions and 25 deletions

View File

@ -416,12 +416,6 @@ $table->head[8] = __('Last contact'). ' ' .
$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[3] = "center";
$table->align[4] = "center";
@ -500,25 +494,6 @@ foreach ($agents as $agent) {
// And does not print outdated agents in red. WRONG !!!!
// $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);
}