HEX
Server: Apache/2.4.6
System: Linux l2webhost 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: theparlor (1016)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //usr/libexec/usermin/postgresql/login.cgi
#!/usr/bin/perl
# login.cgi
# Save PostgreSQL login and password

require './postgresql-lib.pl';
&ReadParse();
&error_setup($text{'login_err'});
$in{'login'} || &error($text{'login_elogin'});
$postgres_login = $userconfig{'login'} = $in{'login'};
$postgres_pass = $userconfig{'pass'} = $in{'pass'};
if (&is_postgresql_running() == -1) {
	&error($text{'login_epass'});
	}
&write_file("$user_module_config_directory/config", \%userconfig);
&redirect("");