aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns/tinydns_domains.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-14 20:15:39 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-14 20:15:39 -0400
commitc78b004d166bb8ead6c1d9e5984f55f0fd97f866 (patch)
treebef508ba1f96ba3b3cc5d6530516d231400d2f69 /config/tinydns/tinydns_domains.xml
parent88b1261978373f9222236dc0fd4578d0b399afae (diff)
downloadpfsense-packages-c78b004d166bb8ead6c1d9e5984f55f0fd97f866.tar.gz
pfsense-packages-c78b004d166bb8ead6c1d9e5984f55f0fd97f866.tar.bz2
pfsense-packages-c78b004d166bb8ead6c1d9e5984f55f0fd97f866.zip
Fix numerous small issues with automatic sync. Speedup process 500*
Diffstat (limited to 'config/tinydns/tinydns_domains.xml')
-rw-r--r--config/tinydns/tinydns_domains.xml24
1 files changed, 17 insertions, 7 deletions
diff --git a/config/tinydns/tinydns_domains.xml b/config/tinydns/tinydns_domains.xml
index 19468213..59ff56a7 100644
--- a/config/tinydns/tinydns_domains.xml
+++ b/config/tinydns/tinydns_domains.xml
@@ -219,28 +219,38 @@
</field>
</fields>
<custom_delete_php_command>
+ $dnssync = true;
tinydns_create_zone_file();
tinydns_setup_ping_items();
tinydns_sync_on_changes();
</custom_delete_php_command>
<custom_php_validation_command>
- tinydns_cleanup_addedit_form_record();
+ if(function_exists("tinydns_cleanup_addedit_form_record"))
+ tinydns_cleanup_addedit_form_record();
+ else {
+ require_once("/usr/local/pkg/tinydns.inc");
+ }
</custom_php_validation_command>
<custom_add_php_command>
+ $dnssync = true;
log_error("Begin tinydns add");
tinydns_create_zone_file();
log_error("Zone file done.");
tinydns_setup_ping_items();
log_error("Ping items done.");
tinydns_sync_on_changes();
+ log_error("Sync items done.");
</custom_add_php_command>
<custom_php_resync_config_command>
- log_error("Begin tinydns resync");
- tinydns_create_zone_file();
- log_error("Zone file done.");
- tinydns_setup_ping_items();
- log_error("Ping items done.");
- tinydns_sync_on_changes();
+ if(!$dnssync) {
+ log_error("Begin tinydns resync");
+ tinydns_create_zone_file();
+ log_error("Zone file done.");
+ tinydns_setup_ping_items();
+ log_error("Ping items done.");
+ tinydns_sync_on_changes();
+ log_error("Sync items done.");
+ }
</custom_php_resync_config_command>
<custom_php_command_before_form>
unset($_POST['temp']);