Merge remote-tracking branch 'origin/develop' into ent-9662-Restyling-fuentes-colores-botones
Conflicts: pandora_console/general/login_page.php
This commit is contained in:
commit
dba1554d74
|
@ -1,5 +1,5 @@
|
|||
package: pandorafms-agent-unix
|
||||
Version: 7.0NG.769-230306
|
||||
Version: 7.0NG.769-230307
|
||||
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.769-230306"
|
||||
pandora_version="7.0NG.769-230307"
|
||||
|
||||
echo "Test if you has the tools for to make the packages."
|
||||
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
||||
|
|
|
@ -1023,7 +1023,7 @@ my $Sem = undef;
|
|||
my $ThreadSem = undef;
|
||||
|
||||
use constant AGENT_VERSION => '7.0NG.769';
|
||||
use constant AGENT_BUILD => '230306';
|
||||
use constant AGENT_BUILD => '230307';
|
||||
|
||||
# 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.769
|
||||
%define release 230306
|
||||
%define release 230307
|
||||
|
||||
Summary: Pandora FMS Linux agent, PERL version
|
||||
Name: %{name}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
%global __os_install_post %{nil}
|
||||
%define name pandorafms_agent_linux
|
||||
%define version 7.0NG.769
|
||||
%define release 230306
|
||||
%define release 230307
|
||||
|
||||
Summary: Pandora FMS Linux agent, PERL version
|
||||
Name: %{name}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
# **********************************************************************
|
||||
|
||||
PI_VERSION="7.0NG.769"
|
||||
PI_BUILD="230306"
|
||||
PI_BUILD="230307"
|
||||
OS_NAME=`uname -s`
|
||||
|
||||
FORCE=0
|
||||
|
|
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
|||
{}
|
||||
|
||||
Version
|
||||
{230306}
|
||||
{230307}
|
||||
|
||||
ViewReadme
|
||||
{Yes}
|
||||
|
|
|
@ -30,7 +30,7 @@ using namespace Pandora;
|
|||
using namespace Pandora_Strutils;
|
||||
|
||||
#define PATH_SIZE _MAX_PATH+1
|
||||
#define PANDORA_VERSION ("7.0NG.769 Build 230306")
|
||||
#define PANDORA_VERSION ("7.0NG.769 Build 230307")
|
||||
|
||||
string pandora_path;
|
||||
string pandora_dir;
|
||||
|
|
|
@ -11,7 +11,7 @@ BEGIN
|
|||
VALUE "LegalCopyright", "Artica ST"
|
||||
VALUE "OriginalFilename", "PandoraAgent.exe"
|
||||
VALUE "ProductName", "Pandora FMS Windows Agent"
|
||||
VALUE "ProductVersion", "(7.0NG.769(Build 230306))"
|
||||
VALUE "ProductVersion", "(7.0NG.769(Build 230307))"
|
||||
VALUE "FileVersion", "1.0.0.0"
|
||||
END
|
||||
END
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package: pandorafms-console
|
||||
Version: 7.0NG.769-230306
|
||||
Version: 7.0NG.769-230307
|
||||
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.769-230306"
|
||||
pandora_version="7.0NG.769-230307"
|
||||
|
||||
package_pear=0
|
||||
package_pandora=1
|
||||
|
|
|
@ -561,9 +561,36 @@ if (isset($correct_reset_pass_process)) {
|
|||
}
|
||||
|
||||
if (isset($login_failed)) {
|
||||
$nick = get_parameter_post('nick');
|
||||
$fails = db_get_value('failed_attempt', 'tusuario', 'id_user', $nick);
|
||||
$nick = io_safe_input(get_parameter_post('nick'));
|
||||
$user_in_db = db_get_row_filter(
|
||||
'tusuario',
|
||||
['id_user' => $nick],
|
||||
'*'
|
||||
);
|
||||
$fails = $user_in_db['failed_attempt'];
|
||||
// If user not exist, and attempts its enable, lets make array and fails attemps.
|
||||
if ($fails == false && $config['enable_pass_policy'] && $user_in_db === false) {
|
||||
$nick_array_error = json_decode(base64_decode($config['nicks_error']), true);
|
||||
$nick = strtolower($nick);
|
||||
if (isset($nick_array_error[$nick]) !== false) {
|
||||
$nick_array_error[$nick] += 1;
|
||||
} else {
|
||||
$nick_array_error[$nick] = 1;
|
||||
}
|
||||
|
||||
$fails = $nick_array_error[$nick];
|
||||
// Save or update the array.
|
||||
if ($config['nicks_error']) {
|
||||
config_update_value('nicks_error', base64_encode(json_encode($nick_array_error)));
|
||||
} else {
|
||||
config_create_value('nicks_error', base64_encode(json_encode($nick_array_error)));
|
||||
}
|
||||
} else {
|
||||
$fails = ++$fails;
|
||||
}
|
||||
|
||||
$attemps = ($config['number_attempts'] - $fails);
|
||||
$attemps = ($attemps < 0) ? 0 : $attemps;
|
||||
echo '<div id="login_failed" title="'.__('Login failed').'">';
|
||||
echo '<div class="content_alert">';
|
||||
echo '<div class="icon_message_alert">';
|
||||
|
@ -576,7 +603,12 @@ if (isset($login_failed)) {
|
|||
echo '</div>';
|
||||
if ($config['enable_pass_policy']) {
|
||||
echo '<div class="text_message_alert">';
|
||||
echo '<p><strong>Remaining attempts: '.$attemps.'</strong></p>';
|
||||
if ($attemps !== 0 && $user_in_db['login_blocked'] == 0) {
|
||||
echo '<p><strong>'.__('Remaining attempts: ').$attemps.'</strong></p>';
|
||||
} else {
|
||||
echo '<p><strong>'.__('User is blocked').'</strong></p>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
|
@ -873,7 +905,8 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', '
|
|||
resizable: true,
|
||||
draggable: true,
|
||||
modal: true,
|
||||
width: 528,
|
||||
height: 230,
|
||||
width: 530,
|
||||
overlay: {
|
||||
opacity: 0.5,
|
||||
background: "black"
|
||||
|
@ -886,7 +919,6 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', '
|
|||
$("#login_correct_pass").dialog('close');
|
||||
});
|
||||
});
|
||||
|
||||
$('#nick').focus();
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
/**
|
||||
* Pandora build version and version
|
||||
*/
|
||||
$build_version = 'PC230306';
|
||||
$build_version = 'PC230307';
|
||||
$pandora_version = 'v7.0NG.769';
|
||||
|
||||
// Do not overwrite default timezone set if defined.
|
||||
|
|
|
@ -97,6 +97,7 @@ if (empty($file) === true || empty($hash) === true || $hash !== md5($file_raw.$c
|
|||
header('Content-Length: '.filesize($downloadable_file));
|
||||
header('Content-Disposition: attachment; filename="'.basename($downloadable_file).'"');
|
||||
readfile($downloadable_file);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -131,7 +131,7 @@
|
|||
<div style='padding-bottom: 50px'>
|
||||
<?php
|
||||
$version = '7.0NG.769';
|
||||
$build = '230306';
|
||||
$build = '230307';
|
||||
$banner = "v$version Build $build";
|
||||
error_reporting(0);
|
||||
|
||||
|
|
|
@ -744,7 +744,7 @@ class Ui
|
|||
$dialogHtml .= "<div id='".$content_id."' class='".$content_class."' data-role='content'>\n";
|
||||
$dialogHtml .= $content_text;
|
||||
if ($button_close) {
|
||||
$dialogHtml .= "<a data-role='button' href='#main_page' id='".$dialog_id."-button_close'>";
|
||||
$dialogHtml .= "<a data-role='button' href='javascript:history.back()' id='".$dialog_id."-button_close'>";
|
||||
if (empty($button_text)) {
|
||||
$dialogHtml .= __('Close');
|
||||
} else {
|
||||
|
|
|
@ -349,11 +349,7 @@ class User
|
|||
if ($this->errorLogin) {
|
||||
$options['type'] = 'onStart';
|
||||
$options['title_text'] = __('Login Failed');
|
||||
if ($this->errorLogin !== false) {
|
||||
$options['content_text'] = $this->errorLogin;
|
||||
} else {
|
||||
$options['content_text'] = __('User not found in database or incorrect password.');
|
||||
}
|
||||
$options['content_text'] = __('User not found in database or incorrect password.');
|
||||
|
||||
$ui->addDialog($options);
|
||||
}
|
||||
|
@ -401,6 +397,7 @@ class User
|
|||
'value' => '',
|
||||
'placeholder' => __('password'),
|
||||
'label' => __('Password'),
|
||||
'required' => 'required',
|
||||
];
|
||||
$ui->formAddInputPassword($options);
|
||||
$options = [
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.769
|
||||
%define release 230306
|
||||
%define release 230307
|
||||
|
||||
# User and Group under which Apache is running
|
||||
%define httpd_name httpd
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.769
|
||||
%define release 230306
|
||||
%define release 230307
|
||||
|
||||
# User and Group under which Apache is running
|
||||
%define httpd_name httpd
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.769
|
||||
%define release 230306
|
||||
%define release 230307
|
||||
%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.769-230306
|
||||
Version: 7.0NG.769-230307
|
||||
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.769-230306"
|
||||
pandora_version="7.0NG.769-230307"
|
||||
|
||||
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.769";
|
||||
my $pandora_build = "230306";
|
||||
my $pandora_build = "230307";
|
||||
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.769";
|
||||
my $pandora_build = "230306";
|
||||
my $pandora_build = "230307";
|
||||
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.769
|
||||
%define release 230306
|
||||
%define release 230307
|
||||
|
||||
Summary: Pandora FMS Server
|
||||
Name: %{name}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
%global __os_install_post %{nil}
|
||||
%define name pandorafms_server
|
||||
%define version 7.0NG.769
|
||||
%define release 230306
|
||||
%define release 230307
|
||||
|
||||
Summary: Pandora FMS Server
|
||||
Name: %{name}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
# **********************************************************************
|
||||
|
||||
PI_VERSION="7.0NG.769"
|
||||
PI_BUILD="230306"
|
||||
PI_BUILD="230307"
|
||||
|
||||
MODE=$1
|
||||
if [ $# -gt 1 ]; then
|
||||
|
|
|
@ -35,7 +35,7 @@ use PandoraFMS::Config;
|
|||
use PandoraFMS::DB;
|
||||
|
||||
# version: define current version
|
||||
my $version = "7.0NG.769 Build 230306";
|
||||
my $version = "7.0NG.769 Build 230307";
|
||||
|
||||
# Pandora server configuration
|
||||
my %conf;
|
||||
|
|
|
@ -36,7 +36,7 @@ use Encode::Locale;
|
|||
Encode::Locale::decode_argv;
|
||||
|
||||
# version: define current version
|
||||
my $version = "7.0NG.769 Build 230306";
|
||||
my $version = "7.0NG.769 Build 230307";
|
||||
|
||||
# save program name for logging
|
||||
my $progname = basename($0);
|
||||
|
|
Loading…
Reference in New Issue