\n";
if (!$in{'file'}) {
# Show if autoPPP is being used or not
($auto) = grep { $_->{'user'} eq "/AutoPPP/" } @login;
print " | $text{'options_autoppp'} | \n";
printf " %s\n",
$auto ? "checked" : "", $text{'yes'};
printf " %s | \n",
$auto ? "" : "checked", $text{'no'};
print "
| \n";
}
($ip) = grep { $_->{'local'} } @opts;
print " | $text{'options_ip'} | \n";
printf " %s\n",
$ip ? "" : "checked", $text{'options_auto'};
printf "\n",
$ip ? "checked" : "";
printf "%s \n",
$text{'options_local'}, $ip->{'local'};
printf "%s | \n",
$text{'options_remote'}, $ip->{'remote'};
$nm = &find("netmask", \@opts);
print " | $text{'options_netmask'} | \n";
printf " %s\n",
$nm ? "" : "checked", $text{'default'};
printf "\n",
$nm ? "checked" : "";
printf " | \n", $nm->{'value'};
$proxy = &find("proxyarp", \@opts);
print "$text{'options_proxyarp'} | \n";
printf " %s\n",
$proxy ? "checked" : "", $text{'yes'};
printf " %s | \n",
$proxy ? "" : "checked", $text{'no'};
$lock = &find("lock", \@opts);
print " | $text{'options_lock'} | \n";
printf " %s\n",
$lock ? "checked" : "", $text{'yes'};
printf " %s | \n",
$lock ? "" : "checked", $text{'no'};
$modem = &find("modem", \@opts);
$local = &find("local", \@opts);
print "$text{'options_ctrl'} | \n";
print " | \n";
$auth = &find("auth", \@opts);
$noauth = &find("noauth", \@opts);
print " | $text{'options_auth'} | \n";
printf " %s\n",
$noauth || $auth ? "" : "checked", $text{'options_auth0'};
printf " %s\n",
$noauth ? "checked" : "", $text{'options_auth1'};
printf " %s | \n",
$auth ? "checked" : "", $text{'options_auth2'};
$login = &find("login", \@opts);
print " | $text{'options_login'} | \n";
printf " %s\n",
$login ? "checked" : "", $text{'yes'};
printf " %s | \n",
$login ? "" : "checked", $text{'no'};
$idle = &find("idle", \@opts);
print "$text{'options_idle'} | \n";
printf " %s\n",
$idle ? "" : "checked", $text{'options_idle_def'};
printf "\n",
$idle ? "checked" : "";
printf " %s | \n",
$idle->{'value'}, $text{'mgetty_secs'};
@dns = &find("ms-dns", \@opts);
print " | $text{'options_dns'} | \n";
printf " | \n",
join(" ", map { $_->{'value'} } @dns);
print " |