#!/usr/local/bin/perl # edit_bind.cgi # Display port / address form require './usermin-lib.pl'; $access{'bind'} || &error($text{'acl_ecannot'}); &ui_print_header(undef, $text{'bind_title'}, ""); &get_usermin_miniserv_config(\%miniserv); print $text{'bind_desc2'},"

\n"; print "

\n"; print "\n"; print "\n"; print "
$webmin::text{'bind_header'}
\n"; # Build list of sockets @sockets = &webmin::get_miniserv_sockets(\%miniserv); # Show table of all bound IPs and ports print "\n"; print "\n"; # Show web server hostname print "\n"; print "\n"; print "
$webmin::text{'bind_sockets'}\n"; print " ", "\n"; $i = 0; foreach $s (@sockets, [ undef, "*" ]) { print "\n"; print "\n", $s->[0] eq "*" ? undef : $s->[0]; print "\n", $s->[1] eq "*" ? undef : $s->[1]; print "\n"; $i++; } print "
$webmin::text{'bind_sip'}$webmin::text{'bind_sport'}
\n"; printf "\n"; print "\n"; printf "
$webmin::text{'bind_hostname'}",&ui_radio("hostname_def", $miniserv{"host"} ? 0 : 1, [ [ 1, $webmin::text{'bind_auto'} ], [ 0, &ui_textbox("hostname", $miniserv{"host"}, 25) ] ]), "
\n"; print "
\n"; &ui_print_footer("", $text{'index_return'});