mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
strict/warnings compliance
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
#!/usr/local/bin/perl
|
||||
# Write an actions log for a login
|
||||
# Write an actions log for a failed login
|
||||
|
||||
BEGIN { push(@INC, ".."); };
|
||||
use strict;
|
||||
use warnings;
|
||||
use WebminCore;
|
||||
|
||||
&init_config();
|
||||
($username, $sid, $remoteip, $localip) = @ARGV;
|
||||
if ($username && $sid && $remoteip) {
|
||||
our ($remote_user);
|
||||
|
||||
my ($username, $reason, $remoteip, $localip) = @ARGV;
|
||||
if ($username && $reason && $remoteip) {
|
||||
$WebminCore::remote_user = $remote_user = $username;
|
||||
$main::session_id = $sid;
|
||||
$0 = "miniserv.pl";
|
||||
&webmin_log("login", undef, undef, undef, "global", undef,
|
||||
&webmin_log("failed", undef, $reason, undef, "global", undef,
|
||||
undef, $remoteip);
|
||||
}
|
||||
|
||||
@@ -2,10 +2,13 @@
|
||||
# Write an actions log for a login
|
||||
|
||||
BEGIN { push(@INC, ".."); };
|
||||
use strict;
|
||||
use warnings;
|
||||
use WebminCore;
|
||||
our ($remote_user);
|
||||
|
||||
&init_config();
|
||||
($username, $sid, $remoteip, $localip) = @ARGV;
|
||||
my ($username, $sid, $remoteip, $localip) = @ARGV;
|
||||
if ($username && $sid && $remoteip) {
|
||||
$WebminCore::remote_user = $remote_user = $username;
|
||||
$main::session_id = $sid;
|
||||
|
||||
@@ -2,10 +2,13 @@
|
||||
# Write an actions log for a logout
|
||||
|
||||
BEGIN { push(@INC, ".."); };
|
||||
use strict;
|
||||
use warnings;
|
||||
use WebminCore;
|
||||
our ($remote_user);
|
||||
|
||||
&init_config();
|
||||
($username, $sid, $remoteip, $remoteip) = @ARGV;
|
||||
my ($username, $sid, $remoteip, $localip) = @ARGV;
|
||||
if ($username && $sid && $remoteip) {
|
||||
$WebminCore::remote_user = $remote_user = $username;
|
||||
$main::session_id = $sid;
|
||||
|
||||
Reference in New Issue
Block a user