| Server IP : 104.21.25.180 / Your IP : 104.23.197.122 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/virtual-server/ |
Upload File : |
#!/usr/bin/perl
# Show a form to associate or disassociate features
require './virtual-server-lib.pl';
&ReadParse();
$d = &get_domain($in{'dom'});
$d || &error($text{'edit_egone'});
&can_associate_domain($d) || &error($text{'assoc_ecannot'});
&ui_print_header(&domain_in($d), $text{'assoc_title'}, "");
print $text{'assoc_desc'},"<p>\n";
print &ui_form_start("assoc.cgi", "post");
print &ui_hidden("dom", $in{'dom'});
print &ui_table_start($text{'assoc_header'}, undef, 2);
# Features to enable or disable
my @grid;
foreach my $f (&list_possible_domain_features($d)) {
push(@grid, &ui_checkbox($f, 1, $text{'edit_'.$f}, $d->{$f}));
}
foreach my $f (&list_possible_domain_plugins($d)) {
$label = &plugin_call($f, "feature_label", 1);
push(@grid, &ui_checkbox($f, 1, $label, $d->{$f}));
}
print &ui_table_row($text{'assoc_features'},
&ui_grid_table(\@grid, 2));
# Validate afterwards?
print &ui_table_row($text{'assoc_validate'},
&ui_yesno_radio("validate", 0));
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'save'} ] ]);
&ui_print_footer(&domain_footer_link($d),
"", $text{'index_return'});