@@ -94,7 +94,7 @@ function onShowEnd() {
9494 $ this ->id = 1 ;
9595 $ old_data = strtolower ($ rec ['data ' ]);
9696 $ app ->tpl ->setVar ("data " , $ old_data , true );
97- if ($ rec ['active ' ] == 'Y ' ) $ app ->tpl ->setVar ("active " , "CHECKED " ); else $ app ->tpl ->setVar ("active " , "UNCHECKED " );
97+ // if ($rec['active'] == 'Y') $app->tpl->setVar("active", "CHECKED"); else $app->tpl->setVar("active", "UNCHECKED");
9898 $ dmarc_rua = '' ;
9999 $ dmarc_ruf = '' ;
100100 $ dmac_rf = '' ;
@@ -120,13 +120,13 @@ function onShowEnd() {
120120 if (preg_match ("/^pct=/ " , $ part )) $ dmarc_pct = str_replace ('pct= ' , '' , $ part );
121121 if (preg_match ("/^ri=/ " , $ part )) $ dmarc_ri = str_replace ('ri= ' , '' , $ part );
122122 }
123- }
123+ }
124124
125125 //set html-values
126126 $ app ->tpl ->setVar ('domain ' , $ domain_name , true );
127127
128128 //create dmarc-policy-list
129- $ dmarc_policy_value = array (
129+ $ dmarc_policy_value = array (
130130 'none ' => 'dmarc_policy_none_txt ' ,
131131 'quarantine ' => 'dmarc_policy_quarantine_txt ' ,
132132 'reject ' => 'dmarc_policy_reject_txt ' ,
@@ -152,7 +152,7 @@ function onShowEnd() {
152152 unset($ temp );
153153
154154 //create dmarc-adkim-list
155- $ dmarc_adkim_value = array (
155+ $ dmarc_adkim_value = array (
156156 'r ' => 'dmarc_adkim_r_txt ' ,
157157 's ' => 'dmarc_adkim_s_txt ' ,
158158 );
@@ -164,7 +164,7 @@ function onShowEnd() {
164164 $ app ->tpl ->setVar ('dmarc_adkim ' , $ dmarc_adkim_list );
165165
166166 //create dmarc-aspf-list
167- $ dmarc_aspf_value = array (
167+ $ dmarc_aspf_value = array (
168168 'r ' => 'dmarc_aspf_r_txt ' ,
169169 's ' => 'dmarc_aspf_s_txt ' ,
170170 );
@@ -183,7 +183,7 @@ function onShowEnd() {
183183 $ app ->tpl ->setVar ("dmarc_ri " , $ dmarc_ri , true );
184184
185185 //create dmarc-sp-list
186- $ dmarc_sp_value = array (
186+ $ dmarc_sp_value = array (
187187 'same ' => 'dmarc_sp_same_txt ' ,
188188 'none ' => 'dmarc_sp_none_txt ' ,
189189 'quarantine ' => 'dmarc_sp_quarantine_txt ' ,
@@ -251,7 +251,7 @@ function onSubmit() {
251251 $ this ->dataRecord ['dmarc_pct ' ] = $ app ->functions ->intval ($ this ->dataRecord ['dmarc_pct ' ]);
252252 if ($ this ->dataRecord ['dmarc_pct ' ] < 0 ) $ this ->dataRecord ['dmarc_pct ' ] = 0 ;
253253 if ($ this ->dataRecord ['dmarc_pct ' ] > 100 ) $ this ->dataRecord ['dmarc_pct ' ] = 100 ;
254-
254+
255255 //create dmarc-record
256256 $ dmarc_record [] = 'p= ' .$ this ->dataRecord ['dmarc_policy ' ];
257257
@@ -270,7 +270,7 @@ function onSubmit() {
270270 unset ($ dmarc_rua );
271271 unset($ temp );
272272 }
273-
273+
274274 if (!empty ($ this ->dataRecord ['dmarc_ruf ' ])) {
275275 $ dmarc_ruf = explode (' ' , $ this ->dataRecord ['dmarc_ruf ' ]);
276276 $ dmarc_ruf = array_filter ($ dmarc_ruf );
@@ -286,7 +286,7 @@ function onSubmit() {
286286 unset ($ dmarc_ruf );
287287 unset($ temp );
288288 }
289-
289+
290290 $ fo_rec = array ();
291291 if (isset ($ this ->dataRecord ['dmarc_fo0 ' ])) $ fo_rec [] = '0 ' ;
292292 if (isset ($ this ->dataRecord ['dmarc_fo1 ' ])) $ fo_rec [] = '1 ' ;
@@ -328,7 +328,7 @@ function onSubmit() {
328328
329329 $ this ->dataRecord ['name ' ] = '_dmarc. ' . $ soa ['origin ' ];
330330 if (isset ($ this ->dataRecord ['active ' ])) $ this ->dataRecord ['active ' ] = 'Y ' ;
331-
331+
332332 // Set the server ID of the rr record to the same server ID as the parent record.
333333 $ this ->dataRecord ["server_id " ] = $ soa ["server_id " ];
334334
0 commit comments