mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed a minor bug in remote config - #3611
Former-commit-id: 905739bc36ce640de743f4d6cf62031263c698eb
This commit is contained in:
parent
5f2bd0bc8d
commit
e9082c5d8a
@ -488,26 +488,23 @@ if (enterprise_installed()) {
|
|||||||
// Remote configuration
|
// Remote configuration
|
||||||
$table_adv_remote = '<div class="label_select"><p class="input_label">'.__('Remote configuration').': </p>';
|
$table_adv_remote = '<div class="label_select"><p class="input_label">'.__('Remote configuration').': </p>';
|
||||||
|
|
||||||
if (!$new_agent) {
|
if (!$new_agent && isset($filename)) {
|
||||||
$table_adv_remote .= '<em>'.__('Not available').'</em>';
|
if (file_exists($filename['md5'])) {
|
||||||
if (isset($filename)) {
|
$table_adv_remote .= date('F d Y H:i:s', fileatime($filename['md5']));
|
||||||
if (file_exists($filename['md5'])) {
|
// Delete remote configuration
|
||||||
$table_adv_remote .= date('F d Y H:i:s', fileatime($filename['md5']));
|
$table_adv_remote .= '<a href="index.php?'.'sec=gagente&'.'sec2=godmode/agentes/configurar_agente&'.'tab=main&'.'disk_conf_delete=1&'.'id_agente='.$id_agente.'">';
|
||||||
// Delete remote configuration
|
$table_adv_remote .= html_print_image(
|
||||||
$table_adv_remote .= '<a href="index.php?'.'sec=gagente&'.'sec2=godmode/agentes/configurar_agente&'.'tab=main&'.'disk_conf_delete=1&'.'id_agente='.$id_agente.'">';
|
'images/cross.png',
|
||||||
$table_adv_remote .= html_print_image(
|
true,
|
||||||
'images/cross.png',
|
[
|
||||||
true,
|
'title' => __('Delete remote configuration file'),
|
||||||
[
|
'style' => 'vertical-align: middle;',
|
||||||
'title' => __('Delete remote configuration file'),
|
]
|
||||||
'style' => 'vertical-align: middle;',
|
).'</a>';
|
||||||
]
|
$table_adv_remote .= '</a>'.ui_print_help_tip(
|
||||||
).'</a>';
|
__('Delete this conf file implies that for restore you must reactive remote config in the local agent.'),
|
||||||
$table_adv_remote .= '</a>'.ui_print_help_tip(
|
true
|
||||||
__('Delete this conf file implies that for restore you must reactive remote config in the local agent.'),
|
);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$table_adv_remote .= '<em>'.__('Not available').'</em>';
|
$table_adv_remote .= '<em>'.__('Not available').'</em>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user