#12037 Resolve conflicts
This commit is contained in:
commit
91aee79ab2
|
@ -1,5 +1,5 @@
|
|||
package: pandorafms-agent-unix
|
||||
Version: 7.0NG.773.3-230911
|
||||
Version: 7.0NG.773.3-230912
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Section: admin
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
pandora_version="7.0NG.773.3-230911"
|
||||
pandora_version="7.0NG.773.3-230912"
|
||||
|
||||
echo "Test if you has the tools for to make the packages."
|
||||
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
||||
|
|
|
@ -1031,7 +1031,7 @@ my $Sem = undef;
|
|||
my $ThreadSem = undef;
|
||||
|
||||
use constant AGENT_VERSION => '7.0NG.773.3';
|
||||
use constant AGENT_BUILD => '230911';
|
||||
use constant AGENT_BUILD => '230912';
|
||||
|
||||
# Agent log default file size maximum and instances
|
||||
use constant DEFAULT_MAX_LOG_SIZE => 600000;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
%global __os_install_post %{nil}
|
||||
%define name pandorafms_agent_linux
|
||||
%define version 7.0NG.773.3
|
||||
%define release 230911
|
||||
%define release 230912
|
||||
|
||||
Summary: Pandora FMS Linux agent, PERL version
|
||||
Name: %{name}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%define name pandorafms_agent_linux_bin
|
||||
%define source_name pandorafms_agent_linux
|
||||
%define version 7.0NG.773.3
|
||||
%define release 230911
|
||||
%define release 230912
|
||||
|
||||
Summary: Pandora FMS Linux agent, binary version
|
||||
Name: %{name}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
%global __os_install_post %{nil}
|
||||
%define name pandorafms_agent_linux
|
||||
%define version 7.0NG.773.3
|
||||
%define release 230911
|
||||
%define release 230912
|
||||
|
||||
Summary: Pandora FMS Linux agent, PERL version
|
||||
Name: %{name}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
# **********************************************************************
|
||||
|
||||
PI_VERSION="7.0NG.773.3"
|
||||
PI_BUILD="230911"
|
||||
PI_BUILD="230912"
|
||||
OS_NAME=`uname -s`
|
||||
|
||||
FORCE=0
|
||||
|
|
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
|||
{}
|
||||
|
||||
Version
|
||||
{230911}
|
||||
{230912}
|
||||
|
||||
ViewReadme
|
||||
{Yes}
|
||||
|
|
|
@ -30,7 +30,7 @@ using namespace Pandora;
|
|||
using namespace Pandora_Strutils;
|
||||
|
||||
#define PATH_SIZE _MAX_PATH+1
|
||||
#define PANDORA_VERSION ("7.0NG.773.3 Build 230911")
|
||||
#define PANDORA_VERSION ("7.0NG.773.3 Build 230912")
|
||||
|
||||
string pandora_path;
|
||||
string pandora_dir;
|
||||
|
|
|
@ -11,7 +11,7 @@ BEGIN
|
|||
VALUE "LegalCopyright", "Pandora FMS"
|
||||
VALUE "OriginalFilename", "PandoraAgent.exe"
|
||||
VALUE "ProductName", "Pandora FMS Windows Agent"
|
||||
VALUE "ProductVersion", "(7.0NG.773.3(Build 230911))"
|
||||
VALUE "ProductVersion", "(7.0NG.773.3(Build 230912))"
|
||||
VALUE "FileVersion", "1.0.0.0"
|
||||
END
|
||||
END
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package: pandorafms-console
|
||||
Version: 7.0NG.773.3-230911
|
||||
Version: 7.0NG.773.3-230912
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Section: admin
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
pandora_version="7.0NG.773.3-230911"
|
||||
pandora_version="7.0NG.773.3-230912"
|
||||
|
||||
package_pear=0
|
||||
package_pandora=1
|
||||
|
|
|
@ -1025,6 +1025,27 @@ $table_font->data[$row][] = html_print_label_input_block(
|
|||
);
|
||||
$row++;
|
||||
|
||||
$table_font->data[$row][] = html_print_label_input_block(
|
||||
__('Truncate agent text at end'),
|
||||
html_print_checkbox_switch(
|
||||
'truncate_agent_at_end',
|
||||
1,
|
||||
$config['truncate_agent_at_end'],
|
||||
true
|
||||
)
|
||||
);
|
||||
|
||||
$table_font->data[$row][] = html_print_label_input_block(
|
||||
__('Truncate module text at end'),
|
||||
html_print_checkbox_switch(
|
||||
'truncate_module_at_end',
|
||||
1,
|
||||
$config['truncate_module_at_end'],
|
||||
true
|
||||
)
|
||||
);
|
||||
$row++;
|
||||
|
||||
$table_font->data[$row][] = html_print_label_input_block(
|
||||
__('Agent size text'),
|
||||
html_print_div(
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
/**
|
||||
* Pandora build version and version
|
||||
*/
|
||||
$build_version = 'PC230911';
|
||||
$build_version = 'PC230912';
|
||||
$pandora_version = 'v7.0NG.773.3';
|
||||
|
||||
// Do not overwrite default timezone set if defined.
|
||||
|
|
|
@ -1288,6 +1288,10 @@ function config_update_config()
|
|||
$error_update[] = __('Default line menu items for the Services');
|
||||
}
|
||||
|
||||
if (config_update_value('truncate_agent_at_end', get_parameter('truncate_agent_at_end'), true) === false) {
|
||||
$error_update[] = __('Truncate agent text at end');
|
||||
}
|
||||
|
||||
if (config_update_value('agent_size_text_small', get_parameter('agent_size_text_small'), true) === false) {
|
||||
$error_update[] = __('Agent size text');
|
||||
}
|
||||
|
@ -1296,6 +1300,10 @@ function config_update_config()
|
|||
$error_update[] = __('Agent size text');
|
||||
}
|
||||
|
||||
if (config_update_value('truncate_module_at_end', get_parameter('truncate_module_at_end'), true) === false) {
|
||||
$error_update[] = __('Truncate module text at end');
|
||||
}
|
||||
|
||||
if (config_update_value('module_size_text_small', get_parameter('module_size_text_small'), true) === false) {
|
||||
$error_update[] = __('Module size text');
|
||||
}
|
||||
|
@ -3526,6 +3534,10 @@ function config_process_config()
|
|||
config_update_value('display_item_frame', 1);
|
||||
}
|
||||
|
||||
if (!isset($config['truncate_agent_at_end'])) {
|
||||
config_update_value('truncate_agent_at_end', 0);
|
||||
}
|
||||
|
||||
if (!isset($config['agent_size_text_small'])) {
|
||||
config_update_value('agent_size_text_small', 18);
|
||||
}
|
||||
|
@ -3534,6 +3546,10 @@ function config_process_config()
|
|||
config_update_value('agent_size_text_medium', 50);
|
||||
}
|
||||
|
||||
if (!isset($config['truncate_module_at_end'])) {
|
||||
config_update_value('truncate_module_at_end', 0);
|
||||
}
|
||||
|
||||
if (!isset($config['module_size_text_small'])) {
|
||||
config_update_value('module_size_text_small', 25);
|
||||
}
|
||||
|
|
|
@ -701,6 +701,7 @@ function modules_update_agent_module(
|
|||
}
|
||||
|
||||
// Disable action requires a special function
|
||||
$result = false;
|
||||
if (isset($values['disabled'])) {
|
||||
$result_disable = modules_change_disabled($id, $values['disabled']);
|
||||
|
||||
|
@ -709,7 +710,9 @@ function modules_update_agent_module(
|
|||
$result_disable = true;
|
||||
}
|
||||
|
||||
$result = @db_process_sql_update('tagente_modulo', $values, $where);
|
||||
if (empty($values) === false) {
|
||||
$result = @db_process_sql_update('tagente_modulo', $values, $where);
|
||||
}
|
||||
|
||||
if ($result == false) {
|
||||
if ($result_disable === ERR_GENERIC) {
|
||||
|
|
|
@ -99,23 +99,27 @@ function ui_print_truncate_text(
|
|||
$forced_title=false
|
||||
) {
|
||||
global $config;
|
||||
|
||||
$truncate_at_end = false;
|
||||
if (is_string($numChars)) {
|
||||
switch ($numChars) {
|
||||
case 'agent_small':
|
||||
$numChars = $config['agent_size_text_small'];
|
||||
$truncate_at_end = (bool) $config['truncate_agent_at_end'];
|
||||
break;
|
||||
|
||||
case 'agent_medium':
|
||||
$numChars = $config['agent_size_text_medium'];
|
||||
$truncate_at_end = (bool) $config['truncate_agent_at_end'];
|
||||
break;
|
||||
|
||||
case 'module_small':
|
||||
$numChars = $config['module_size_text_small'];
|
||||
$truncate_at_end = (bool) $config['truncate_module_at_end'];
|
||||
break;
|
||||
|
||||
case 'module_medium':
|
||||
$numChars = $config['module_size_text_medium'];
|
||||
$truncate_at_end = (bool) $config['truncate_module_at_end'];
|
||||
break;
|
||||
|
||||
case 'description':
|
||||
|
@ -147,27 +151,35 @@ function ui_print_truncate_text(
|
|||
// '/2' because [...] is in the middle of the word.
|
||||
$half_length = intval(($numChars - 3) / 2);
|
||||
|
||||
// Depending on the strange behavior of mb_strimwidth() itself,
|
||||
// the 3rd parameter is not to be $numChars but the length of
|
||||
// original text (just means 'large enough').
|
||||
$truncateText2 = mb_strimwidth(
|
||||
$text_html_decoded,
|
||||
(mb_strlen($text_html_decoded, 'UTF-8') - $half_length),
|
||||
mb_strlen($text_html_decoded, 'UTF-8'),
|
||||
'',
|
||||
'UTF-8'
|
||||
);
|
||||
if ($truncate_at_end === true) {
|
||||
// Recover the html entities to avoid XSS attacks.
|
||||
$truncateText = ($text_has_entities) ? io_safe_input(substr($text_html_decoded, 0, $numChars)) : substr($text_html_decoded, 0, $numChars);
|
||||
if (strlen($text_html_decoded) > $numChars) {
|
||||
$truncateText .= '...';
|
||||
}
|
||||
} else {
|
||||
// Depending on the strange behavior of mb_strimwidth() itself,
|
||||
// the 3rd parameter is not to be $numChars but the length of
|
||||
// original text (just means 'large enough').
|
||||
$truncateText2 = mb_strimwidth(
|
||||
$text_html_decoded,
|
||||
(mb_strlen($text_html_decoded, 'UTF-8') - $half_length),
|
||||
mb_strlen($text_html_decoded, 'UTF-8'),
|
||||
'',
|
||||
'UTF-8'
|
||||
);
|
||||
|
||||
$truncateText = mb_strimwidth(
|
||||
$text_html_decoded,
|
||||
0,
|
||||
($numChars - $half_length),
|
||||
'',
|
||||
'UTF-8'
|
||||
);
|
||||
$truncateText = mb_strimwidth(
|
||||
$text_html_decoded,
|
||||
0,
|
||||
($numChars - $half_length),
|
||||
'',
|
||||
'UTF-8'
|
||||
);
|
||||
|
||||
// Recover the html entities to avoid XSS attacks.
|
||||
$truncateText = ($text_has_entities) ? io_safe_input($truncateText).$suffix.io_safe_input($truncateText2) : $truncateText.$suffix.$truncateText2;
|
||||
// Recover the html entities to avoid XSS attacks.
|
||||
$truncateText = ($text_has_entities) ? io_safe_input($truncateText).$suffix.io_safe_input($truncateText2) : $truncateText.$suffix.$truncateText2;
|
||||
}
|
||||
|
||||
if ($showTextInTitle) {
|
||||
if ($style === null) {
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
<div style='padding-bottom: 50px'>
|
||||
<?php
|
||||
$version = '7.0NG.773.3';
|
||||
$build = '230911';
|
||||
$build = '230912';
|
||||
$banner = "v$version Build $build";
|
||||
error_reporting(0);
|
||||
|
||||
|
|
|
@ -534,6 +534,19 @@ if (is_ajax() === true) {
|
|||
);
|
||||
}
|
||||
|
||||
if (empty($tmp->module_name) === false) {
|
||||
$tmp->module_name = ui_print_truncate_text(
|
||||
$tmp->module_name,
|
||||
'module_medium',
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
'…',
|
||||
true,
|
||||
true,
|
||||
);
|
||||
}
|
||||
|
||||
if (empty($tmp->comments) === false) {
|
||||
$tmp->comments = ui_print_comments($tmp->comments, 20);
|
||||
}
|
||||
|
|
|
@ -216,7 +216,7 @@ if (check_acl_restricted_all($config['id_user'], $report_group, 'RW')) {
|
|||
$options['view'] = [
|
||||
'active' => true,
|
||||
'text' => '<a href="index.php?sec=reporting&sec2=operation/reporting/reporting_viewer&id='.$id_report.'&pure='.$pure.'">'.html_print_image(
|
||||
'images/eye.png',
|
||||
'images/see-details@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('View report'),
|
||||
|
|
|
@ -15,6 +15,7 @@ global $config;
|
|||
|
||||
enterprise_include_once('include/functions_policies.php');
|
||||
require_once $config['homedir'].'/include/functions_users.php';
|
||||
require_once $config['homedir'].'/include/functions_reporting.php';
|
||||
|
||||
$searchAgents = get_parameter('search_agents', 0);
|
||||
$stringSearchSQL = get_parameter('stringSearchSQL');
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.773.3
|
||||
%define release 230911
|
||||
%define release 230912
|
||||
|
||||
# User and Group under which Apache is running
|
||||
%define httpd_name httpd
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.773.3
|
||||
%define release 230911
|
||||
%define release 230912
|
||||
|
||||
# User and Group under which Apache is running
|
||||
%define httpd_name httpd
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.773.3
|
||||
%define release 230911
|
||||
%define release 230912
|
||||
%define httpd_name httpd
|
||||
# User and Group under which Apache is running
|
||||
%define httpd_name apache2
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package: pandorafms-server
|
||||
Version: 7.0NG.773.3-230911
|
||||
Version: 7.0NG.773.3-230912
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Section: admin
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
pandora_version="7.0NG.773.3-230911"
|
||||
pandora_version="7.0NG.773.3-230912"
|
||||
|
||||
package_cpan=0
|
||||
package_pandora=1
|
||||
|
|
|
@ -46,7 +46,7 @@ our @EXPORT = qw(
|
|||
|
||||
# version: Defines actual version of Pandora Server for this module only
|
||||
my $pandora_version = "7.0NG.773.3";
|
||||
my $pandora_build = "230911";
|
||||
my $pandora_build = "230912";
|
||||
our $VERSION = $pandora_version." ".$pandora_build;
|
||||
|
||||
# Setup hash
|
||||
|
|
|
@ -34,7 +34,7 @@ our @ISA = qw(Exporter);
|
|||
|
||||
# version: Defines actual version of Pandora Server for this module only
|
||||
my $pandora_version = "7.0NG.773.3";
|
||||
my $pandora_build = "230911";
|
||||
my $pandora_build = "230912";
|
||||
our $VERSION = $pandora_version." ".$pandora_build;
|
||||
|
||||
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
%global __os_install_post %{nil}
|
||||
%define name pandorafms_server
|
||||
%define version 7.0NG.773.3
|
||||
%define release 230911
|
||||
%define release 230912
|
||||
|
||||
Summary: Pandora FMS Server
|
||||
Name: %{name}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
%global __os_install_post %{nil}
|
||||
%define name pandorafms_server
|
||||
%define version 7.0NG.773.3
|
||||
%define release 230911
|
||||
%define release 230912
|
||||
|
||||
Summary: Pandora FMS Server
|
||||
Name: %{name}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
# **********************************************************************
|
||||
|
||||
PI_VERSION="7.0NG.773.3"
|
||||
PI_BUILD="230911"
|
||||
PI_BUILD="230912"
|
||||
|
||||
MODE=$1
|
||||
if [ $# -gt 1 ]; then
|
||||
|
|
|
@ -35,7 +35,7 @@ use PandoraFMS::Config;
|
|||
use PandoraFMS::DB;
|
||||
|
||||
# version: define current version
|
||||
my $version = "7.0NG.773.3 Build 230911";
|
||||
my $version = "7.0NG.773.3 Build 230912";
|
||||
|
||||
# Pandora server configuration
|
||||
my %conf;
|
||||
|
|
|
@ -36,7 +36,7 @@ use Encode::Locale;
|
|||
Encode::Locale::decode_argv;
|
||||
|
||||
# version: define current version
|
||||
my $version = "7.0NG.773.3 Build 230911";
|
||||
my $version = "7.0NG.773.3 Build 230912";
|
||||
|
||||
# save program name for logging
|
||||
my $progname = basename($0);
|
||||
|
|
Loading…
Reference in New Issue