From e65960b9e636962ff8f606e85c76652ad92dd99d Mon Sep 17 00:00:00 2001
From: A. Täffner <darkalex@firesplash.de>
Date: Mon, 25 Jan 2016 10:33:18 -0500
Subject: [PATCH] did accidentally overwrite previous implmeentation of SPF This one also sets type SPF as well as two records within DNS as of RFC4408 Hop that's okay?
---
interface/web/dns/form/dns_spf.tform.php | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/interface/web/dns/form/dns_spf.tform.php b/interface/web/dns/form/dns_spf.tform.php
index c3daed3..1d43e68 100644
--- a/interface/web/dns/form/dns_spf.tform.php
+++ b/interface/web/dns/form/dns_spf.tform.php
@@ -105,17 +105,21 @@
'data' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
- 'validators' => array (
- 0 => array (
- 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'
- ),
- ),
'default' => '',
'value' => '',
'width' => '30',
'maxlength' => '255'
),
+ /*
+ 'aux' => array (
+ 'datatype' => 'INTEGER',
+ 'formtype' => 'TEXT',
+ 'default' => '0',
+ 'value' => '',
+ 'width' => '10',
+ 'maxlength' => '10'
+ ),
+ */
'ttl' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
@@ -132,7 +136,6 @@
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'Y',
- 'value' => array(0 => 'N', 1 => 'Y')
),
'stamp' => array (
'datatype' => 'VARCHAR',
@@ -151,15 +154,11 @@
'maxlength' => '10'
),
//#################################
- // ENDE Datatable fields
+ // End Datatable fields
//#################################
)
);
-if($_SESSION["s"]["user"]["typ"] == 'admin') {
- unset($form["tabs"]['dns']['fields']['data']['validators']);
- $form["tabs"]['dns']['fields']['data']['validators'][0]['type'] = 'NOTEMPTY';
- $form["tabs"]['dns']['fields']['data']['validators'][0]['errmsg'] = 'data_error_empty';
- $form["tabs"]['dns']['fields']['data']['maxlength'] = 512;
-}
+
+
?>
--
Gitblit v1.9.1