Changed proxy page and redirector detections

This commit is contained in:
maniacikarus
2009-05-30 01:44:22 +02:00
parent 5a51a7c2a9
commit bd027d948f
3 changed files with 13 additions and 7 deletions

View File

@@ -983,8 +983,13 @@ my $count = `arp -a | wc -l`;
if ( $count < 1 ){$count = 1;}
if ( -e "/usr/bin/squidclamav" ) {
print "<td class='base'><b>".$Lang::tr{'advproxy squidclamav'}."</b><br />";
print $Lang::tr{'advproxy enabled'}."<input type='checkbox' name='ENABLE_CLAMAV' ".$checked{'ENABLE_CLAMAV'}{'on'}." /><br />";
print "+ ".int(( $count**(1/3)) * 8);
if ( ! -e "/var/run/clamav/clamd.pid" ){
print "<font color='red'>clamav not running</font><br /><br />";
$proxysettings{'ENABLE_CLAMAV'} = 'off';
}
else {
print $Lang::tr{'advproxy enabled'}."<input type='checkbox' name='ENABLE_CLAMAV' ".$checked{'ENABLE_CLAMAV'}{'on'}." /><br />";
print "+ ".int(( $count**(1/3)) * 8);}
print "</td>";
} else {
print "<td></td>";
@@ -3996,4 +4001,4 @@ sub writecachemgr
return;
}
# -------------------------------------------------------------------
# -------------------------------------------------------------------