Server IP : 195.201.23.43 / Your IP : 18.219.179.32 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | 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'});Private