HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/webmin/cluster-software/compare_form.cgi
#!/usr/bin/perl
# Show form for comparing packages on multiple servers

require './cluster-software-lib.pl';
&ui_print_header(undef, $text{'compare_title'}, "");

print "$text{'compare_desc'}<p>\n";

print &ui_form_start("compare.cgi", "post");
print "<table>\n";

# Hosts to compare
print "<tr> <td valign=top><b>$text{'compare_hosts'}</b></td> <td>\n";
print &ui_radio("all", 1, [ [ 1, $text{'compare_all'} ],
			    [ 0, $text{'compare_sel'} ] ]),"<br>\n";
%smap = map { $_->{'id'}, $_ } &list_servers();
@sel = map { [ $_->{'id'}, &server_name($smap{$_->{'id'}}) ] }
	   &list_software_hosts();
@groups = &servers::list_all_groups();
push(@sel, map { [ "group_".$_->{'name'}, &text('edit_group', $_->{'name'}) ] }
	       @groups);
print &ui_select("hosts", undef, \@sel, 5, 1);
print "</td> </tr>\n";

# Show all, or just mismatches?
print "<tr> <td><b>$text{'compare_showall'}</b></td> <td>\n";
print &ui_radio("showall", 0, [ [ 1, $text{'compare_showall1'} ],
				[ 0, $text{'compare_showall0'} ] ]);
print "</td> </tr>\n";

print "</table>\n";
print &ui_submit($text{'compare_ok'});
print &ui_form_end();

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