#!/usr/bin/perl # edit_conf.cgi # Display PPTP server options require './pptp-server-lib.pl'; $access{'conf'} || &error($text{'conf_ecannot'}); &ui_print_header(undef, $text{'conf_title'}, "", "conf"); # Show actual options $conf = &get_config(); print "<form action=save_conf.cgi method=post>\n"; print "<table border width=100%>\n"; print "<tr $tb> <td><b>$text{'conf_header'}</b></td> </tr>\n"; print "<tr $cb> <td><table width=100%>\n"; # Maximum PPP speed $speed = &find_conf("speed", $conf); print "<tr> <td><b>$text{'conf_speed'}</b></td> <td>\n"; printf "<input type=radio name=speed_def value=1 %s> %s\n", $speed ? "" : "checked", $text{'default'}; printf "<input type=radio name=speed_def value=0 %s>\n", $speed ? "checked" : ""; printf "<input name=speed size=8 value='%s'> %s</td>\n", $speed, $text{'conf_baud'}; # Listen address $listen = &find_conf("listen", $conf); print "<td><b>$text{'conf_listen'}</b></td> <td>\n"; printf "<input type=radio name=listen_def value=1 %s> %s\n", $listen ? "" : "checked", $text{'conf_all'}; printf "<input type=radio name=listen_def value=0 %s>\n", $listen ? "checked" : ""; printf "<input name=listen size=15 value='%s'></td> </tr>\n", $listen; # PPP options file $option = &find_conf("option", $conf); $mode = $option eq $options_pptp ? 1 : $option ? 2 : 0; print "<td><b>$text{'conf_option'}</b></td> <td colspan=3>\n"; printf "<input type=radio name=mode value=0 %s> %s\n", $mode == 0 ? "checked" : "", $text{'conf_mode0'}; printf "<input type=radio name=mode value=1 %s> %s\n", $mode == 1 ? "checked" : "", $text{'conf_mode1'}; printf "<input type=radio name=mode value=2 %s> %s\n", $mode == 2 ? "checked" : "", $text{'conf_mode2'}; printf "<input name=option size=25 value='%s'> %s</td> </tr>\n", $mode == 2 ? $option : "", &file_chooser_button("option"); # Local IP ranges &ip_table("localip"); # Remote IP ranges &ip_table("remoteip"); # IPX networks $ipxnets = &find_conf("ipxnets", $conf); ($from, $to) = split(/-/, $ipxnets); print "<td><b>$text{'conf_ipxnets'}</b></td> <td colspan=3>\n"; printf "<input type=radio name=ipxnets_def value=1 %s> %s\n", $ipxnets ? "" : "checked", $text{'conf_all'}; printf "<input type=radio name=ipxnets_def value=0 %s>\n", $ipxnets ? "checked" : ""; printf "<b>%s</b> <input name=from size=8 value='%s'>\n", $text{'conf_from'}, $from; printf "<b>%s</b> <input name=to size=8 value='%s'>\n", $text{'conf_to'}, $from; print "</td> </tr>\n"; print "</table></td></tr></table>\n"; print "<input type=submit value='$text{'save'}'></form>\n"; &ui_print_footer("", $text{'index_return'}); sub ip_table { local @ips = split(/,/, &find_conf($_[0], $conf)); print "<tr> <td valign=top><b>",$text{'conf_'.$_[0]}, "</b></td> <td colspan=2>\n"; print "<textarea name=$_[0] rows=3 cols=50>", join("\n", @ips),"</textarea>\n"; print "</td>\n"; if ($_[0] eq "localip") { print "<td rowspan=2 valign=top>$text{'conf_ipdesc'}</td>\n"; } print "</tr>\n"; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
help | Folder | 0755 |
|
|
images | Folder | 0755 |
|
|
lang | Folder | 0755 |
|
|
CHANGELOG | File | 213 B | 0644 |
|
acl_security.pl | File | 521 B | 0755 |
|
apply.cgi | File | 283 B | 0755 |
|
backup_config.pl | File | 743 B | 0755 |
|
config | File | 148 B | 0644 |
|
config-debian-linux | File | 254 B | 0644 |
|
config-mandrake-linux | File | 206 B | 0644 |
|
config-open-linux | File | 224 B | 0644 |
|
config-openSUSE-Linux-15.0-ALL | File | 210 B | 0644 |
|
config-suse-linux | File | 214 B | 0644 |
|
config-syno-linux | File | 148 B | 0644 |
|
config-trustix-linux | File | 214 B | 0644 |
|
config-united-linux | File | 214 B | 0644 |
|
config.info | File | 445 B | 0644 |
|
config.info.ca | File | 509 B | 0644 |
|
config.info.de | File | 501 B | 0644 |
|
config.info.es | File | 479 B | 0644 |
|
config.info.fr | File | 0 B | 0644 |
|
config.info.nl | File | 504 B | 0644 |
|
config.info.no | File | 483 B | 0644 |
|
config.info.pt_BR | File | 528 B | 0644 |
|
defaultacl | File | 50 B | 0644 |
|
delete_secrets.cgi | File | 524 B | 0755 |
|
disc.cgi | File | 507 B | 0755 |
|
edit_conf.cgi | File | 2.9 KB | 0755 |
|
edit_options.cgi | File | 4.44 KB | 0755 |
|
edit_secret.cgi | File | 2.99 KB | 0755 |
|
index.cgi | File | 2.72 KB | 0755 |
|
install_check.pl | File | 441 B | 0755 |
|
list_conns.cgi | File | 1.1 KB | 0755 |
|
list_secrets.cgi | File | 1.76 KB | 0755 |
|
log_parser.pl | File | 479 B | 0755 |
|
module.info | File | 216 B | 0644 |
|
module.info.af | File | 0 B | 0644 |
|
module.info.af.auto | File | 138 B | 0644 |
|
module.info.ar | File | 0 B | 0644 |
|
module.info.ar.auto | File | 188 B | 0644 |
|
module.info.be | File | 0 B | 0644 |
|
module.info.be.auto | File | 190 B | 0644 |
|
module.info.bg | File | 0 B | 0644 |
|
module.info.bg.auto | File | 238 B | 0644 |
|
module.info.ca | File | 151 B | 0644 |
|
module.info.ca.auto | File | 14 B | 0644 |
|
module.info.cs | File | 24 B | 0644 |
|
module.info.cs.auto | File | 135 B | 0644 |
|
module.info.da | File | 0 B | 0644 |
|
module.info.da.auto | File | 155 B | 0644 |
|
module.info.de | File | 0 B | 0644 |
|
module.info.de.auto | File | 168 B | 0644 |
|
module.info.el | File | 0 B | 0644 |
|
module.info.el.auto | File | 259 B | 0644 |
|
module.info.es | File | 26 B | 0644 |
|
module.info.es.auto | File | 133 B | 0644 |
|
module.info.eu | File | 0 B | 0644 |
|
module.info.eu.auto | File | 152 B | 0644 |
|
module.info.fa | File | 0 B | 0644 |
|
module.info.fa.auto | File | 233 B | 0644 |
|
module.info.fi | File | 0 B | 0644 |
|
module.info.fi.auto | File | 160 B | 0644 |
|
module.info.fr | File | 0 B | 0644 |
|
module.info.fr.auto | File | 167 B | 0644 |
|
module.info.he | File | 0 B | 0644 |
|
module.info.he.auto | File | 166 B | 0644 |
|
module.info.hr | File | 0 B | 0644 |
|
module.info.hr.auto | File | 157 B | 0644 |
|
module.info.hu | File | 0 B | 0644 |
|
module.info.hu.auto | File | 160 B | 0644 |
|
module.info.it | File | 0 B | 0644 |
|
module.info.it.auto | File | 152 B | 0644 |
|
module.info.ja | File | 0 B | 0644 |
|
module.info.ja.auto | File | 199 B | 0644 |
|
module.info.ko | File | 0 B | 0644 |
|
module.info.ko.auto | File | 166 B | 0644 |
|
module.info.lt | File | 0 B | 0644 |
|
module.info.lt.auto | File | 168 B | 0644 |
|
module.info.lv | File | 0 B | 0644 |
|
module.info.lv.auto | File | 153 B | 0644 |
|
module.info.ms | File | 136 B | 0644 |
|
module.info.ms.auto | File | 14 B | 0644 |
|
module.info.mt | File | 0 B | 0644 |
|
module.info.mt.auto | File | 164 B | 0644 |
|
module.info.nl | File | 24 B | 0644 |
|
module.info.nl.auto | File | 126 B | 0644 |
|
module.info.no | File | 24 B | 0644 |
|
module.info.no.auto | File | 131 B | 0644 |
|
module.info.pl | File | 0 B | 0644 |
|
module.info.pl.auto | File | 143 B | 0644 |
|
module.info.pt | File | 0 B | 0644 |
|
module.info.pt.auto | File | 158 B | 0644 |
|
module.info.pt_BR | File | 29 B | 0644 |
|
module.info.pt_BR.auto | File | 138 B | 0644 |
|
module.info.ro | File | 0 B | 0644 |
|
module.info.ro.auto | File | 162 B | 0644 |
|
module.info.ru | File | 0 B | 0644 |
|
module.info.ru.auto | File | 228 B | 0644 |
|
module.info.sk | File | 0 B | 0644 |
|
module.info.sk.auto | File | 165 B | 0644 |
|
module.info.sl | File | 0 B | 0644 |
|
module.info.sl.auto | File | 145 B | 0644 |
|
module.info.sv | File | 0 B | 0644 |
|
module.info.sv.auto | File | 146 B | 0644 |
|
module.info.th | File | 0 B | 0644 |
|
module.info.th.auto | File | 314 B | 0644 |
|
module.info.tr | File | 0 B | 0644 |
|
module.info.tr.auto | File | 161 B | 0644 |
|
module.info.uk | File | 0 B | 0644 |
|
module.info.uk.auto | File | 200 B | 0644 |
|
module.info.ur | File | 0 B | 0644 |
|
module.info.ur.auto | File | 286 B | 0644 |
|
module.info.vi | File | 0 B | 0644 |
|
module.info.vi.auto | File | 190 B | 0644 |
|
module.info.zh | File | 0 B | 0644 |
|
module.info.zh.auto | File | 136 B | 0644 |
|
module.info.zh_TW | File | 0 B | 0644 |
|
module.info.zh_TW.auto | File | 145 B | 0644 |
|
pptp-server-lib.pl | File | 6.15 KB | 0755 |
|
save_conf.cgi | File | 1.55 KB | 0755 |
|
save_options.cgi | File | 2.56 KB | 0755 |
|
save_secret.cgi | File | 1.48 KB | 0755 |
|
secrets-lib.pl | File | 1.64 KB | 0755 |
|
start.cgi | File | 413 B | 0755 |
|
stop.cgi | File | 456 B | 0755 |
|