From 97dad1e0d077d42f5c829a4ae78d11485bbccab6 Mon Sep 17 00:00:00 2001 From: SunStroke74 Date: Fri, 28 Nov 2014 21:56:35 +0500 Subject: Adding button to clear havp access log Do not know how to catch button press event, therefor 'clearlog_x' parameter taken from $_POST array during debug (similar to 'start'/'stop' events). --- config/havp/antivirus.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config/havp') 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 "Not found"; ?> - + "; ?> Clear log -- cgit v1.2.3