From e5f4d29bd7b15c9428245bebc28c69da8c788b8d Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 20 Aug 2007 11:22:31 -0400 Subject: [PATCH] Added a deprecated warning in the interface/sql/ directory. The database sql dump in this directory is not the current development release and the directory will be removed as the installation related code is now located in the install/ tree. The current sql file is available in install/sql/ --- interface/web/dns/dns_srv_edit.php | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/interface/web/dns/dns_srv_edit.php b/interface/web/dns/dns_srv_edit.php index 200c03c..f6d362f 100644 --- a/interface/web/dns/dns_srv_edit.php +++ b/interface/web/dns/dns_srv_edit.php @@ -105,6 +105,24 @@ parent::onSubmit(); } + + function onAfterInsert() { + global $app, $conf; + + // Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = time(); + $app->db->query("UPDATE dns_soa SET serial = $serial WHERE id = $soa_id"); + } + + function onAfterUpdate() { + global $app, $conf; + + // Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = time(); + $app->db->query("UPDATE dns_soa SET serial = $serial WHERE id = $soa_id"); + } } $page = new page_action; -- Gitblit v1.9.1