aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-10-14 10:52:43 +0200
committerdoktornotor <notordoktor@gmail.com>2015-10-14 10:52:43 +0200
commit935ceb15cde794e23b0d590a282c0fa4dae53f35 (patch)
treef24e6198b59021fccf974d5855287334570845b1 /config/squid3
parentbf982fd21fd14e961249f23264b22bf165b3d2ae (diff)
downloadpfsense-packages-935ceb15cde794e23b0d590a282c0fa4dae53f35.tar.gz
pfsense-packages-935ceb15cde794e23b0d590a282c0fa4dae53f35.tar.bz2
pfsense-packages-935ceb15cde794e23b0d590a282c0fa4dae53f35.zip
Account for incremental AV defs updates.
The defs get unpacked to *.cld if updated incrementally. Fix whitespace while here.
Diffstat (limited to 'config/squid3')
-rw-r--r--config/squid3/34/squid_antivirus_status.widget.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/squid3/34/squid_antivirus_status.widget.php b/config/squid3/34/squid_antivirus_status.widget.php
index 41c8c2fd..377b51f2 100644
--- a/config/squid3/34/squid_antivirus_status.widget.php
+++ b/config/squid3/34/squid_antivirus_status.widget.php
@@ -44,8 +44,8 @@ global $clamd_path, $cicap_cfg_path, $img;
$clamd_path = SQUID_BASE . "/bin/clamd";
$cicap_cfg_path = SQUID_LOCALBASE . "/bin/c-icap-config";
$img = array();
-$img['up'] = "<img src ='data:image/gif;base64,R0lGODlhCwALAIABACPcMP///yH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lNUAAh+QQBCgABACwAAAAACwALAAACFYwNpwi50eKK9NA722Puyf15GjgaBQA7' title='Service running' alt='' />";
-$img['down'] = "<img src ='data:image/gif;base64,R0lGODlhCwALAIABANwjI////yH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lNUAAh+QQBCgABACwAAAAACwALAAACFowDeYvKlsCD7sXZ5Iq89kpdFshoRwEAOw==' title='Service not running' alt='' />";
+$img['up'] = "<img src='data:image/gif;base64,R0lGODlhCwALAIABACPcMP///yH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lNUAAh+QQBCgABACwAAAAACwALAAACFYwNpwi50eKK9NA722Puyf15GjgaBQA7' title='Service running' alt='' />";
+$img['down'] = "<img src='data:image/gif;base64,R0lGODlhCwALAIABANwjI////yH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lNUAAh+QQBCgABACwAAAAACwALAAACFowDeYvKlsCD7sXZ5Iq89kpdFshoRwEAOw==' title='Service not running' alt='' />";
function squid_avdb_info($filename) {
$stl = "style='padding-top: 0px; padding-bottom: 0px; padding-left: 4px; padding-right: 4px; border-left: 1px solid #999999;'";
@@ -71,10 +71,10 @@ function squid_avdb_info($filename) {
function squid_antivirus_bases_info() {
$db = '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tbody>';
$db .= '<tr class="vncellt" ><td>Database</td><td>Date</td><td>Version</td><td>Builder</td></tr>';
- $db .= squid_avdb_info("daily.cvd");
- $db .= squid_avdb_info("bytecode.cvd");
- $db .= squid_avdb_info("main.cvd");
- $db .= squid_avdb_info("safebrowsing.cvd");
+ $avdbs = array("daily.cvd", "daily.cld", "bytecode.cvd", "bytecode.cld", "main.cvd", "main.cld", "safebrowing.cvd", "safebrowing.cld");
+ foreach ($avdbs as $avdb) {
+ $db .= squid_avdb_info($avdb);
+ }
$db .= '</tbody></table>';
return $db;
}