From cf0587081200f355a940dc871c1cfcd0410303a6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 25 Oct 2008 02:23:21 +0000 Subject: Redirect to the settings screen if the ip address is not defined --- packages/tinydns/tinydns_status.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/tinydns/tinydns_status.php') diff --git a/packages/tinydns/tinydns_status.php b/packages/tinydns/tinydns_status.php index 8325ac03..0310a86d 100644 --- a/packages/tinydns/tinydns_status.php +++ b/packages/tinydns/tinydns_status.php @@ -35,6 +35,9 @@ require("guiconfig.inc"); if(!$config['installedpackages']['tinydns']['config'][0]) Header("Location: /wizard.php?xml=new_zone_wizard.xml"); +if(!$config['installedpackages']['tinydns']['config'][0]['ipaddress']) + Header("Location: /pkg_edit.php?xml=tinydns.xml&id=0"); + $pgtitle = "TinyDNS: Status"; include("head.inc"); -- cgit v1.2.3