-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui_jail_create.cgi
More file actions
executable file
·43 lines (31 loc) · 1.38 KB
/
ui_jail_create.cgi
File metadata and controls
executable file
·43 lines (31 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/local/bin/perl
# ui_jail_create.cgi
# Show a page for manually creating an bastille basic jail
require './bastille-manager-lib.pl';
&ReadParse();
&ui_print_header(undef, $text{'index_title'}, "", "intro");
# Start jail create.
my $nic_def = "";
my $release_def = "";
my $jailtype_def = "dafault";
my $vnettype_def = "";
my $vnetmode_def = "disabled";
print &ui_form_start("create.cgi");
print &ui_table_start($text{'manual_createjail'}, "width=100%", 2);
if ($config{'show_advanced'}) {
print &ui_table_row($text{'create_fname'},
&ui_textbox("name", $jname, 30, ));
print &ui_table_row($text{'create_ipvx'},
&ui_textbox("ipx", $jipx, 30, ));
print &ui_table_row($text{'create_network'}, &ui_select("nic", lc($nic_def), [ &list_local_nics() ], 1, 0, 1));
print &ui_table_row($text{'create_reltype'}, &ui_select("rel", lc($release_def), [ &list_local_rels() ], 1, 0, 1));
print &ui_table_row($text{'create_jailtype'}, &ui_select("jail_type", uc($jailtype_def), [ &list_jail_types() ], 1, 0, 1));
print &ui_table_row($text{'create_vnettype'}, &ui_select("vnet_type", uc($vnetmode_def), [ &list_vnet_types() ], 1, 0, 1));
}
print &ui_table_end();
print &ui_buttons_start();
print &ui_buttons_row("create.cgi", $text{'create_button'}, $text{'create_relnote'});
print &ui_buttons_end();
print &ui_form_end();
print "<br>$text{'index_createnote'}";
&ui_print_footer("", $text{'index_return'});