| Server IP : 104.21.25.180 / Your IP : 162.159.115.42 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/mysql/ |
Upload File : |
#!/usr/bin/perl
# login.cgi
# Save MySQL login and password
require './mysql-lib.pl';
&ReadParse();
&error_setup($text{'login_err'});
$access{'user'} || !$access{'noconfig'} || &error($text{'login_ecannot'});
$in{'login'} || &error($text{'login_elogin'});
$mysql_login = $config{'login'} = $in{'login'};
$mysql_pass = $config{'pass'} = $in{'pass'};
$in{'force'} && force_set_mysql_admin_pass($mysql_login, $mysql_pass);
$authstr = &make_authstr();
if (&is_mysql_running() == -1) {
&error($text{'login_epass'});
}
if ($access{'user'}) {
# Update this user's ACL
$access{'user'} = $in{'login'};
$access{'pass'} = $in{'pass'};
&save_module_acl(\%access);
}
else {
# Update global login
&write_file("$module_config_directory/config", \%config);
chmod(0700, "$module_config_directory/config");
}
&redirect("");