ftimme
2012-11-14 aa78fde6a92f66b84d626e114d8b54a5fb6ece0c
interface/web/dns/form/dns_srv.tform.php
@@ -32,6 +32,7 @@
*/
global $app;
$form["title"]          = "DNS SRV";
$form["description"]    = "";
@@ -69,7 +70,7 @@
      'zone' => array (
         'datatype'   => 'INTEGER',
         'formtype'   => 'TEXT',
         'default'   => @intval($_REQUEST["zone"]),
         'default'   => @$app->functions->intval($_REQUEST["zone"]),
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
@@ -77,8 +78,15 @@
      'name' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
            'filters'   => array( 0 => array( 'event' => 'SAVE',
                                              'type' => 'IDNTOASCII'),
                                  1 => array( 'event' => 'SHOW',
                                              'type' => 'IDNTOUTF8'),
                                  2 => array( 'event' => 'SAVE',
                                              'type' => 'TOLOWER')
                                ),
         'validators'   => array (    0 => array (   'type'   => 'REGEX',
                                          'regex' => '/^[\w\.\-]{0,64}$/',
                                          'regex' => '/^[\w\.\-]{0,255}$/',
                                          'errmsg'=> 'name_error_regex'),
                           ),
         'default'   => '',
@@ -99,9 +107,9 @@
         'formtype'   => 'TEXT',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'data_error_empty'),
                              1 => array (   'type'   => 'REGEX',
                                          'regex' => '/^[\w\.\-]{0,64}\s[\w\.\-]{0,64}\s[\w\.\-]{0,64}$/',
                                          'errmsg'=> 'srv_error_regex'),
                               1 => array (   'type'   => 'REGEX',
                                           'regex' => '/^[\w\.\-]{0,64}\s[\w\.\-]{0,64}\s[\w\.\-]{0,64}$/',
                                           'errmsg'=> 'srv_error_regex'),
                           ),
         'default'   => '',
         'value'      => '',