#!/usr/bin/perl # edit_ips.cgi # Edit which addresses are allowed or denied for connection to the server require './jabber-lib.pl'; &ui_print_header(undef, $text{'ips_title'}, "", "ips"); $conf = &get_jabber_config(); $io = &find("io", $conf); @allow = &find("allow", $io); @deny = &find("deny", $io); print "
\n"; print "\n"; print "\n"; print "
$text{'ips_header'}
\n"; print " ", "\n"; printf "\n"; printf "\n"; print "
$text{'ips_allow'}$text{'ips_deny'}
%s\n", @allow ? "" : "checked", $text{'ips_all'}; printf " %s
\n", @allow ? "checked" : "", $text{'ips_sel'}; print "
%s\n", @deny ? "" : "checked", $text{'ips_none'}; printf " %s
\n", @deny ? "checked" : "", $text{'ips_sel'}; print "
\n"; print "
\n"; &ui_print_footer("", $text{'index_return'});