From 3fc28c0142bf8ab4e2cfae44931e2a51aadc4d51 Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Mon, 25 Feb 2013 13:51:37 -0500
Subject: [PATCH] - Added: remoting queries with a lot of results (e.g. email addresses or alias domains or dns rr) lead to non-functioning soap requests   - added '#OFFSET#' AND '#LIMIT#' handling to the query   - added automatic 'WHERE 1' if an empty array was given as query   example: $result = $api->sites_web_domain_get('type' => 'vhost', '#OFFSET#' => 25, '#LIMIT#' => 50); to get the websites 26 to 75

---
 interface/web/dns/form/dns_soa.tform.php |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/interface/web/dns/form/dns_soa.tform.php b/interface/web/dns/form/dns_soa.tform.php
index a7b90f4..ebc49cf 100644
--- a/interface/web/dns/form/dns_soa.tform.php
+++ b/interface/web/dns/form/dns_soa.tform.php
@@ -217,8 +217,9 @@
 		'xfer' => array (
 			'datatype'	=> 'VARCHAR',
 			'formtype'	=> 'TEXT',
-			'validators'	=> array ( 	0 => array (	'type'	=> 'REGEX',
-														'regex' => '/^[0-9\.\,]{1,255}$/',
+			'validators'	=> array ( 	0 => array (	'type'	=> 'ISIP',
+														'allowempty' => 'y',
+														'separator' => ',',
 														'errmsg'=> 'xfer_error_regex'),
 									),
 			'default'	=> '',
@@ -229,13 +230,11 @@
 		'also_notify' => array (
 			'datatype'	=> 'VARCHAR',
 			'formtype'	=> 'TEXT',
-			'validators'    => array (  0 => array (	'type'	=> 'REGEX',
-														'regex' => '/^(((25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(;){0,1}(\ ){0,1}){0,10}$/',
+			'validators'    => array (  0 => array (	'type'	=> 'ISIP',
+														'allowempty' => 'y',
+														'separator' => ',',
 														'errmsg'=> 'also_notify_error_regex'
 													),
-//										0 => array (    'type'  => 'ISIPV4',
-//														'errmsg'=> 'also_notify_error_regex'
-//													),
 									),
 			'default'	=> '',
 			'value'		=> '',

--
Gitblit v1.9.1