tbrehm
2007-08-11 4f4b91f5d030756f4b50634cdd978c97dd16bb8d
interface/web/dns/dns_hinfo_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;