From 2cb1563f63386b35a69e460051aa9b4a2851d104 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Wed, 30 May 2012 07:30:44 -0400 Subject: [PATCH] - Added (clickable) placeholders to client messaging function. - Added check so that the client password isn't inserted into the message (for security reasons). --- interface/web/dns/form/dns_srv.tform.php | 31 +++++++++++++++++++++++-------- 1 files changed, 23 insertions(+), 8 deletions(-) diff --git a/interface/web/dns/form/dns_srv.tform.php b/interface/web/dns/form/dns_srv.tform.php index 6b99b06..0891c92 100644 --- a/interface/web/dns/form/dns_srv.tform.php +++ b/interface/web/dns/form/dns_srv.tform.php @@ -51,7 +51,7 @@ $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete $form["tabs"]['dns'] = array ( - 'title' => "DNS srv", + 'title' => "DNS SRV", 'width' => 100, 'template' => "templates/dns_srv_edit.htm", 'fields' => array ( @@ -69,7 +69,7 @@ 'zone' => array ( 'datatype' => 'INTEGER', 'formtype' => 'TEXT', - 'default' => intval($_REQUEST["zone"]), + 'default' => @intval($_REQUEST["zone"]), 'value' => '', 'width' => '30', 'maxlength' => '255' @@ -77,10 +77,8 @@ 'name' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'name_error_empty'), - 1 => array ( 'type' => 'REGEX', - 'regex' => '/^[\w\.\-]{1,64}$/', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,255}$/', 'errmsg'=> 'name_error_regex'), ), 'default' => '', @@ -101,13 +99,15 @@ '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'), ), 'default' => '', 'value' => '', 'width' => '30', 'maxlength' => '255' ), - /* 'aux' => array ( 'datatype' => 'INTEGER', 'formtype' => 'TEXT', @@ -116,7 +116,6 @@ 'width' => '10', 'maxlength' => '10' ), - */ 'ttl' => array ( 'datatype' => 'INTEGER', 'formtype' => 'TEXT', @@ -131,6 +130,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 ################################## -- Gitblit v1.9.1