%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.248 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/squid/ |
Upload File : |
#!/usr/bin/perl # edit_admin.cgi # A form for editing admin options use strict; use warnings; no warnings 'redefine'; no warnings 'uninitialized'; our (%text, %in, %access, $squid_version, %config); require './squid-lib.pl'; $access{'admopts'} || &error($text{'eadm_ecannot'}); &ui_print_header(undef, $text{'eadm_header'}, "", "edit_admin", 0, 0, 0, &restart_button()); my $conf = &get_config(); print &ui_form_start("save_admin.cgi", "post"); print &ui_table_start($text{'eadm_aao'}, "width=100%", 4); if ($squid_version < 2) { my $v = &find_config("cache_effective_user", $conf); print &ui_table_row($text{'eadm_runasuu'}, &ui_radio("effective_def", $v ? 0 : 1, [ [ 1, $text{'eadm_nochange'} ], [ 0, $text{'eadm_user'}." ". &unix_user_input("effective_u", $v ? $v->{'values'}->[0] : "")." ". $text{'eadm_group'}." ". &unix_group_input("effective_g", $v ? $v->{'values'}->[1] : "") ] ])); } else { print &opt_input($text{'eadm_runasuu'}, "cache_effective_user", $conf, $text{'eadm_nochange'}, 8, &user_chooser_button("cache_effective_user", 0)); print &opt_input($text{'eadm_runasug'}, "cache_effective_group", $conf, $text{'eadm_nochange'}, 8, &group_chooser_button("cache_effective_group", 0)); } print &opt_input($text{'eadm_cmemail'}, "cache_mgr", $conf, $text{'eadm_default'}, 35); print &opt_input($text{'eadm_vhost'}, "visible_hostname", $conf, $text{'eadm_auto'}, 35); if ($squid_version < 2) { print &opt_input($text{'eadm_annto'}, "announce_to", $conf, $text{'eadm_default'}, 40); print &opt_input($text{'eadm_every'}, "cache_announce", $conf, $text{'eadm_never'}, 6, "hours"); } else { print &opt_input($text{'eadm_uniq'}, "unique_hostname", $conf, $text{'eadm_auto'}, 35); if ($squid_version >= 2.4) { print &opt_input($text{'eadm_haliases'}, "hostname_aliases", $conf, $text{'eadm_none'}, 35); } print &opt_input($text{'eadm_cah'}, "announce_host", $conf, $text{'eadm_default'}, 20); print &opt_input($text{'eadm_cap'}, "announce_port", $conf, $text{'eadm_default'}, 6); print &opt_input($text{'eadm_caf'}, "announce_file", $conf, $text{'eadm_none'}, 35, &file_chooser_button("announce_file")); print &opt_time_input($text{'eadm_annp'}, "announce_period", $conf, $text{'eadm_default'}, 4); } print &ui_table_end(); print &ui_form_end([ [ undef, $text{'eadm_buttsave'} ] ]); &ui_print_footer("", $text{'eadm_return'});