-
Notifications
You must be signed in to change notification settings - Fork 3
/
edit_sssi.cgi
31 lines (22 loc) · 908 Bytes
/
edit_sssi.cgi
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
#!/usr/bin/perl
# Show virtual host server-side include options
use strict;
use warnings;
require 'virtualmin-nginx-lib.pl';
our (%text, %in, %access);
&ReadParse();
my $server = &find_server($in{'id'});
$server || &error($text{'server_egone'});
&can_edit_server($server) || &error($text{'server_ecannot'});
&ui_print_header(&server_desc($server), $text{'ssi_title'}, "");
print &ui_form_start("save_sssi.cgi", "post");
print &ui_hidden("id", $in{'id'});
print &ui_table_start($text{'ssi_header'}, undef, 2);
print &nginx_onoff_input("ssi", $server);
print &nginx_onoff_input("ssi_silent_errors", $server);
print &nginx_opt_list_input("ssi_types", $server, 60, $text{'ssi_types'});
print &nginx_opt_input("ssi_value_length", $server, 10);
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'save'} ] ]);
&ui_print_footer("edit_server.cgi?id=".&urlize($in{'id'}),
$text{'server_return'});