--- /dev/null
+
+do 'ppp-client-lib.pl';
+
+sub cgi_args
+{
+my ($cgi) = @_;
+if ($cgi eq 'edit.cgi') {
+ my $conf = &get_config();
+ return @$conf ? 'idx='.$conf->[0]->{'index'} : 'new=1';
+ }
+return undef;
+}
# Check if wvdial is installed
if (!&has_command($config{'wvdial'}) ||
($out = &proc::pty_backquote("$config{'wvdial'} --version")) !~
- /WvDial\s+([^: ]+)/i) {
+ /WvDial\s+([^: \n\r]+)/i) {
&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
print "<p>",&text('index_ewvdial', "<tt>$config{'wvdial'}</tt>",
"$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";