Make make_dir really set permissions
[webmin.git] / password_form.cgi
1 #!/usr/local/bin/perl
2 # password_form.cgi
3 # Display the form that allows users to change their passwords at login time
4
5 $ENV{'MINISERV_INTERNAL'} || die "Can only be called by miniserv.pl";
6 require './web-lib.pl';
7 &init_config();
8 &ReadParse();
9 &header(undef, undef, undef, undef, 1, 1);
10
11 print "<center>\n";
12 print "<h3>$text{'password_expired'}</h3><p>\n";
13
14 print "$text{'password_prefix'}\n";
15 print "<form action=$gconfig{'webprefix'}/password_change.cgi method=post>\n";
16 print "<input type=hidden name=user value='",&html_escape($in{'user'}),"'>\n";
17 print "<input type=hidden name=pam value='",&html_escape($in{'pam'}),"'>\n";
18
19 print "<table border width=40%>\n";
20 print "<tr $tb> <td><b>$text{'password_header'}</b></td> </tr>\n";
21 print "<tr $cb> <td align=center><table cellpadding=3>\n";
22
23 print "<tr> <td><b>$text{'password_user'}</b></td>\n";
24 print "<td><tt>",&html_escape($in{'user'}),"</tt></td> </tr>\n";
25
26 print "<tr> <td><b>$text{'password_old'}</b></td>\n";
27 print "<td><input name=old size=20 type=password></td> </tr>\n";
28
29 print "<tr> <td><b>$text{'password_new1'}</b></td>\n";
30 print "<td><input name=new1 size=20 type=password></td> </tr>\n";
31 print "<tr> <td><b>$text{'password_new2'}</b></td>\n";
32 print "<td><input name=new2 size=20 type=password></td> </tr>\n";
33
34 print "<tr> <td colspan=2 align=center><input type=submit ",
35       "value='$text{'password_ok'}'>\n";
36 print "<input type=reset value='$text{'password_clear'}'><br>\n";
37 print "</td> </tr>\n";
38 print "</table></td></tr></table><p>\n";
39 print "<hr>\n";
40 print "</form></center>\n";
41 print "$text{'password_postfix'}\n";
42 &footer();
43