Marius Burkard
2016-07-10 e1ceb050e19c7574bca146a8da7047ee4ff456b5
interface/web/dns/form/dns_a.tform.php
@@ -86,7 +86,7 @@
               'type' => 'TOLOWER')
         ),
         'validators' => array (  0 => array ( 'type' => 'REGEX',
               'regex' => '/^[\a-zA-Z0-9\.\-\*]{0,64}$/',
               'regex' => '/^[a-zA-Z0-9\.\-\*]{0,64}$/',
               'errmsg'=> 'name_error_regex'),
         ),
         'default' => '',
@@ -105,12 +105,10 @@
      'data' => array (
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
               'errmsg'=> 'data_error_empty'),
            1 => array ( 'type' => 'REGEX',
               'regex' => '/^([1-9]{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])$/',
               'errmsg'=> 'data_error_regex'),
         ),
         'validators' => array (
            0 => array ( 'type' => 'NOTEMPTY', 'errmsg'=> 'data_error_empty'),
            1 => array ( 'type' => 'ISIPV4', 'errmsg'=> 'ip_error_wrong'),
            ),
         'default' => '',
         'value'  => '',
         'width'  => '30',
@@ -129,7 +127,11 @@
      'ttl' => array (
         'datatype' => 'INTEGER',
         'formtype' => 'TEXT',
         'default' => '86400',
         'validators' => array (  0 => array ( 'type' => 'RANGE',
               'range' => '60:',
               'errmsg'=> 'ttl_range_error'),
         ),
         'default' => '3600',
         'value'  => '',
         'width'  => '10',
         'maxlength' => '10'