Merge branch 'ent-9662-second-round' of brutus.artica.es:artica/pandorafms into ent-9662-second-round

This commit is contained in:
Pablo Aragon 2023-03-27 17:03:45 +02:00
commit 98f812b757
63 changed files with 338 additions and 214 deletions

View File

@ -1,5 +1,5 @@
package: pandorafms-agent-unix package: pandorafms-agent-unix
Version: 7.0NG.769-230324 Version: 7.0NG.769-230327
Architecture: all Architecture: all
Priority: optional Priority: optional
Section: admin Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
pandora_version="7.0NG.769-230324" pandora_version="7.0NG.769-230327"
echo "Test if you has the tools for to make the packages." echo "Test if you has the tools for to make the packages."
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null

View File

@ -1023,7 +1023,7 @@ my $Sem = undef;
my $ThreadSem = undef; my $ThreadSem = undef;
use constant AGENT_VERSION => '7.0NG.769'; use constant AGENT_VERSION => '7.0NG.769';
use constant AGENT_BUILD => '230324'; use constant AGENT_BUILD => '230327';
# Agent log default file size maximum and instances # Agent log default file size maximum and instances
use constant DEFAULT_MAX_LOG_SIZE => 600000; use constant DEFAULT_MAX_LOG_SIZE => 600000;

View File

@ -4,7 +4,7 @@
%global __os_install_post %{nil} %global __os_install_post %{nil}
%define name pandorafms_agent_linux %define name pandorafms_agent_linux
%define version 7.0NG.769 %define version 7.0NG.769
%define release 230324 %define release 230327
Summary: Pandora FMS Linux agent, PERL version Summary: Pandora FMS Linux agent, PERL version
Name: %{name} Name: %{name}

View File

@ -4,7 +4,7 @@
%global __os_install_post %{nil} %global __os_install_post %{nil}
%define name pandorafms_agent_linux %define name pandorafms_agent_linux
%define version 7.0NG.769 %define version 7.0NG.769
%define release 230324 %define release 230327
Summary: Pandora FMS Linux agent, PERL version Summary: Pandora FMS Linux agent, PERL version
Name: %{name} Name: %{name}

View File

@ -10,7 +10,7 @@
# ********************************************************************** # **********************************************************************
PI_VERSION="7.0NG.769" PI_VERSION="7.0NG.769"
PI_BUILD="230324" PI_BUILD="230327"
OS_NAME=`uname -s` OS_NAME=`uname -s`
FORCE=0 FORCE=0

View File

@ -186,7 +186,7 @@ UpgradeApplicationID
{} {}
Version Version
{230324} {230327}
ViewReadme ViewReadme
{Yes} {Yes}

View File

@ -30,7 +30,7 @@ using namespace Pandora;
using namespace Pandora_Strutils; using namespace Pandora_Strutils;
#define PATH_SIZE _MAX_PATH+1 #define PATH_SIZE _MAX_PATH+1
#define PANDORA_VERSION ("7.0NG.769 Build 230324") #define PANDORA_VERSION ("7.0NG.769 Build 230327")
string pandora_path; string pandora_path;
string pandora_dir; string pandora_dir;

View File

@ -11,7 +11,7 @@ BEGIN
VALUE "LegalCopyright", "Artica ST" VALUE "LegalCopyright", "Artica ST"
VALUE "OriginalFilename", "PandoraAgent.exe" VALUE "OriginalFilename", "PandoraAgent.exe"
VALUE "ProductName", "Pandora FMS Windows Agent" VALUE "ProductName", "Pandora FMS Windows Agent"
VALUE "ProductVersion", "(7.0NG.769(Build 230324))" VALUE "ProductVersion", "(7.0NG.769(Build 230327))"
VALUE "FileVersion", "1.0.0.0" VALUE "FileVersion", "1.0.0.0"
END END
END END

View File

@ -1,5 +1,5 @@
package: pandorafms-console package: pandorafms-console
Version: 7.0NG.769-230324 Version: 7.0NG.769-230327
Architecture: all Architecture: all
Priority: optional Priority: optional
Section: admin Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
pandora_version="7.0NG.769-230324" pandora_version="7.0NG.769-230327"
package_pear=0 package_pear=0
package_pandora=1 package_pandora=1

View File

@ -966,9 +966,9 @@ foreach ($fields as $field) {
$link_url = ''; $link_url = '';
} }
$data_field[1] = '<span style="line-height: 3.5;">'.__('Link text:').'</span>'; $customContent = '<span style="line-height: 3.5;">'.__('Link text:').'</span>';
$data_field[1] .= '<br>'; $customContent .= '<br>';
$data_field[1] .= html_print_textarea( $customContent .= html_print_textarea(
'customvalue_'.$field['id_field'].'[]', 'customvalue_'.$field['id_field'].'[]',
2, 2,
1000, 1000,
@ -976,10 +976,10 @@ foreach ($fields as $field) {
'class="min-height-30px w100p"', 'class="min-height-30px w100p"',
true true
); );
$data_field[1] .= '<br>'; $customContent .= '<br>';
$data_field[1] .= '<span style="line-height: 3.5;">'.__('Link URL:').'</span>'; $customContent .= '<span style="line-height: 3.5;">'.__('Link URL:').'</span>';
$data_field[1] .= '<br>'; $customContent .= '<br>';
$data_field[1] .= html_print_textarea( $customContent .= html_print_textarea(
'customvalue_'.$field['id_field'].'[]', 'customvalue_'.$field['id_field'].'[]',
2, 2,
1000, 1000,

View File

@ -229,7 +229,6 @@ echo '</form>';
<script> <script>
$(document).ready (function () { $(document).ready (function () {
if($('input[type=hidden][name=update_field]').val() == 1 && $('#textarea_combo_values').val() != ''){ if($('input[type=hidden][name=update_field]').val() == 1 && $('#textarea_combo_values').val() != ''){
console.log('entra2');
$('input[type=checkbox][name=is_combo_enable]').prop('checked', true); $('input[type=checkbox][name=is_combo_enable]').prop('checked', true);
$('#configure_field-3').show(); $('#configure_field-3').show();
@ -250,7 +249,6 @@ $(document).ready (function () {
} }
}); });
} else { } else {
console.log('entra');
$('#configure_field-3').hide(); $('#configure_field-3').hide();
} }
@ -261,17 +259,19 @@ $(document).ready (function () {
} }
$('input[type=checkbox][name=is_link_enabled]').change(function () { $('input[type=checkbox][name=is_link_enabled]').change(function () {
if( $(this).is(":checked") ){ if( $('input[type=checkbox][name=is_link_enabled]').prop('checked') ){
$('#configure_field-2').hide(); $('#configure_field-2').hide();
$('#configure_field-3').hide(); $('#configure_field-3').hide();
} else{ } else{
$('#configure_field-2').show(); $('#configure_field-2').show();
$('#configure_field-3').show(); if($('input[type=checkbox][name=is_combo_enable]').prop('checked') === true) {
$('#configure_field-3').show();
}
} }
}); });
$('input[type=checkbox][name=is_combo_enable]').change(function () { $('input[type=checkbox][name=is_combo_enable]').change(function () {
if( $(this).is(":checked") ){ if( $('input[type=checkbox][name=is_combo_enable]').prop('checked') ){
$('#configure_field-3').show(); $('#configure_field-3').show();
dialog_message("#message_no_set_password"); dialog_message("#message_no_set_password");
$('#configure_field-1').hide(); $('#configure_field-1').hide();
@ -282,12 +282,14 @@ $(document).ready (function () {
} }
}); });
$('input[type=checkbox][name=is_password_type]').change(function () { $('input[type=checkbox][name=is_password_type]').change(function () {
if( $(this).is(":checked")){ if( $('input[type=checkbox][name=is_password_type]').prop('checked')){
dialog_message("#message_no_set_combo"); dialog_message("#message_no_set_combo");
$('#configure_field-3').hide(); $('#configure_field-3').hide();
} }
else{ else{
$('#configure_field-3').show(); if($('input[type=checkbox][name=is_combo_enable]').prop('checked') === true) {
$('#configure_field-3').show();
}
} }
}); });
}); });

View File

@ -187,7 +187,7 @@ $table->data[2][0] = html_print_label_input_block(
); );
if (isset($step) === false) { if (isset($step) === false) {
echo '<form class="add_alert_form max_floating_element_size" method="post">'; echo '<form id="form_alerts" class="add_alert_form max_floating_element_size" method="post">';
html_print_table($table); html_print_table($table);
} }
@ -216,6 +216,26 @@ if (isset($step) === false) {
true true
); );
if ($_GET['sec2'] === 'operation/cluster/cluster') {
html_print_div(
[
'content' => html_print_submit_button(
__('Add alert'),
'add',
false,
[
'icon' => 'wand',
'form' => 'form_alerts',
'mode' => 'secondary',
],
true
),
'style' => 'display:none',
'id' => 'add_alert_div',
]
);
}
html_print_action_buttons($actionButtons, ['right_content' => $pagination]); html_print_action_buttons($actionButtons, ['right_content' => $pagination]);
html_print_input_hidden('create_alert', 1); html_print_input_hidden('create_alert', 1);

View File

@ -497,45 +497,47 @@ if (is_metaconsole() === false) {
$buttons = ''; $buttons = '';
} }
if ($tab !== 'alert') { if ($_GET['sec2'] !== 'operation/cluster/cluster') {
if ($tab === 'list') { if ($tab !== 'alert') {
ui_print_standard_header( if ($tab === 'list') {
__('Alerts'), ui_print_standard_header(
'images/gm_alerts.png', __('Alerts'),
false, 'images/gm_alerts.png',
'', false,
true, '',
$buttons, true,
[ $buttons,
[ [
'link' => '', [
'label' => __('Manage alerts'), 'link' => '',
], 'label' => __('Manage alerts'),
],
[
'link' => '',
'label' => __('List'),
],
]
);
} else {
ui_print_standard_header(
__('Alerts'),
'images/gm_alerts.png',
false,
'',
true,
$buttons,
[ [
'link' => '', [
'label' => __('List'), 'link' => '',
], 'label' => __('Manage alerts'),
] ],
); [
} else { 'link' => '',
ui_print_standard_header( 'label' => __('Create'),
__('Alerts'), ],
'images/gm_alerts.png', ]
false, );
'', }
true,
$buttons,
[
[
'link' => '',
'label' => __('Manage alerts'),
],
[
'link' => '',
'label' => __('Create'),
],
]
);
} }
} }
} else { } else {

View File

@ -84,7 +84,7 @@ $buttons['gis_maps_list'] = [
true, true,
[ [
'title' => __('GIS Maps list'), 'title' => __('GIS Maps list'),
'class' => 'invert_filter', 'class' => 'invert_filter main_menu_icon',
] ]
).'</a>', ).'</a>',
]; ];
@ -96,19 +96,30 @@ if ($idMap) {
true, true,
[ [
'title' => __('View GIS'), 'title' => __('View GIS'),
'class' => 'invert_filter', 'class' => 'invert_filter main_menu_icon',
] ]
).'</a>', ).'</a>',
]; ];
} }
ui_print_page_header( // Header.
ui_print_standard_header(
__('GIS Maps builder'), __('GIS Maps builder'),
'images/gm_gis.png', 'images/gm_gis.png',
false, false,
'configure_gis_map_edit', 'configure_gis_map_edit',
true, false,
$buttons $buttons,
[
[
'link' => '',
'label' => __('Topology maps'),
],
[
'link' => '',
'label' => __('GIS Maps'),
],
]
); );
switch ($action) { switch ($action) {
@ -480,7 +491,7 @@ $table->data[1][1] = "<table class='no-class' border='0' id='map_connection'>
<a href='javascript: addConnectionMap();'>".html_print_image( <a href='javascript: addConnectionMap();'>".html_print_image(
'images/add.png', 'images/add.png',
true, true,
['class' => 'invert_filter'] ['class' => 'invert_filter main_menu_icon']
)."</a> )."</a>
<input type='hidden' name='map_connection_list' value='' id='map_connection_list' /> <input type='hidden' name='map_connection_list' value='' id='map_connection_list' />
<input type='hidden' name='layer_list' value='' id='layer_list' /> <input type='hidden' name='layer_list' value='' id='layer_list' />
@ -583,7 +594,7 @@ $table->data[1][1] = '<div id="form_layer" class="invisible">
$table->data[1][1] .= html_print_button(__('Add agent'), 'add_agent', true, '', 'class="sub add"', true); $table->data[1][1] .= html_print_button(__('Add agent'), 'add_agent', true, '', ['mode' => 'secondary', 'icon' => 'next'], true);
$params = []; $params = [];
$params['return'] = true; $params['return'] = true;
@ -628,7 +639,7 @@ $params['javascript_is_function_select'] = true;
// Filter by group. // Filter by group.
$params['disabled_javascript_on_blur_function'] = false; $params['disabled_javascript_on_blur_function'] = false;
$agent_for_group_input = ui_print_agent_autocomplete_input($params); $agent_for_group_input = ui_print_agent_autocomplete_input($params);
$add_group_btn = html_print_button(__('Add'), 'add_group', true, '', 'class="sub add"', true); $add_group_btn = html_print_button(__('Add'), 'add_group', true, '', ['mode' => 'secondary', 'icon' => 'next'], true);
$table->data[1][1] .= '<tr><td colspan="4"><hr /></td></tr> $table->data[1][1] .= '<tr><td colspan="4"><hr /></td></tr>
<tr> <tr>
@ -660,21 +671,19 @@ $table->data[1][1] .= '<tr>
html_print_table($table); html_print_table($table);
echo '<div class="action-buttons" style="width: '.$table->width.'">';
switch ($action) { switch ($action) {
case 'save_new': case 'save_new':
case 'edit_map': case 'edit_map':
case 'update_saved': case 'update_saved':
if (empty($invalidFields) === true) { if (empty($invalidFields) === true) {
html_print_submit_button(_('Save map'), 'save_button', false, 'class="sub wand"'); $action_button = html_print_submit_button(_('Save map'), 'save_button', false, ['mode' => 'primary', 'icon' => 'next'], true);
} else { } else {
html_print_submit_button(_('Update map'), 'update_button', false, 'class="sub upd"'); $action_button = html_print_submit_button(_('Update map'), 'update_button', false, ['mode' => 'primary', 'icon' => 'next'], true);
} }
break; break;
case 'new_map': case 'new_map':
html_print_submit_button(_('Save map'), 'save_button', false, 'class="sub wand"'); $action_button = html_print_submit_button(_('Save map'), 'save_button', false, ['mode' => 'primary', 'icon' => 'next'], true);
break; break;
default: default:
@ -682,7 +691,10 @@ switch ($action) {
break; break;
} }
echo '</div>'; html_print_action_buttons(
$action_button,
['type' => 'form_action']
);
echo '</form>'; echo '</form>';
@ -702,7 +714,7 @@ echo '</form>';
false, false,
[ [
'alt' => '', 'alt' => '',
'class' => 'invert_filter', 'class' => 'invert_filter main_menu_icon',
] ]
); );
?> ?>
@ -899,7 +911,7 @@ function setLayerEditorData (data) {
var $layerFormVisibleCheckbox = $("input#checkbox-layer_visible_form"); var $layerFormVisibleCheckbox = $("input#checkbox-layer_visible_form");
var $layerFormAgentsFromGroupSelect = $("#layer_group_form"); var $layerFormAgentsFromGroupSelect = $("#layer_group_form");
var $layerFormAgentInput = $("input#text-agent_alias"); var $layerFormAgentInput = $("input#text-agent_alias");
var $layerFormAgentButton = $("input#button-add_agent"); var $layerFormAgentButton = $("button#button-add_agent");
var $layerFormAgentsListItems = $("tr.agents_list_item"); var $layerFormAgentsListItems = $("tr.agents_list_item");
var $layerFormGroupsListItems = $("tr.groups_list_item"); var $layerFormGroupsListItems = $("tr.groups_list_item");
@ -1005,7 +1017,7 @@ function getAgentRow (layerId, agentId, agentAlias) {
var $deleteCol = $("<td />"); var $deleteCol = $("<td />");
var $agentAlias = $("<span class=\"agent_alias\" data-agent-id=\"" + agentId + "\">" + agentAlias + "</span>"); var $agentAlias = $("<span class=\"agent_alias\" data-agent-id=\"" + agentId + "\">" + agentAlias + "</span>");
var $removeBtn = $('<a class="delete_row" href="javascript:" <?php echo html_print_image('images/delete.svg', false, ['class' => 'invert_filter']); ?> </a>'); var $removeBtn = $('<a class="delete_row" href="javascript:" <?php echo html_print_image('images/delete.svg', false, ['class' => 'invert_filter main_menu_icon']); ?> </a>');
$removeBtn.click(function (event) { $removeBtn.click(function (event) {
var $layerRow = $("tr#layer_row_" + layerId); var $layerRow = $("tr#layer_row_" + layerId);
@ -1061,7 +1073,7 @@ function getGroupRow (layerId, groupId, groupName, agentId, agentAlias) {
+ "<i>" + agentAlias + "</i>" + "<i>" + agentAlias + "</i>"
+ ")" + ")"
+ "</span>"); + "</span>");
var $removeBtn = $('<a class="delete_row" href="javascript:;"><?php echo html_print_image('images/delete.svg', true, ['class' => 'invert_filter']); ?></a>'); var $removeBtn = $('<a class="delete_row" href="javascript:;"><?php echo html_print_image('images/delete.svg', true, ['class' => 'invert_filter main_menu_icon']); ?></a>');
$removeBtn.click(function (event) { $removeBtn.click(function (event) {
var $layerRow = $("tr#layer_row_" + layerId); var $layerRow = $("tr#layer_row_" + layerId);
@ -1139,8 +1151,8 @@ function getLayerRow (layerId, layerData) {
var $layerName = $("<span class=\"layer_name\">" + layerData.name + "</span>"); var $layerName = $("<span class=\"layer_name\">" + layerData.name + "</span>");
var $sortUpBtn = $("<a class=\"up_arrow\" href=\"javascript:;\" />"); var $sortUpBtn = $("<a class=\"up_arrow\" href=\"javascript:;\" />");
var $sortDownBtn = $("<a class=\"down_arrow\" href=\"javascript:;\" />"); var $sortDownBtn = $("<a class=\"down_arrow\" href=\"javascript:;\" />");
var $editBtn = $('<a class="edit_layer" href="javascript:;"><?php echo html_print_image('images/edit.svg', true, ['class' => 'invert_filter']); ?></a>'); var $editBtn = $('<a class="edit_layer" href="javascript:;"><?php echo html_print_image('images/edit.svg', true, ['class' => 'invert_filter main_menu_icon']); ?></a>');
var $removeBtn = $('<a class="delete_row" href="javascript:;"><?php echo html_print_image('images/delete.svg', true, ['class' => 'invert_filter']); ?></a>'); var $removeBtn = $('<a class="delete_row" href="javascript:;"><?php echo html_print_image('images/delete.svg', true, ['class' => 'invert_filter main_menu_icon']); ?></a>');
$sortUpBtn.click(moveLayerRowUpOnClick); $sortUpBtn.click(moveLayerRowUpOnClick);
$sortDownBtn.click(moveLayerRowDownOnClick); $sortDownBtn.click(moveLayerRowDownOnClick);
@ -1231,9 +1243,9 @@ function onLayerGroupIdChange (event) {
// Bind events // Bind events
$("form#form_setup").submit(onFormSubmit); $("form#form_setup").submit(onFormSubmit);
$("input#button-add_agent").click(addAgentClick); $("button#button-add_agent").click(addAgentClick);
$("select#layer_group_id").change(onLayerGroupIdChange); $("select#layer_group_id").change(onLayerGroupIdChange);
$("input#button-add_group").click(addGroupClick); $("button#button-add_group").click(addGroupClick);
// Populate layer list // Populate layer list
var layers = <?php echo json_encode($layer_list); ?>; var layers = <?php echo json_encode($layer_list); ?>;

View File

@ -118,7 +118,7 @@ if (is_metaconsole() === true) {
// Data before table. // Data before table.
$files = list_files('images/', '@groups.svg', 1, 0); $files = list_files(((is_metaconsole() === true) ? '../../' : '').'images/', '@groups.svg', 1, 0);
$table = new stdClass(); $table = new stdClass();
$table->width = '100%'; $table->width = '100%';

View File

@ -270,7 +270,7 @@ $agents_with_templates_json = json_encode($agents_with_templates_json);
echo "<input type='hidden' id='hidden-agents_with_templates' value='$agents_with_templates_json'>"; echo "<input type='hidden' id='hidden-agents_with_templates' value='$agents_with_templates_json'>";
attachActionButton('add', 'create', $table->width); attachActionButton('add', 'create', $table->width, false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -293,7 +293,7 @@ $table->data[2][3] = '';
echo '<form method="post" id="form_alerts" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=add_alerts">'; echo '<form method="post" id="form_alerts" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=add_alerts">';
html_print_table($table); html_print_table($table);
attachActionButton('add', 'add', $table->width); attachActionButton('add', 'add', $table->width, false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -295,7 +295,7 @@ array_push($table->data, $data);
html_print_table($table); html_print_table($table);
attachActionButton('create_profiles', 'update', $table->width); attachActionButton('create_profiles', 'update', $table->width, false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -310,7 +310,7 @@ echo '<legend><span>'.__('To agent(s)').'</span></legend>';
html_print_table($table); html_print_table($table);
echo '</fieldset>'; echo '</fieldset>';
attachActionButton('do_operation', 'copy', $table->width); attachActionButton('do_operation', 'copy', $table->width, false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -298,7 +298,7 @@ $agents_with_templates_json = json_encode($agents_with_templates_json);
echo "<input type='hidden' id='hidden-agents_with_templates' value='".$agents_with_templates_json."'>"; echo "<input type='hidden' id='hidden-agents_with_templates' value='".$agents_with_templates_json."'>";
attachActionButton('delete', 'delete', $table->width); attachActionButton('delete', 'delete', $table->width, false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -188,7 +188,7 @@ $params = [
echo get_table_inputs_masive_agents($params); echo get_table_inputs_masive_agents($params);
if (is_metaconsole() === true || is_management_allowed() === true) { if (is_metaconsole() === true || is_management_allowed() === true) {
attachActionButton('delete', 'delete', '100%'); attachActionButton('delete', 'delete', '100%', false, $SelectAction);
} }
echo '</form>'; echo '</form>';

View File

@ -358,7 +358,7 @@ $table->data[2][3] = html_print_select([], 'module[]', '', false, '', '', true,
echo '<form method="post" id="form_alerts" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=delete_alerts" >'; echo '<form method="post" id="form_alerts" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=delete_alerts" >';
html_print_table($table); html_print_table($table);
attachActionButton('delete', 'delete', $table->width); attachActionButton('delete', 'delete', $table->width, false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -583,7 +583,7 @@ $table->data['form_agents_3'][3] = html_print_select(
echo '<form method="post" id="form_modules" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=delete_modules" >'; echo '<form method="post" id="form_modules" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=delete_modules" >';
html_print_table($table); html_print_table($table);
attachActionButton('delete', 'delete', $table->width); attachActionButton('delete', 'delete', $table->width, false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -246,7 +246,7 @@ array_push($table->data, $data);
html_print_table($table); html_print_table($table);
attachActionButton('delete_profiles', 'delete', $table->width); attachActionButton('delete_profiles', 'delete', $table->width, false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -1257,7 +1257,7 @@ echo '<h3 class="error invisible" id="message"> </h3>';
html_print_input_hidden('id_agente', $id_agente); html_print_input_hidden('id_agente', $id_agente);
attachActionButton('update_agents', 'update', $table->width); attachActionButton('update_agents', 'update', $table->width, false, $SelectAction);
// Shown and hide div. // Shown and hide div.
echo '</div></form>'; echo '</div></form>';

View File

@ -1265,7 +1265,7 @@ $table->data['edit1'][1] = '<table width="100%">';
echo '<form method="post" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=edit_modules" id="form_edit">'; echo '<form method="post" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=edit_modules" id="form_edit">';
html_print_table($table); html_print_table($table);
attachActionButton('update', 'update', $table->width); attachActionButton('update', 'update', $table->width, false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -391,7 +391,7 @@ echo '<form method="POST" id="form-massive_plugin_edition"
html_print_table($table); html_print_table($table);
attachActionButton('update', 'update', $table->width); attachActionButton('update', 'update', $table->width, false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -556,7 +556,7 @@ echo sprintf(
); );
echo '</div>'; echo '</div>';
attachActionButton('edit_users', 'update', '100%'); attachActionButton('edit_users', 'update', '100%', false, $SelectAction);
echo '</form>'; echo '</form>';

View File

@ -220,7 +220,7 @@ $alertstab = [
true, true,
[ [
'title' => __('Alerts operations'), 'title' => __('Alerts operations'),
'class' => 'invert_filter', 'class' => 'invert_filter main_menu_icon',
] ]
).'</a>', ).'</a>',
'active' => $tab == 'massive_alerts', 'active' => $tab == 'massive_alerts',
@ -232,7 +232,7 @@ $userstab = [
true, true,
[ [
'title' => __('Users operations'), 'title' => __('Users operations'),
'class' => 'invert_filter', 'class' => 'invert_filter main_menu_icon',
] ]
).'</a>', ).'</a>',
'active' => $tab == 'massive_users', 'active' => $tab == 'massive_users',
@ -244,7 +244,7 @@ $agentstab = [
true, true,
[ [
'title' => __('Agents operations'), 'title' => __('Agents operations'),
'class' => 'invert_filter', 'class' => 'invert_filter main_menu_icon',
] ]
).'</a>', ).'</a>',
'active' => $tab == 'massive_agents', 'active' => $tab == 'massive_agents',
@ -256,7 +256,7 @@ $modulestab = [
true, true,
[ [
'title' => __('Modules operations'), 'title' => __('Modules operations'),
'class' => 'invert_filter', 'class' => 'invert_filter main_menu_icon',
] ]
).'</a>', ).'</a>',
'active' => $tab == 'massive_modules', 'active' => $tab == 'massive_modules',
@ -268,7 +268,7 @@ $pluginstab = [
true, true,
[ [
'title' => __('Plugins operations'), 'title' => __('Plugins operations'),
'class' => 'invert_filter', 'class' => 'invert_filter main_menu_icon',
] ]
).'</a>', ).'</a>',
'active' => $tab == 'massive_plugins', 'active' => $tab == 'massive_plugins',
@ -308,34 +308,58 @@ $onheader['services'] = $servicestab;
// Header. // Header.
ui_print_standard_header( if (is_metaconsole() === false) {
__('Bulk operations').' - '.$options[$option], ui_print_standard_header(
'images/gm_massive_operations.png', __('Bulk operations').' - '.$options[$option],
false, 'images/gm_massive_operations.png',
$help_header, false,
false, $help_header,
[ false,
$agentstab,
$modulestab,
$pluginstab,
$userstab,
$alertstab,
$policiestab,
$snmptab,
$satellitetab,
$servicestab,
],
[
[ [
'link' => '', $agentstab,
'label' => __('Configuration'), $modulestab,
$pluginstab,
$userstab,
$alertstab,
$policiestab,
$snmptab,
$satellitetab,
$servicestab,
], ],
[ [
'link' => '', [
'label' => __('Bulk operations'), 'link' => '',
'label' => __('Configuration'),
],
[
'link' => '',
'label' => __('Bulk operations'),
],
]
);
} else {
ui_print_standard_header(
__('Bulk operations').' - '.$options[$option],
'images/gm_massive_operations.png',
false,
$help_header,
false,
[
$userstab,
$agentstab,
], ],
] [
); [
'link' => '',
'label' => __('Configuration'),
],
[
'link' => '',
'label' => __('Bulk operations'),
],
]
);
}
// Checks if the PHP configuration is correctly. // Checks if the PHP configuration is correctly.
@ -419,29 +443,26 @@ if (is_management_allowed() === false) {
); );
} }
echo '<br />'; $tip = '';
echo '<form method="post" id="form_options" action="'.$url.'">'; if ($option === 'edit_agents' || $option === 'edit_modules') {
echo '<table border="0"><tr><td>'; $tip = ui_print_help_tip(__('The blank fields will not be updated'), true);
echo __('Action'); }
echo '</td><td>';
html_print_select( $SelectAction = '<form method="post" id="form_options" action="'.$url.'">';
$SelectAction .= '<span class="mrgn_lft_10px mrgn_right_10px">'._('Action').'</span>';
$SelectAction .= html_print_select(
$options, $options,
'option', 'option',
$option, $option,
'this.form.submit()', 'this.form.submit()',
'', '',
0, 0,
false, true,
false, false,
false false
); ).$tip;
if ($option === 'edit_agents' || $option === 'edit_modules') {
ui_print_help_tip(__('The blank fields will not be updated'));
}
echo '</td></tr></table>'; $SelectAction .= '</form>';
echo '</form>';
echo '<br />';
switch ($option) { switch ($option) {
case 'delete_alerts': case 'delete_alerts':

View File

@ -50,13 +50,23 @@ echo '<form action="index.php?sec=gsetup&sec2=godmode/setup/gis_step_2" method="
switch ($action) { switch ($action) {
case 'create_connection_map': case 'create_connection_map':
// Header. // Header.
ui_print_page_header( ui_print_standard_header(
__('Create new map connection'), __('Create new map connection'),
'', '',
false, false,
'map_connection_tab', 'map_connection_tab',
true, true,
$buttons $buttons,
[
[
'link' => '',
'label' => __('Setup'),
],
[
'link' => '',
'label' => __('Setup').' - '.__('Gis'),
],
]
); );
$mapConnection_name = ''; $mapConnection_name = '';
@ -77,13 +87,23 @@ switch ($action) {
case 'edit_connection_map': case 'edit_connection_map':
// Header. // Header.
ui_print_page_header( ui_print_standard_header(
__('Edit map connection'), __('Edit map connection'),
'', '',
false, false,
'map_connection_tab', 'map_connection_tab',
true, true,
$buttons $buttons,
[
[
'link' => '',
'label' => __('Setup'),
],
[
'link' => '',
'label' => __('Setup').' - '.__('Gis'),
],
]
); );
$idConnectionMap = get_parameter('id_connection_map'); $idConnectionMap = get_parameter('id_connection_map');

View File

@ -25,8 +25,25 @@ if (! check_acl($config['id_user'], 0, 'PM')) {
exit; exit;
} }
// Header // Header.
ui_print_page_header(__('Site news management'), '', false, '', true); ui_print_standard_header(
__('Site news management'),
'images/custom_field.png',
false,
'',
true,
[],
[
[
'link' => '',
'label' => __('Admin tools'),
],
[
'link' => '',
'label' => __('Site news'),
],
]
);

View File

@ -1279,16 +1279,18 @@ if (check_login()) {
if ((int) $module['flag'] === 0) { if ((int) $module['flag'] === 0) {
$additionalLinkAction = '&amp;flag=1'; $additionalLinkAction = '&amp;flag=1';
$linkCaption = __('Force checks'); $linkCaption = __('Force checks');
$imgaction = 'images/target.png';
} else { } else {
$additionalLinkAction = ''; $additionalLinkAction = '';
$linkCaption = __('Refresh'); $linkCaption = __('Refresh');
$imgaction = 'images/go-back@svg.svg';
} }
$moduleActionButtons[] = html_print_anchor( $moduleActionButtons[] = html_print_anchor(
[ [
'href' => 'index.php?sec=estado&amp;sec2=operation/agentes/ver_agente&amp;id_agente='.$id_agente.'&amp;id_agente_modulo='.$module['id_agente_modulo'].'&amp;refr=60'.$addedLinkParams.'"', 'href' => 'index.php?sec=estado&amp;sec2=operation/agentes/ver_agente&amp;id_agente='.$id_agente.'&amp;id_agente_modulo='.$module['id_agente_modulo'].'&amp;refr=60'.$additionalLinkAction.'"',
'content' => html_print_image( 'content' => html_print_image(
'images/go-back@svg.svg', $imgaction,
true, true,
[ 'class' => 'main_menu_icon' ] [ 'class' => 'main_menu_icon' ]
), ),

View File

@ -20,7 +20,7 @@
/** /**
* Pandora build version and version * Pandora build version and version
*/ */
$build_version = 'PC230324'; $build_version = 'PC230327';
$pandora_version = 'v7.0NG.769'; $pandora_version = 'v7.0NG.769';
// Do not overwrite default timezone set if defined. // Do not overwrite default timezone set if defined.

View File

@ -489,10 +489,8 @@ function cron_list_table()
} }
if ($defined_tasks !== false) { if ($defined_tasks !== false) {
echo '<h2>'.__('Scheduled jobs').'</h2>';
$table = new stdClass(); $table = new stdClass();
$table->class = 'databox data'; $table->class = 'info_table';
$table->width = '100%'; $table->width = '100%';
$table->data = []; $table->data = [];
$table->head = []; $table->head = [];
@ -912,8 +910,7 @@ function cron_list_table()
if ($function_name == 'cron_task_do_backup' || $function_name == 'cron_task_execute_custom_script') { if ($function_name == 'cron_task_do_backup' || $function_name == 'cron_task_execute_custom_script') {
if ($manage_pandora) { if ($manage_pandora) {
$data[7] = '<a href="'.$url; $data[7] = '<a href="javascript:form_add_cron_task('.$task['id'].',1);">';
$data[7] .= 'edit_task=1&id='.$task['id'].'">';
$data[7] .= html_print_image( $data[7] .= html_print_image(
'images/edit.svg', 'images/edit.svg',
true, true,
@ -926,8 +923,7 @@ function cron_list_table()
} }
if ($manage_pandora) { if ($manage_pandora) {
$data[7] .= '<a href="'.$url; $data[7] .= '<a href="javascript:form_add_cron_task('.$task['id'].',1);">';
$data[7] .= 'delete_task=1&id_user_task='.$task['id'].'">';
$data[7] .= html_print_image( $data[7] .= html_print_image(
'images/delete.svg', 'images/delete.svg',
true, true,
@ -940,8 +936,7 @@ function cron_list_table()
} }
} else { } else {
if ($write_perms || $manage_pandora) { if ($write_perms || $manage_pandora) {
$data[7] = '<a href="'.$url; $data[7] = '<a href="javascript:form_add_cron_task('.$task['id'].',1);">';
$data[7] .= 'edit_task=1&id='.$task['id'].'">';
$data[7] .= html_print_image( $data[7] .= html_print_image(
'images/edit.svg', 'images/edit.svg',
true, true,
@ -994,5 +989,7 @@ function cron_list_table()
} }
html_print_table($table); html_print_table($table);
} else {
ui_print_info_message(['no_close' => true, 'message' => __('There are no jobs') ]);
} }
} }

View File

@ -43,7 +43,8 @@ function attachActionButton(
string $action, string $action,
string $buttonAction, string $buttonAction,
string $tableWidth, string $tableWidth,
bool $return=false bool $return=false,
string $SelectAction=''
) { ) {
switch ($buttonAction) { switch ($buttonAction) {
case 'add': case 'add':
@ -88,7 +89,7 @@ function attachActionButton(
['icon' => $class], ['icon' => $class],
true true
), ),
[], ['right_content' => $SelectAction],
$return $return
); );
} }

View File

@ -68,6 +68,19 @@ function menu_print_menu(&$menu)
$sec2 = 'godmode/alerts/alert_commands'; $sec2 = 'godmode/alerts/alert_commands';
} else if ($sec2 === 'enterprise/godmode/setup/edit_skin') { } else if ($sec2 === 'enterprise/godmode/setup/edit_skin') {
$sec2 = 'enterprise/godmode/setup/setup_skins'; $sec2 = 'enterprise/godmode/setup/setup_skins';
} else if ($sec2 === 'godmode/gis_maps/configure_gis_map') {
$map_id = (string) get_parameter('map_id');
if (empty($map_id) === false) {
$sec2 = 'operation/gis_maps/render_view&map_id='.$map_id;
} else {
$sec2 = 'operation/gis_maps/gis_map';
}
} else if ($sec2 === 'enterprise/godmode/servers/manage_export_form') {
$sec2 = 'enterprise/godmode/servers/manage_export';
} else if ($sec2 === 'godmode/setup/gis_step_2') {
$sec2 = 'godmode/setup/setup&section=gis';
} else if ($sec2 === 'enterprise/godmode/agentes/agent_autoconfiguration.definition') {
$sec2 = 'enterprise/godmode/agentes/agent_autoconfiguration';
} else if ($sec2 === 'operation/gis_maps/render_view') { } else if ($sec2 === 'operation/gis_maps/render_view') {
$map_id = (int) get_parameter('map_id'); $map_id = (int) get_parameter('map_id');
if (empty($map_id) === false) { if (empty($map_id) === false) {

View File

@ -545,7 +545,7 @@ final class ModuleGraph extends Item
'label' => __('Module Graph'), 'label' => __('Module Graph'),
'arguments' => [ 'arguments' => [
'type' => 'radio_button', 'type' => 'radio_button',
'attributes' => 'class="btn" style="flex: 1;"', 'attributes' => 'class="btn mrgn_right_20px" style="flex: 1;"',
'name' => 'choosetype', 'name' => 'choosetype',
'value' => 'module', 'value' => 'module',
'checkedvalue' => $checkedModule, 'checkedvalue' => $checkedModule,

View File

@ -10225,9 +10225,9 @@ button.submitButton > div {
button.buttonButton.onlyIcon, button.buttonButton.onlyIcon,
button.submitButton.onlyIcon { button.submitButton.onlyIcon {
padding: 0 !important; padding: 0 !important;
min-width: 1.7em !important; min-width: 1.6em !important;
width: 1.7em !important; width: 1.6em !important;
height: 1.7em !important; height: 1.6em !important;
border: none; border: none;
box-shadow: none; box-shadow: none;
} }
@ -10291,8 +10291,9 @@ button.submitButton.onlyIcon.auto_sla_graph_min {
button.buttonButton.onlyIcon.basic_chart_min, button.buttonButton.onlyIcon.basic_chart_min,
button.submitButton.onlyIcon.basic_chart_min { button.submitButton.onlyIcon.basic_chart_min {
mask: url(../../images/event-history.svg) no-repeat right / contain; mask: url(../../images/web-analisys-data@svg.svg) no-repeat right / contain;
-webkit-mask: url(../../images/event-history.svg) no-repeat right / contain; -webkit-mask: url(../../images/web-analisys-data@svg.svg) no-repeat right /
contain;
} }
button.buttonButton.onlyIcon.binary_min, button.buttonButton.onlyIcon.binary_min,

View File

@ -14,6 +14,7 @@ div.external-visual-console-container {
width: 100%; width: 100%;
overflow-x: auto; overflow-x: auto;
overflow-y: hidden; overflow-y: hidden;
position: relative;
z-index: 0; z-index: 0;
} }
@ -47,7 +48,6 @@ div#vc-controls .nomn #vc-refr-form {
} }
div#vc-controls div.vc-title, div#vc-controls div.vc-title,
div#vc-controls div.vc-refr { div#vc-controls div.vc-refr {
/*margin-top: 15px;*/
margin-left: 3px; margin-left: 3px;
margin-right: 3px; margin-right: 3px;
} }

View File

@ -41,11 +41,11 @@
} }
.visual-console-item.is-editing:hover { .visual-console-item.is-editing:hover {
border-color: #82b92e; border-color: #2b2b2b;
} }
.visual-console-item.is-editing.is-selected { .visual-console-item.is-editing.is-selected {
border: 2px dashed #2b2b2b; border: 2px dashed #82b92e;
cursor: move; cursor: move;
z-index: 10; z-index: 10;
} }

File diff suppressed because one or more lines are too long

View File

@ -131,7 +131,7 @@
<div style='padding-bottom: 50px'> <div style='padding-bottom: 50px'>
<?php <?php
$version = '7.0NG.769'; $version = '7.0NG.769';
$build = '230324'; $build = '230327';
$banner = "v$version Build $build"; $banner = "v$version Build $build";
error_reporting(0); error_reporting(0);

View File

@ -540,11 +540,8 @@ $table_contact->data[] = $data;
$data_opcional = new stdClass(); $data_opcional = new stdClass();
$data_opcional->id = 'agent_data_main'; $data_opcional->id = 'agent_data_main';
$data_opcional->width = '100%';
$data_opcional->class = 'floating_form'; $data_opcional->class = 'floating_form';
$data_opcional->cellspacing = 0;
$data_opcional->cellpadding = 0;
$data_opcional->style[0] = 'height: 46px; width: 25%; padding-right: 5px;text-align: end;';
$data_opcional->style[1] = 'height: 46px; width: 75%; padding-left: 5px;';
// Gis and url address. // Gis and url address.
$agentAdditionalContent = ''; $agentAdditionalContent = '';
// Position Information. // Position Information.
@ -624,8 +621,6 @@ foreach ($fields as $field) {
$data = []; $data = [];
$data[0] = '<b>'.$field['name'].ui_print_help_tip(__('Custom field'), true).'</b>'; $data[0] = '<b>'.$field['name'].ui_print_help_tip(__('Custom field'), true).'</b>';
$custom_value[0]['description'] = ui_bbcode_to_html($custom_value[0]['description']);
if ($custom_value[0]['is_password_type']) { if ($custom_value[0]['is_password_type']) {
$data[1] = '&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;'; $data[1] = '&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;';
} else if ($field['is_link_enabled'] === '1') { } else if ($field['is_link_enabled'] === '1') {
@ -642,6 +637,7 @@ foreach ($fields as $field) {
$data[1] = '<a href="'.$link_url.'">'.$link_text.'</a>'; $data[1] = '<a href="'.$link_url.'">'.$link_text.'</a>';
} else { } else {
$custom_value[0]['description'] = ui_bbcode_to_html($custom_value[0]['description']);
$data[1] = $custom_value[0]['description']; $data[1] = $custom_value[0]['description'];
} }
@ -1056,19 +1052,13 @@ if (isset($data_opcional) === false || isset($data_opcional->data) === false ||
false, false,
false, false,
true, true,
'box-flat agent_details_col agent_details_toggle agent_details_first_row w100p', '',
'mrgn_right_20px', 'white-box-content',
'w100p' 'box-flat white_table_graph w100p'
); );
} }
$agentIncidents = (isset($table_incident) === false) ? '' : html_print_table($table_incident, true); $agentIncidents = (isset($table_incident) === false) ? '' : html_print_table($table_incident, true);
/*
echo '<div class="agent_details_first_row">
<div class="box-flat agent_details_col mrgn_lft_20px mrgn_right_20px">'.$table_agent.'</div>
<div class="box-flat agent_details_col mrgn_right_20px">'.$agent_contact.'</div>
</div>'.$agent_info;
*/
html_print_div( html_print_div(
[ [

View File

@ -33,8 +33,9 @@ $buttons['gis_maps_list'] = [
).'</a>', ).'</a>',
]; ];
// Header.
ui_print_standard_header( ui_print_standard_header(
__('GIS Maps'), __('List of GIS maps'),
'images/op_gis.png', 'images/op_gis.png',
false, false,
'', '',
@ -199,7 +200,7 @@ if ($maps !== false) {
} }
$table->cellclass[]['op'] = 'table_action_buttons'; $table->cellclass[]['op'] = 'table_action_buttons';
$data['op'] = '<a href="index.php?sec=godgismaps&amp;sec2=godmode/gis_maps/configure_gis_map&map_id='.$map['id_tgis_map'].'&amp;action=edit_map">'.html_print_image('images/edit.svg', true, ['title' => __('Edit')]).'</a>'.'<a href="index.php?sec=godgismaps&amp;sec2=operation/gis_maps/gis_map&amp;map_id='.$map['id_tgis_map'].'&amp;action=delete_map" onclick="return confirmDelete();">'.html_print_image('images/delete.svg', true, ['title' => __('Delete'), 'class' => 'invert_filter']).'</a>'; $data['op'] = '<a href="index.php?sec=godgismaps&amp;sec2=godmode/gis_maps/configure_gis_map&map_id='.$map['id_tgis_map'].'&amp;action=edit_map">'.html_print_image('images/edit.svg', true, ['title' => __('Edit')]).'</a>'.'<a href="index.php?sec=godgismaps&amp;sec2=operation/gis_maps/gis_map&amp;map_id='.$map['id_tgis_map'].'&amp;action=delete_map" onclick="return confirmDelete();">'.html_print_image('images/delete.svg', true, ['title' => __('Delete'), 'class' => 'invert_filter main_menu_icon']).'</a>';
} }
array_push($table->data, $data); array_push($table->data, $data);
@ -213,12 +214,20 @@ if (!empty($table->data)) {
} }
if ($edit_gis_maps) { if ($edit_gis_maps) {
echo '<div class="action-buttons" style="width: '.$table->width.'">';
echo '<form action="index.php?sec=godgismaps&amp;sec2=godmode/gis_maps/configure_gis_map" method="post">'; echo '<form action="index.php?sec=godgismaps&amp;sec2=godmode/gis_maps/configure_gis_map" method="post">';
html_print_input_hidden('action', 'new_map'); html_print_input_hidden('action', 'new_map');
html_print_submit_button(__('Create'), '', false, 'class="sub next"'); $ActionButton = html_print_submit_button(
__('Create'),
'create',
false,
[
'class' => 'sub ok submitButton',
'icon' => 'next',
],
true
);
echo '<div class="action-buttons">'.html_print_action_buttons($ActionButton, ['type' => 'form_action'], true).'</div>';
echo '</form>'; echo '</form>';
echo '</div>';
} }
unset($table); unset($table);

View File

@ -175,9 +175,10 @@ if ($has_management_acl) {
$buttons['setup']['godmode'] = 1; $buttons['setup']['godmode'] = 1;
} }
// Header.
ui_print_standard_header( ui_print_standard_header(
__('Map').' &raquo; '.__('Map').'&nbsp;'.$map['map_name'], __('Map').': '.$map['map_name'],
'images/op_gis.png', 'images/op_snmp.png',
false, false,
'', '',
false, false,
@ -331,5 +332,8 @@ if ($layers != false) {
$(document).ready(function() { $(document).ready(function() {
var $map = $("#map"); var $map = $("#map");
$map.css("height", "calc(100vh - " + $map.offset().top + "px - 20px)"); $map.css("height", "calc(100vh - " + $map.offset().top + "px - 20px)");
$('#select2-show_status-container').parent().parent().parent().removeClass('select2');
$('#select2-refresh_time-container').parent().parent().parent().removeClass('select2');
}); });
</script> </script>

View File

@ -287,7 +287,7 @@ if ($pure === false) {
$class_nlink = 'network_link_min link-create-item'; $class_nlink = 'network_link_min link-create-item';
$class_odometer = 'odometer_min link-create-item'; $class_odometer = 'odometer_min link-create-item';
$class_basic_chart = 'basic_chart_min link-create-item'; $class_basic_chart = 'basic_chart_min link-create-item';
$class_delete = 'delete_item delete_min'; $class_delete = 'delete_item';
$class_copy = 'copy_item'; $class_copy = 'copy_item';
if ($config['style'] === 'pandora_black' && is_metaconsole() === false) { if ($config['style'] === 'pandora_black' && is_metaconsole() === false) {
$class_camera .= ' invert_filter'; $class_camera .= ' invert_filter';

View File

@ -3,7 +3,7 @@
# #
%define name pandorafms_console %define name pandorafms_console
%define version 7.0NG.769 %define version 7.0NG.769
%define release 230324 %define release 230327
# User and Group under which Apache is running # User and Group under which Apache is running
%define httpd_name httpd %define httpd_name httpd

View File

@ -3,7 +3,7 @@
# #
%define name pandorafms_console %define name pandorafms_console
%define version 7.0NG.769 %define version 7.0NG.769
%define release 230324 %define release 230327
# User and Group under which Apache is running # User and Group under which Apache is running
%define httpd_name httpd %define httpd_name httpd

View File

@ -3,7 +3,7 @@
# #
%define name pandorafms_console %define name pandorafms_console
%define version 7.0NG.769 %define version 7.0NG.769
%define release 230324 %define release 230327
%define httpd_name httpd %define httpd_name httpd
# User and Group under which Apache is running # User and Group under which Apache is running
%define httpd_name apache2 %define httpd_name apache2

View File

@ -143,7 +143,9 @@ html_print_action_buttons(
var buttonback = $('#button-submit').parent().html(); var buttonback = $('#button-submit').parent().html();
$('#button-submit').hide(); $('#button-submit').hide();
var buttonback = buttonback.replace('button-submit','button-submit_copy'); var buttonback = buttonback.replace('button-submit','button-submit_copy');
$('.action_buttons_right_content').parent().html(buttonnext+buttonback); var buttonalert = $('#button-add').parent().html();
var buttonalert = buttonalert.replace('button-add','button-add_copy');
$('.action_buttons_right_content').parent().html(buttonnext+buttonback+buttonalert);
var style = $('#principal_action_buttons').attr('style'); var style = $('#principal_action_buttons').attr('style');
$('#principal_action_buttons').attr('style',style+' justify-content: unset;'); $('#principal_action_buttons').attr('style',style+' justify-content: unset;');

View File

@ -27,12 +27,23 @@
*/ */
// Header. // Header.
\ui_print_page_header( ui_print_standard_header(
__('Monitoring').' &raquo; '.__('Clusters'), __('Cluster view'),
'images/chart.png', 'images/chart.png',
false, false,
'', '',
false true,
[],
[
[
'link' => '',
'label' => __('Monitoring'),
],
[
'link' => '',
'label' => __('Clusters'),
],
]
); );
if (empty($message) === false) { if (empty($message) === false) {

View File

@ -1,5 +1,5 @@
package: pandorafms-server package: pandorafms-server
Version: 7.0NG.769-230324 Version: 7.0NG.769-230327
Architecture: all Architecture: all
Priority: optional Priority: optional
Section: admin Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
pandora_version="7.0NG.769-230324" pandora_version="7.0NG.769-230327"
package_cpan=0 package_cpan=0
package_pandora=1 package_pandora=1

View File

@ -46,7 +46,7 @@ our @EXPORT = qw(
# version: Defines actual version of Pandora Server for this module only # version: Defines actual version of Pandora Server for this module only
my $pandora_version = "7.0NG.769"; my $pandora_version = "7.0NG.769";
my $pandora_build = "230324"; my $pandora_build = "230327";
our $VERSION = $pandora_version." ".$pandora_build; our $VERSION = $pandora_version." ".$pandora_build;
# Setup hash # Setup hash

View File

@ -34,7 +34,7 @@ our @ISA = qw(Exporter);
# version: Defines actual version of Pandora Server for this module only # version: Defines actual version of Pandora Server for this module only
my $pandora_version = "7.0NG.769"; my $pandora_version = "7.0NG.769";
my $pandora_build = "230324"; my $pandora_build = "230327";
our $VERSION = $pandora_version." ".$pandora_build; our $VERSION = $pandora_version." ".$pandora_build;
our %EXPORT_TAGS = ( 'all' => [ qw() ] ); our %EXPORT_TAGS = ( 'all' => [ qw() ] );

View File

@ -4,7 +4,7 @@
%global __os_install_post %{nil} %global __os_install_post %{nil}
%define name pandorafms_server %define name pandorafms_server
%define version 7.0NG.769 %define version 7.0NG.769
%define release 230324 %define release 230327
Summary: Pandora FMS Server Summary: Pandora FMS Server
Name: %{name} Name: %{name}

View File

@ -4,7 +4,7 @@
%global __os_install_post %{nil} %global __os_install_post %{nil}
%define name pandorafms_server %define name pandorafms_server
%define version 7.0NG.769 %define version 7.0NG.769
%define release 230324 %define release 230327
Summary: Pandora FMS Server Summary: Pandora FMS Server
Name: %{name} Name: %{name}

View File

@ -9,7 +9,7 @@
# ********************************************************************** # **********************************************************************
PI_VERSION="7.0NG.769" PI_VERSION="7.0NG.769"
PI_BUILD="230324" PI_BUILD="230327"
MODE=$1 MODE=$1
if [ $# -gt 1 ]; then if [ $# -gt 1 ]; then

View File

@ -35,7 +35,7 @@ use PandoraFMS::Config;
use PandoraFMS::DB; use PandoraFMS::DB;
# version: define current version # version: define current version
my $version = "7.0NG.769 Build 230324"; my $version = "7.0NG.769 Build 230327";
# Pandora server configuration # Pandora server configuration
my %conf; my %conf;

View File

@ -36,7 +36,7 @@ use Encode::Locale;
Encode::Locale::decode_argv; Encode::Locale::decode_argv;
# version: define current version # version: define current version
my $version = "7.0NG.769 Build 230324"; my $version = "7.0NG.769 Build 230327";
# save program name for logging # save program name for logging
my $progname = basename($0); my $progname = basename($0);

View File

@ -41,11 +41,11 @@
} }
.visual-console-item.is-editing:hover { .visual-console-item.is-editing:hover {
border-color: #82b92e; border-color: #2b2b2b;
} }
.visual-console-item.is-editing.is-selected { .visual-console-item.is-editing.is-selected {
border: 2px dashed #2b2b2b; border: 2px dashed #82b92e;
cursor: move; cursor: move;
z-index: 10; z-index: 10;
} }