diff options
author | SunStroke74 <andrey.b.nikitin@gmail.com> | 2014-11-28 21:56:35 +0500 |
---|---|---|
committer | SunStroke74 <andrey.b.nikitin@gmail.com> | 2014-11-28 21:56:35 +0500 |
commit | 97dad1e0d077d42f5c829a4ae78d11485bbccab6 (patch) | |
tree | a469c181c94fef5bf3d75e964fe6a95d47cafd1e /config/havp | |
parent | 6c4cfcc52d41b5ea5b5411c3db8d2ec88e511bae (diff) | |
download | pfsense-packages-97dad1e0d077d42f5c829a4ae78d11485bbccab6.tar.gz pfsense-packages-97dad1e0d077d42f5c829a4ae78d11485bbccab6.tar.bz2 pfsense-packages-97dad1e0d077d42f5c829a4ae78d11485bbccab6.zip |
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).
Diffstat (limited to 'config/havp')
-rw-r--r-- | config/havp/antivirus.php | 7 |
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"> Clear log</font></div></td></tr> </tbody></table> </td> </tr> |