403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/home/SERVERWEB/webmin-2.105/apache/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/home/SERVERWEB/webmin-2.105/apache/mod_cache.pl
# mod_cache.pl
# Functions that have been moved out of mod_proxy in apache 2.0

sub mod_cache_directives
{
local $rv;
$rv = [ [ 'CacheDefaultExpire', 0, 13.1, 'virtual', 2.0 ],
	[ 'CacheEnable CacheDisable', 1, 13.1, 'virtual', 2.0 ],
#	[ 'CacheIgnoreCacheControl', 0, 13.1, 'virtual', 2.0 ],
#	[ 'CacheIgnoreNoLastMod', 0, 13.1, 'virtual', 2.0 ],
        [ 'CacheLastModifiedFactor', 0, 13.1, 'virtual', 2.0 ],
	[ 'CacheMaxExpire', 0, 13.1, 'virtual', 2.0 ] ];
return &make_directives($rv, $_[0], "mod_cache");
}

require 'cache.pl';

sub edit_CacheEnable_CacheDisable
{
local $rv = "<table border>\n".
	    "<tr $tb> <td><b>$text{'cache_enable'}</b></td>\n".
	    "<td><b>$text{'cache_type'}</b></td>\n".
	    "<td><b>$text{'cache_url'}</b></td> </tr>\n";
local ($c, $i = 0);
foreach $c (@{$_[0]}, @{$_[1]}, { }) {
	$rv .= "<tr $cb>\n";
	$rv .= "<td><select name=CacheEnable_e_$i>\n";
	$rv .= sprintf "<option value=0 %s>&nbsp;</option>\n",
			$c ? "" : "selected";
	$rv .= sprintf "<option value=1 %s>%s</option>\n",
			$c->{'name'} eq 'CacheEnable' ? 'selected' : '',
			$text{'yes'};
	$rv .= sprintf "<option value=2 %s>%s</option>\n",
			$c->{'name'} eq 'CacheDisable' ? 'selected' : '',
			$text{'no'};
	$rv .= "</select></td> <td><select name=CacheEnable_t_$i>\n";
	$rv .= sprintf "<option value=disk %s>%s</option>\n",
			$c->{'words'}->[0] eq 'disk' ? 'selected' : '',
			$text{'cache_disk'};
	$rv .= sprintf "<option value=mem %s>%s</option>\n",
			$c->{'words'}->[0] eq 'mem' ? 'selected' : '',
			$text{'cache_mem'};
	$rv .= "</select></td>\n";
	$rv .= sprintf "<td><input name=CacheEnable_u_$i size=20 value='%s'></td>\n", $c->{'name'} eq 'CacheEnable' ? $c->{'words'}->[1] : $c->{'words'}->[0];
	$rv .= "</tr>\n";
	$i++;
	}
$rv .= "</table>\n";
return (2, $text{'cache_endis'}, $rv);
}
sub save_CacheEnable_CacheDisable
{
local ($i, @en, @dis);
for($i=0; defined($in{"CacheEnable_e_$i"}); $i++) {
	next if (!$in{"CacheEnable_e_$i"});
	$in{"CacheEnable_u_$i"} =~ /^\S+$/ || &error($text{'cache_eurl'});
	if ($in{"CacheEnable_e_$i"} == 1) {
		push(@en, $in{"CacheEnable_t_$i"}." ".$in{"CacheEnable_u_$i"});
		}
	else {
		push(@dis, $in{"CacheEnable_u_$i"});
		}
	}
return ( \@en, \@dis );
}

sub edit_CacheIgnoreCacheControl
{
return (1, $text{'cache_control'},
        &choice_input($_[0]->{'value'}, "CacheIgnoreCacheControl", "off",
                      "$text{'yes'},on", "$text{'no'},off"));
}
sub save_CacheIgnoreCacheControl
{
return &parse_choice("CacheIgnoreCacheControl", "off");
}

sub edit_CacheIgnoreNoLastMod
{
return (1, $text{'cache_lastmod'},
        &choice_input($_[0]->{'value'}, "CacheIgnoreNoLastMod", "off",
                      "$text{'yes'},on", "$text{'no'},off"));
}
sub save_CacheIgnoreNoLastMod
{
return &parse_choice("CacheIgnoreNoLastMod", "off");
}


Youez - 2016 - github.com/yon3zu
LinuXploit