Handle hostnames with upper-case letters
[webmin.git] / frox / edit_cache.cgi
1 #!/usr/local/bin/perl
2 # Show caching options
3
4 require './frox-lib.pl';
5 &ui_print_header(undef, $text{'cache_title'}, "");
6 $conf = &get_config();
7
8 print &ui_form_start("save_cache.cgi", "post");
9 print &ui_table_start($text{'cache_header'}, "width=100%", 4);
10
11 $module = &find_value("CacheModule", $conf);
12 print &ui_table_row($text{'cache_module'},
13                     &ui_radio("CacheModule", $module,
14                               [ [ "", $text{'cache_none'} ],
15                                 [ "local", $text{'cache_local'} ],
16                                 [ "http", $text{'cache_http'} ] ]), 3, \@ui_td);
17
18 print &config_textbox($conf, "CacheSize", 6, undef, "MB");
19
20 print &config_textbox($conf, "HTTPProxy", 30);
21
22 print &ui_table_row("", "");
23
24 print &config_textbox($conf, "MinCacheSize", 6, undef, "bytes");
25
26 print &config_yesno($conf, "StrictCaching", undef, undef, "no");
27
28 print &config_yesno($conf, "CacheOnFQDN", undef, undef, "yes");
29
30 print &config_yesno($conf, "CacheAll", undef, undef, "no");
31
32 print &ui_table_hr();
33
34 print &config_opt_textbox($conf, "VirusScanner", 40, 3, $text{'cache_vnone'});
35
36 print &config_opt_textbox($conf, "VSOK", 4, 3);
37
38 print &config_opt_textbox($conf, "VSProgressMsgs", 4, 3);
39
40 print &ui_table_end();
41 print &ui_form_end([ [ 'save', $text{'save'} ] ], "100%");
42
43 &ui_print_footer("", $text{'index_return'});
44