ftimme
2009-04-02 56b0b8951c33fe2b83b41e8d5935f1bc5f522972
- Added "serial" and "stamp" columns to the dns_rr table.
23 files modified
233 ■■■■■ changed files
install/sql/ispconfig3.sql 2 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_a_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_aaaa_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_alias_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_cname_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_hinfo_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_mx_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_ns_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_ptr_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_rp_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_srv_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_txt_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_a.tform.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_aaaa.tform.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_alias.tform.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_cname.tform.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_hinfo.tform.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_mx.tform.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_ns.tform.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_ptr.tform.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_rp.tform.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_srv.tform.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_txt.tform.php 16 ●●●●● patch | view | raw | blame | history
install/sql/ispconfig3.sql
@@ -314,6 +314,8 @@
  `aux` int(11) unsigned NOT NULL default '0',
  `ttl` int(11) unsigned NOT NULL default '86400',
  `active` enum('N','Y') NOT NULL default 'Y',
  `stamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
  `serial` int(10) unsigned default NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `rr` (`zone`,`name`,`type`,`data`)
) ENGINE=MyISAM AUTO_INCREMENT=1;
interface/web/dns/dns_a_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/dns_aaaa_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/dns_alias_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/dns_cname_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/dns_hinfo_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/dns_mx_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/dns_ns_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/dns_ptr_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/dns_rp_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/dns_srv_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/dns_txt_edit.php
@@ -100,6 +100,11 @@
        // Set the server ID of the rr record to the same server ID as the parent record.
        $this->dataRecord["server_id"] = $soa["server_id"];
        
        // Update the serial number  and timestamp of the RR record
        $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
        $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
        $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
        parent::onSubmit();
    }
    
interface/web/dns/form/dns_a.tform.php
@@ -132,6 +132,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
interface/web/dns/form/dns_aaaa.tform.php
@@ -132,6 +132,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
interface/web/dns/form/dns_alias.tform.php
@@ -134,6 +134,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
interface/web/dns/form/dns_cname.tform.php
@@ -132,6 +132,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
interface/web/dns/form/dns_hinfo.tform.php
@@ -131,6 +131,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
interface/web/dns/form/dns_mx.tform.php
@@ -132,6 +132,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
interface/web/dns/form/dns_ns.tform.php
@@ -132,6 +132,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
interface/web/dns/form/dns_ptr.tform.php
@@ -134,6 +134,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
interface/web/dns/form/dns_rp.tform.php
@@ -132,6 +132,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
interface/web/dns/form/dns_srv.tform.php
@@ -129,6 +129,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################
interface/web/dns/form/dns_txt.tform.php
@@ -129,6 +129,22 @@
            'default'    => 'Y',
            'value'        => array(0 => 'N',1 => 'Y')
        ),
        'stamp' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '30',
            'maxlength'    => '255'
        ),
        'serial' => array (
            'datatype'    => 'INTEGER',
            'formtype'    => 'TEXT',
            'default'    => '',
            'value'        => '',
            'width'        => '10',
            'maxlength'    => '10'
        ),
    ##################################
    # ENDE Datatable fields
    ##################################