\n";
print " $text{'edit_pem'} | \n";
$haspem = $config{'pem_path'} && -r $config{'pem_path'};
if ($in{'new'}) {
printf " %s\n",
"", $text{'edit_pem0'};
printf " %s\n",
$haspem ? "" : "checked", $text{'edit_pem1'};
printf " %s\n",
$haspem ? "checked" : "", $text{'edit_pem2'};
printf " %s | \n",
$haspem ? $config{'pem_path'} : "", &file_chooser_button("pem");
}
else {
local $pmode = $pem eq $webmin_pem ? 1 :
$pem ? 2 : 0;
printf " %s\n",
$pmode == 0 ? "checked" : "", $text{'edit_pem0'};
printf " %s\n",
$pmode == 1 ? "checked" : "", $text{'edit_pem1'};
printf " %s\n",
$pmode == 2 ? "checked" : "", $text{'edit_pem2'};
printf " %s \n",
$pmode == 2 ? $pem : "", &file_chooser_button("pem");
}
print " $text{'edit_tcpw'} | \n";
printf " %s\n",
$tcpw ? "" : "checked", $text{'edit_auto'};
printf "\n",
$tcpw ? "checked" : "";
printf " | \n", $tcpw;
print " $text{'edit_cmode'} | \n";
printf " %s\n",
$cmode ? "" : "checked", $text{'edit_cmode0'};
printf " %s | \n",
$cmode ? "checked" : "", $text{'edit_cmode1'};
print " $text{'edit_iface'} | \n";
printf " %s\n",
$iface ? "" : "checked", $text{'edit_auto'};
printf "\n",
$iface ? "checked" : "";
printf " | \n", $iface;
print " |