3 # Show spoofing prevention form
5 require './itsecur-lib.pl';
6 &can_use_error("spoof");
7 &header($text{'spoof_title'}, "",
8 undef, undef, undef, undef, &apply_button());
11 print "<form action=save_spoof.cgi>\n";
12 print "<table border>\n";
13 print "<tr $tb> <td><b>$text{'spoof_header'}</b></td> </tr>\n";
14 print "<tr $cb> <td><table>\n";
16 ($iface, @nets) = &get_spoof();
17 print "<tr> <td valign=top><b>$text{'spoof_desc'}</b></td> <td>\n";
18 printf "<input type=radio name=spoof value=0 %s> %s<br>\n",
19 $iface ? "" : "checked", $text{'spoof_disabled'};
20 printf "<input type=radio name=spoof value=1 %s> %s\n",
21 $iface ? "checked" : "", $text{'spoof_enabled'};
22 print &iface_input("iface", $iface);
23 print "</td> </tr>\n";
25 print "<tr> <td valign=top><b>$text{'spoof_nets'}</b></td> <td>\n";
26 print "<textarea name=nets rows=5 cols=40>",
27 join("\n", @nets),"</textarea></td> </tr>\n";
29 print "</table></td></tr></table>\n";
30 print "<input type=submit value='$text{'save'}'></form>\n";
31 &can_edit_disable("spoof");
34 &footer("", $text{'index_return'});