Handle hostnames with upper-case letters
[webmin.git] / pptp-client / edit_opts.cgi
1 #!/usr/local/bin/perl
2 # edit_opts.cgi
3 # Display PPP options for all connections
4
5 require './pptp-client-lib.pl';
6 &ui_print_header(undef, $text{'opts_title'}, "");
7
8 print &text('opts_desc', "<tt>$config{'pptp_options'}</tt>"),"<br>\n";
9 @opts = &parse_ppp_options($config{'pptp_options'});
10
11 print "<form action=save_opts.cgi method=post>\n";
12 print "<table border width=100%>\n";
13 print "<tr $tb> <td><b>$text{'opts_header'}</b></td> </tr>\n";
14 print "<tr $cb> <td><table width=100%>\n";
15
16 $mtu = &find("mtu", \@opts);
17 printf "<tr> <td><b>$text{'opts_mtu'}</b></td> <td>\n";
18 printf "<input type=radio name=mtu_def value=1 %s> %s\n",
19         $mtu ? "" : "checked", $text{'default'};
20 printf "<input type=radio name=mtu_def value=0 %s>\n",
21         $mtu ? "checked" : "";
22 print "<input name=mtu size=6 value='$mtu->{'value'}'> bytes</td>\n";
23
24 $mru = &find("mru", \@opts);
25 printf "<td><b>$text{'opts_mru'}</b></td> <td>\n";
26 printf "<input type=radio name=mru_def value=1 %s> %s\n",
27         $mru ? "" : "checked", $text{'default'};
28 printf "<input type=radio name=mru_def value=0 %s>\n",
29         $mru ? "checked" : "";
30 print "<input name=mru size=6 value='$mru->{'value'}'> bytes</td> </tr>\n";
31
32 print "<tr> <td colspan=4><hr></td> </tr>\n";
33 print "<tr> <td colspan=4 align=center>$text{'opts_msdesc'}</td> </tr>\n";
34
35 # Show MPPE options
36 &mppe_options_form(\@opts);
37
38 print "</table></td></tr></table>\n";
39 print "<input type=submit value='$text{'save'}'></form>\n";
40
41 &ui_print_footer("", $text{'index_return'});
42