diff options
author | Anton <github@digitsolutions.nl> | 2013-11-12 18:10:02 +0100 |
---|---|---|
committer | Jeremy Brown <jeremy.b@infosend.com> | 2014-07-31 16:27:47 -0700 |
commit | 27ea3affa00297e713a8cf7c18bb81ec96ba500b (patch) | |
tree | 7434d4685fa7fc7fdd3e5ad7c0270f66e6803c4d | |
parent | 6cb45d2cadef9867239b8c2e6c40bc27be4f368b (diff) | |
download | pfsense-packages-27ea3affa00297e713a8cf7c18bb81ec96ba500b.tar.gz pfsense-packages-27ea3affa00297e713a8cf7c18bb81ec96ba500b.tar.bz2 pfsense-packages-27ea3affa00297e713a8cf7c18bb81ec96ba500b.zip |
Change Logs to show correct data
Changed line 35 to show correct ipaddress
Changed line 56 to 58 to cerrectly clear log file
-rw-r--r-- | config/tinydns/tinydns_view_logs.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/tinydns/tinydns_view_logs.php b/config/tinydns/tinydns_view_logs.php index 57daa02e..4b4f3c3f 100644 --- a/config/tinydns/tinydns_view_logs.php +++ b/config/tinydns/tinydns_view_logs.php @@ -32,7 +32,7 @@ require("guiconfig.inc"); if($_REQUEST['getactivity']) { - $tinydnslogs = `cat /var/run/service/tinydns/log/main/current | /usr/local/bin/tai64nlocal | php -f /usr/local/pkg/tinydns_parse_logs.php | grep -v ":0"`; + $tinydnslogs = `cat /var/run/service/tinydns/log/main/current | /usr/local/bin/tai64nlocal | php -f /usr/local/pkg/tinydns_parse_logs.php | grep -v ":0 "`; echo "TinyDNS Server logs as of " . date("D M j G:i:s T Y") . "\n\n"; echo $tinydnslogs; exit; @@ -53,8 +53,9 @@ include("head.inc"); /* NEED TO FIX */ if ($_POST['clear']) { -// exec("rm /etc/tinydns/log/main/current"); -// exec("touch /etc/tinydns/log/main/current"); + exec("rm /var/etc/tinydns/log/main/current"); + exec("touch /var/etc/tinydns/log/main/current"); + exec("chown Gdnslog /var/etc/tinydns/log/main/current"); } ?> |