From 80280599d28c6d60f66f04dd10017b0f02c9624e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 26 Oct 2008 02:02:42 +0000 Subject: Add some ajax flair. --- packages/tinydns/tinydns_view_logs.php | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'packages/tinydns') diff --git a/packages/tinydns/tinydns_view_logs.php b/packages/tinydns/tinydns_view_logs.php index d1d1cb05..fd0d5d55 100644 --- a/packages/tinydns/tinydns_view_logs.php +++ b/packages/tinydns/tinydns_view_logs.php @@ -31,6 +31,12 @@ require("guiconfig.inc"); +if($_REQUEST['getactivity']) { + $tinydnslogs = `cat /etc/tinydns/log/main/current | /usr/local/bin/tai64nlocal | php -f /usr/local/pkg/tinydns_parse_logs.php | grep -v ":0"`; + echo $tinydnslogs; + exit; +} + /* Defaults to this page but if no settings are present, redirect to setup page */ if(!$config['installedpackages']['tinydns']['config'][0]) Header("Location: /pkg_edit.php?xml=tinydns.xml&id=0"); @@ -44,8 +50,6 @@ include("head.inc"); /* NEED TO FIX there are 2 logs /etc/tinydns/log/main/current and /etc/dnscache/log/main/current */ -$tinydnslogs = `cat /etc/tinydns/log/main/current | /usr/local/bin/tai64nlocal | php -f /usr/local/pkg/tinydns_parse_logs.php | grep -v ":0"`; - /* NEED TO FIX */ if ($_POST['clear']) { // exec("rm /etc/tinydns/log/main/current"); @@ -54,6 +58,26 @@ if ($_POST['clear']) { ?> + + @@ -80,7 +104,9 @@ if ($_POST['clear']) {

-
+
+
One moment please, loading TinyDNS logs...
+
-- cgit v1.2.3