aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@su.local>2009-09-23 23:59:59 -0400
committerScott Ullrich <sullrich@su.local>2009-09-23 23:59:59 -0400
commite4e73d20753aea539c9ac3ebf7429c6ea64a5963 (patch)
tree7fb7cad48d4e3d186847ac6bd2e01ba299c2ce29
parentfb1874cb7f42d8da0a371ad9bf753bb196a7f168 (diff)
downloadpfsense-packages-e4e73d20753aea539c9ac3ebf7429c6ea64a5963.tar.gz
pfsense-packages-e4e73d20753aea539c9ac3ebf7429c6ea64a5963.tar.bz2
pfsense-packages-e4e73d20753aea539c9ac3ebf7429c6ea64a5963.zip
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
-rw-r--r--config/tinydns/new_zone_wizard.xml10
1 files changed, 8 insertions, 2 deletions
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");
+
]]>
</stepsubmitbeforesave>
</step>