aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns/tinydns_view_logs.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-08-21 14:07:35 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-08-21 14:07:35 -0300
commitd0bcc50d60991a31babece1b866b30294bb47d17 (patch)
treea5be9dc3b9f07225bc682107ebf2a87fc9c7fb58 /config/tinydns/tinydns_view_logs.php
parent5da21fa5e3658646120b2338c5d92b6b0ff3904b (diff)
parent726f41eeb0f7198372da9db4988d6561ff03a7fd (diff)
downloadpfsense-packages-d0bcc50d60991a31babece1b866b30294bb47d17.tar.gz
pfsense-packages-d0bcc50d60991a31babece1b866b30294bb47d17.tar.bz2
pfsense-packages-d0bcc50d60991a31babece1b866b30294bb47d17.zip
Merge pull request #693 from jwbrown77/dns-rebase
Diffstat (limited to 'config/tinydns/tinydns_view_logs.php')
-rw-r--r--config/tinydns/tinydns_view_logs.php7
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");
}
?>