3 # An OpenSLP webmin module
4 # by Monty Charlton <monty@caldera.com>,
6 # Copyright (c) 2000 Caldera Systems
8 # Permission to use, copy, modify, and distribute this software and its
9 # documentation under the terms of the GNU General Public License is hereby
10 # granted. No representations are made about the suitability of this software
11 # for any purpose. It is provided "as is" without express or implied warranty.
12 # See the GNU General Public License for more details.
15 require './slp-lib.pl';
18 local @scopes, @daaddr;
22 for($i=0; $i<3; $i++) {
23 if (!$in{'useScopes'}) {
24 push(@scopes, $val) if ($val=$in{"useScopesValue_$i"});
26 if (!$in{'DAAddresses'}) {
27 push(@daaddr, $val) if ($val=$in{"DAAddressesValue_$i"});
30 if (!$in{'useScopes'}) {
31 &enable_list_line(@scopes,'useScopes');
34 &disable_line('useScopes');
37 if (!$in{'DAAddresses'}) {
38 &enable_list_line(@daaddr,'DAAddresses');
41 &disable_line('DAAddresses');