Improved the DNS manager.
| | |
| | | `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 ; |
| | | |
| | | -- -------------------------------------------------------- |
| | | |
| | |
| | | `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, |
| | |
| | | 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` |
| | | -- |
| | | |
| | | |
| | | -- -------------------------------------------------------- |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |