Merge branch 'ent-8421-extension-antigua-backups' into 'develop'
Ent 8421 extension antigua backups Closes pandora_enterprise#8421 See merge request artica/pandorafms!4614
This commit is contained in:
commit
0f82255904
|
@ -116,3 +116,5 @@ mobile/include/javascript/jquery.mobile-1.3.1.js
|
||||||
mobile/include/style/jquery.mobile-1.3.1.css
|
mobile/include/style/jquery.mobile-1.3.1.css
|
||||||
godmode/alerts/configure_alert_special_days.php
|
godmode/alerts/configure_alert_special_days.php
|
||||||
godmode/admin_access_logs.php
|
godmode/admin_access_logs.php
|
||||||
|
enterprise/extensions/backup/main.php
|
||||||
|
enterprise/extensions/backup.php
|
|
@ -628,20 +628,20 @@ $table->data[5][1] = "
|
||||||
<tr><td>".ui_get_using_system_timezone_warning().'</td></tr>
|
<tr><td>".ui_get_using_system_timezone_warning().'</td></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>'.__('Type Periodicity:').' '.html_print_select(
|
<td>'.__('Type Periodicity:').' '.html_print_select(
|
||||||
[
|
[
|
||||||
'weekly' => __('Weekly'),
|
'weekly' => __('Weekly'),
|
||||||
'monthly' => __('Monthly'),
|
'monthly' => __('Monthly'),
|
||||||
],
|
],
|
||||||
'type_periodicity',
|
'type_periodicity',
|
||||||
$type_periodicity,
|
$type_periodicity,
|
||||||
'change_type_periodicity();',
|
'change_type_periodicity();',
|
||||||
'',
|
'',
|
||||||
0,
|
0,
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
true,
|
true,
|
||||||
'',
|
'',
|
||||||
$disabled_in_execution
|
$disabled_in_execution
|
||||||
)."</td>
|
)."</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -661,31 +661,31 @@ $table->data[5][1] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td>".__('From day:').'</td>
|
<td>".__('From day:').'</td>
|
||||||
<td>'.html_print_select(
|
<td>'.html_print_select(
|
||||||
$days,
|
$days,
|
||||||
'periodically_day_from',
|
'periodically_day_from',
|
||||||
$periodically_day_from,
|
$periodically_day_from,
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
0,
|
0,
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
true,
|
true,
|
||||||
'',
|
'',
|
||||||
$disabled_in_execution
|
$disabled_in_execution
|
||||||
).'</td>
|
).'</td>
|
||||||
<td>'.__('To day:').'</td>
|
<td>'.__('To day:').'</td>
|
||||||
<td>'.html_print_select(
|
<td>'.html_print_select(
|
||||||
$days,
|
$days,
|
||||||
'periodically_day_to',
|
'periodically_day_to',
|
||||||
$periodically_day_to,
|
$periodically_day_to,
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
0,
|
0,
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
true,
|
true,
|
||||||
'',
|
'',
|
||||||
$disabled_in_execution
|
$disabled_in_execution
|
||||||
).'</td>
|
).'</td>
|
||||||
<td>'.ui_print_help_tip(__('The end day must be higher than the start day'), true).'</td>
|
<td>'.ui_print_help_tip(__('The end day must be higher than the start day'), true).'</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -694,26 +694,26 @@ $table->data[5][1] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td>'.__('From hour:').'</td>
|
<td>'.__('From hour:').'</td>
|
||||||
<td>'.html_print_input_text(
|
<td>'.html_print_input_text(
|
||||||
'periodically_time_from',
|
'periodically_time_from',
|
||||||
$periodically_time_from,
|
$periodically_time_from,
|
||||||
'',
|
'',
|
||||||
7,
|
7,
|
||||||
7,
|
7,
|
||||||
true,
|
true,
|
||||||
$disabled_in_execution
|
$disabled_in_execution
|
||||||
).ui_print_help_tip(
|
).ui_print_help_tip(
|
||||||
__('The end time must be higher than the start time'),
|
__('The end time must be higher than the start time'),
|
||||||
true
|
true
|
||||||
).'</td>
|
).'</td>
|
||||||
<td>'.__('To hour:').'</td>
|
<td>'.__('To hour:').'</td>
|
||||||
<td>'.html_print_input_text(
|
<td>'.html_print_input_text(
|
||||||
'periodically_time_to',
|
'periodically_time_to',
|
||||||
$periodically_time_to,
|
$periodically_time_to,
|
||||||
'',
|
'',
|
||||||
7,
|
7,
|
||||||
7,
|
7,
|
||||||
true,
|
true,
|
||||||
$disabled_in_execution
|
$disabled_in_execution
|
||||||
).ui_print_help_tip(
|
).ui_print_help_tip(
|
||||||
__('The end time must be higher than the start time'),
|
__('The end time must be higher than the start time'),
|
||||||
true
|
true
|
||||||
|
@ -997,13 +997,13 @@ $table->data['module'][1] = "
|
||||||
<td class='cell_delete_button' style='text-align: right; width:10%;' id=''>".'<a class="link_delete"
|
<td class='cell_delete_button' style='text-align: right; width:10%;' id=''>".'<a class="link_delete"
|
||||||
onclick="if(!confirm(\''.__('Are you sure?').'\')) return false;"
|
onclick="if(!confirm(\''.__('Are you sure?').'\')) return false;"
|
||||||
href="">'.html_print_image(
|
href="">'.html_print_image(
|
||||||
'images/cross.png',
|
'images/cross.png',
|
||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
'border' => '0',
|
'border' => '0',
|
||||||
'alt' => __('Delete'),
|
'alt' => __('Delete'),
|
||||||
'class' => 'invert_filter',
|
'class' => 'invert_filter',
|
||||||
]
|
]
|
||||||
).'</a>'."</td>
|
).'</a>'."</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class='datos2' id='add_modules_row'>
|
<tr class='datos2' id='add_modules_row'>
|
||||||
|
|
|
@ -406,6 +406,7 @@ if (check_acl($config['id_user'], 0, 'PM') || check_acl($config['id_user'], 0, '
|
||||||
$sub['extensions/dbmanager']['text'] = __('DB Interface');
|
$sub['extensions/dbmanager']['text'] = __('DB Interface');
|
||||||
$sub['extensions/dbmanager']['id'] = 'DB Interface';
|
$sub['extensions/dbmanager']['id'] = 'DB Interface';
|
||||||
$sub['extensions/dbmanager']['sec'] = 'gbman';
|
$sub['extensions/dbmanager']['sec'] = 'gbman';
|
||||||
|
enterprise_hook('dbBackupManager');
|
||||||
enterprise_hook('elasticsearch_interface_menu');
|
enterprise_hook('elasticsearch_interface_menu');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2435,6 +2435,38 @@ function html_print_div(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render an <pre> tag for show code.
|
||||||
|
* For debug purposes, see for `hd()` function.
|
||||||
|
*
|
||||||
|
* @param string $content Content of tag.
|
||||||
|
* @param boolean $return Return the tag string formed.
|
||||||
|
* @param array $attributes Attributes availables for pre tags.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function html_print_code(
|
||||||
|
string $content,
|
||||||
|
bool $return=true,
|
||||||
|
array $attributes=[]
|
||||||
|
) {
|
||||||
|
$output = '<pre';
|
||||||
|
if (empty($attributes) === false) {
|
||||||
|
foreach ($attributes as $attribute => $value) {
|
||||||
|
$output .= ' '.$attribute.'="'.io_safe_input_html($value).'"';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$output .= sprintf('>%s</pre>', $content);
|
||||||
|
|
||||||
|
if ($return === true) {
|
||||||
|
return $output;
|
||||||
|
} else {
|
||||||
|
echo $output;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render an anchor <a> html element.
|
* Render an anchor <a> html element.
|
||||||
*
|
*
|
||||||
|
|
|
@ -545,11 +545,12 @@ function io_input_password($password)
|
||||||
* Process the given password read from the Pandora FMS Database,
|
* Process the given password read from the Pandora FMS Database,
|
||||||
* decrypting it if necessary.
|
* decrypting it if necessary.
|
||||||
*
|
*
|
||||||
* @param string password Password read from the DB.
|
* @param string $password Password read from the DB.
|
||||||
|
* @param string $wrappedBy Wrap the password with the informed character.
|
||||||
*
|
*
|
||||||
* @return string The processed password.
|
* @return string The processed password.
|
||||||
*/
|
*/
|
||||||
function io_output_password($password)
|
function io_output_password($password, $wrappedBy='')
|
||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
@ -562,11 +563,14 @@ function io_output_password($password)
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($plaintext === ENTERPRISE_NOT_HOOK) {
|
$output = ($plaintext === ENTERPRISE_NOT_HOOK) ? $password : $plaintext;
|
||||||
return io_safe_output($password);
|
|
||||||
}
|
|
||||||
|
|
||||||
return io_safe_output($plaintext);
|
return sprintf(
|
||||||
|
'%s%s%s',
|
||||||
|
$wrappedBy,
|
||||||
|
io_safe_output($output),
|
||||||
|
$wrappedBy
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8435,6 +8435,12 @@ div.stat-win-spinner img {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* For backups dt, can be useful for others */
|
||||||
|
#backups_list > thead > tr > th:last-child,
|
||||||
|
#backups_list > tbody > tr > td:last-child {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
/* err_msg_centralised */
|
/* err_msg_centralised */
|
||||||
div#err_msg_centralised div {
|
div#err_msg_centralised div {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
|
|
Loading…
Reference in New Issue