| Server IP : 104.21.25.180 / Your IP : 104.23.197.123 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/at/ |
Upload File : |
#!/usr/bin/perl
# Update allowed or denied At users
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
our (%access, %text, %in);
require './at-lib.pl';
ReadParse();
&error_setup($text{'allow_err'});
$access{'allow'} || &error($text{'allow_ecannot'});
if ($in{'amode'} == 0) {
&save_allowed();
&save_denied();
}
elsif ($in{'amode'} == 1) {
my @users = split(/\s+/, $in{'ausers'});
@users || &error($text{'allow_eusers'});
&save_allowed(@users);
&save_denied();
}
elsif ($in{'amode'} == 2) {
my @users = split(/\s+/, $in{'ausers'});
@users || &error($text{'allow_eusers'});
&save_allowed();
&save_denied(@users);
}
&webmin_log("allow");
&redirect("");