From 21027b49183891f801aa999c90e970a6df3e4a9e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 9 Dec 2006 04:49:46 +0000 Subject: Default to tinydns_status.php. Redirect to settings page when not configured. --- packages/tinydns/tinydns_status.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/tinydns/tinydns_status.php b/packages/tinydns/tinydns_status.php index 9c862afe..0093c8aa 100644 --- a/packages/tinydns/tinydns_status.php +++ b/packages/tinydns/tinydns_status.php @@ -31,6 +31,10 @@ require("guiconfig.inc"); +/* Defaults to this page but if no settings are present, redirect to setup page */ +if(!$config['installedpackages']['miniupnpd']['config'][0]['iface_array']) + Header("Location: /pkg_edit.php?xml=tinydns.xml&id=0"); + $pgtitle = "TinyDNS: Status"; include("head.inc"); @@ -87,7 +91,7 @@ foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) { $inservice = "NO"; echo ""; echo ""; - echo "$hostname
   $ipaddress"; + echo "$hostname
   |-> $ipaddress"; echo ""; echo ""; if(stristr($status,"DOWN")) @@ -113,7 +117,7 @@ foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) { $ipaddress = $row['failoverip']; $status = file_get_contents("/var/db/pingstatus/$ipaddress"); echo ""; - echo "    |->  "; + echo "          |->  "; echo $ipaddress; if($row['loadbalance']) echo " (LB)"; -- cgit v1.2.3