From f28f40f7a62b9a6fe939c05b10366b0d66c9ec1e Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 27 Feb 2009 12:50:34 -0500 Subject: [PATCH] Fixed amavisd socket path. --- interface/web/dns/form/dns_rp.tform.php | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/interface/web/dns/form/dns_rp.tform.php b/interface/web/dns/form/dns_rp.tform.php index 81a5c2f..3386b4e 100644 --- a/interface/web/dns/form/dns_rp.tform.php +++ b/interface/web/dns/form/dns_rp.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 rp", + 'title' => "DNS RP", 'width' => 100, 'template' => "templates/dns_rp_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,64}$/', 'errmsg'=> 'name_error_regex'), ), 'default' => '', @@ -91,7 +89,7 @@ 'type' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', - 'default' => 'A', + 'default' => 'RP', 'value' => '', 'width' => '5', 'maxlength' => '5' @@ -102,7 +100,7 @@ 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', 'errmsg'=> 'data_error_empty'), 1 => array ( 'type' => 'REGEX', - 'regex' => '/^[0-9\.]{10,15}$/', + 'regex' => '/^[\w\.\-\s]{1,128}$/', 'errmsg'=> 'data_error_regex'), ), 'default' => '', -- Gitblit v1.9.1