|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/libexec/webmin/squid/ |
Upload File : |
#!/usr/bin/perl
# save_delay.cgi
# Save global delay pool options
require './squid-lib.pl';
$access{'delay'} || &error($text{'delay_ecannot'});
&ReadParse();
&lock_file($config{'squid_conf'});
$conf = &get_config();
&error_setup($text{'delay_err'});
&save_opt("delay_initial_bucket_level", \&check_initial, $conf);
&flush_file_lines();
&unlock_file($config{'squid_conf'});
&webmin_log("delay", undef, undef, \%in);
&redirect("");
sub check_initial
{
return $_[0] =~ /^\d+$/ ? undef : &text('delay_epercent', $_[0]);
}