From e4e73d20753aea539c9ac3ebf7429c6ea64a5963 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 23 Sep 2009 23:59:59 -0400 Subject: After wizard setup check to see if the tinydns directory exists. If it exists redirect to the domains page otherwise redirect to the settings page --- config/tinydns/new_zone_wizard.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/tinydns/new_zone_wizard.xml b/config/tinydns/new_zone_wizard.xml index 84a3d7d8..bff642b4 100644 --- a/config/tinydns/new_zone_wizard.xml +++ b/config/tinydns/new_zone_wizard.xml @@ -233,8 +233,14 @@ tinydns_setup_ping_items(); tinydns_sync_on_changes(); } - - Header("Location: /pkg.php?xml=tinydns.xml"); + + // If service is running redirect to domains page. + // Otherwise redirect to the tinydns settings page. + if(is_dir("/service/tinydns")) + Header("Location: /pkg.php?xml=tinydns_domains.xml"); + else + Header("Location: /pkg.php?xml=tinydns.xml"); + ]]> -- cgit v1.2.3