aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-12-26 10:34:30 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-12-26 10:34:30 -0200
commitcf67c60a8c13f47313e2a86ed7451501d600d71a (patch)
tree4352795c33f70c7dbd2a1baf2876f5315b17760f
parent6f50405833b85f4e07703788d74b8e891a417bcb (diff)
parent97dad1e0d077d42f5c829a4ae78d11485bbccab6 (diff)
downloadpfsense-packages-cf67c60a8c13f47313e2a86ed7451501d600d71a.tar.gz
pfsense-packages-cf67c60a8c13f47313e2a86ed7451501d600d71a.tar.bz2
pfsense-packages-cf67c60a8c13f47313e2a86ed7451501d600d71a.zip
Merge pull request #741 from SunStroke74/patch-2
-rw-r--r--config/havp/antivirus.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/havp/antivirus.php b/config/havp/antivirus.php
index 0d8cda1d..b292c921 100644
--- a/config/havp/antivirus.php
+++ b/config/havp/antivirus.php
@@ -176,6 +176,11 @@ if ($_POST['startupdate'] != '') {
# else echo "No 'start_antivirus_scanner' function found.";
}
+/* Clear havp access log */
+if ($_POST['clearlog_x'] != '') {
+ file_put_contents(HVDEF_HAVP_ACCESSLOG, '');
+}
+
# ------------------------------------------------------------------------------
?>
@@ -356,7 +361,7 @@ if (pfsense_version_A() == '1') {
}
else echo "<tr><td $stl>Not found</td></tr>";
?>
- <tr class="listr"><td class="listr" colspan="4"><?php echo get_av_statistic(); ?></td></tr>
+ <tr class="listr"><td class="listr" colspan="4"><?php echo get_av_statistic(); ?><?php echo "<div style='float:right;'><input title='Clear antivirus log' name='clearlog' type='image' value='havp' border=0 src='./themes/".$g['theme']."/images/icons/icon_x.gif'>"; ?><font size="-1">&nbsp;Clear log</font></div></td></tr>
</tbody></table>
</td>
</tr>