tbrehm
2007-08-11 4f4b91f5d030756f4b50634cdd978c97dd16bb8d
Improved the DNS manager.
11 files modified
200 ■■■■■ changed files
install/sql/ispconfig3.sql 19 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_a_edit.php 19 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_alias_edit.php 18 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_cname_edit.php 18 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_hinfo_edit.php 18 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_mx_edit.php 18 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_ns_edit.php 18 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_ptr_edit.php 18 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_rp_edit.php 18 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_srv_edit.php 18 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_txt_edit.php 18 ●●●●● patch | view | raw | blame | history
install/sql/ispconfig3.sql
@@ -77,20 +77,17 @@
  `sys_perm_user` varchar(5) NOT NULL,
  `sys_perm_group` varchar(5) NOT NULL,
  `sys_perm_other` varchar(5) NOT NULL,
  `server_id` int(11) NOT NULL default '1',
  `zone` int(10) unsigned NOT NULL,
  `name` char(64) NOT NULL,
  `type` enum('A','AAAA','CNAME','HINFO','MX','NAPTR','NS','PTR','RP','SRV','TXT') default NULL,
  `type` enum('A','AAAA','ALIAS','CNAME','HINFO','MX','NAPTR','NS','PTR','RP','SRV','TXT') default NULL,
  `data` char(128) NOT NULL,
  `aux` int(10) unsigned NOT NULL,
  `aux` int(10) unsigned NOT NULL default '0',
  `ttl` int(10) unsigned NOT NULL default '86400',
  `active` enum('N','Y') NOT NULL default 'Y',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `rr` (`zone`,`name`,`type`,`data`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Daten für Tabelle `dns_rr`
--
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
@@ -105,6 +102,7 @@
  `sys_perm_user` varchar(5) NOT NULL,
  `sys_perm_group` varchar(5) NOT NULL,
  `sys_perm_other` varchar(5) NOT NULL,
  `server_id` int(11) NOT NULL default '1',
  `origin` char(255) NOT NULL,
  `ns` char(255) NOT NULL,
  `mbox` char(255) NOT NULL,
@@ -119,11 +117,8 @@
  PRIMARY KEY  (`id`),
  UNIQUE KEY `origin` (`origin`),
  KEY `active` (`active`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Daten für Tabelle `dns_soa`
--
-- --------------------------------------------------------
interface/web/dns/dns_a_edit.php
@@ -105,6 +105,25 @@
        
        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;
interface/web/dns/dns_alias_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;
interface/web/dns/dns_cname_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;
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;
interface/web/dns/dns_mx_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;
interface/web/dns/dns_ns_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;
interface/web/dns/dns_ptr_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;
interface/web/dns/dns_rp_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;
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;
interface/web/dns/dns_txt_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;