mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 18:03:06 +02:00
Changed proxy page and redirector detections
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user