| Server IP : 104.21.25.180 / Your IP : 104.23.197.123 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/jailkit/ |
Upload File : |
#!/usr/bin/perl
use warnings;
use strict;
our %text;
require './jailkit-lib.pl';
my $jk_init_ini = get_jk_init_ini();
my @sections = $jk_init_ini->Sections();
ui_print_header(undef, $text{'index_title'}, "", "index", 1, 1, 0, undef,
undef, undef, undef);
my @table;
foreach my $jail (@sections) {
push(
@table,
[
{'type' => 'checkbox', 'name' => 'd', 'value' => $jail},
"<a href=\"edit_jail.cgi?jail=$jail\">" . &html_escape($jail) . "</a>",
$jk_init_ini->val("$jail", 'comment')
]
);
}
my @buttons;
push(@buttons, [["delete", $text{'index_delete_jail'}]]);
my @actions;
push(@actions, [["edit_jail.cgi?new=1", $text{'index_create_jail'}]]);
#use Data::Dumper;
#print "<!-- " . Dumper(@table) . " -->\n";
print ui_form_columns_table(
'delete_jail.cgi', @buttons, 1, @actions, undef,
[$text{'index_delete'}, $text{'index_jail_id'}, $text{'index_comment'}],
undef, \@table, undef, 1, $text{'index_jail_list'}, $text{'index_no_jails'}
);
ui_print_footer("");