MOON
Server: Apache
System: Linux cl1170g 4.19.62-mod-std-ipv6-64-rescue #828825 SMP Tue Jul 30 13:54:49 UTC 2019 x86_64
User: wh0f20bb (1057)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: //proc/thread-self/root/root/webmin-1.740/mon/list_groups.cgi
#!/usr/bin/perl
# list_groups.cgi
# Display a list of all host groups and their members

require './mon-lib.pl';
&ui_print_header(undef, $text{'groups_title'}, "");

$conf = &get_mon_config();
@groups = &find("hostgroup", $conf);

print "<form action=save_groups.cgi method=post>\n";
print "<table border width=100%>\n";
print "<tr $tb> <td><b>$text{'groups_group'}</b></td> ",
      "<td><b>$text{'groups_members'}</b></td> </tr>\n";
$i = 0;
foreach $g (@groups, { }) {
	local ($gn, @gm) = @{$g->{'values'}};
	print "<tr $cb>\n";
	print "<td><input name=group_$i size=20 value='$gn'></td>\n";
	print "<td><input name=members_$i size=60 value='",
		join(" ", @gm),"'></td>\n";
	print "</tr>\n";
	$i++;
	}
print "</table>\n";
print "<input type=submit value='$text{'save'}'></form>\n";

&ui_print_footer("", $text{'index_return'});