| Server IP : 89.117.53.150 / Your IP : 216.73.216.11 Web Server : Apache System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : iscmbt-kufa-atu ( 1014) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/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'});