File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 212212 }
213213 unset($ output );
214214 }
215+
216+ if (!empty ($ _POST ['v_reject ' ]) && $ v_antispam == "yes " && $ v_reject != 'yes ' ) {
217+ exec (HESTIA_CMD ."v-add-mail-domain-reject " .$ user ." " .$ v_domain ." yes " , $ output , $ return_var );
218+ check_return_code ($ return_var , $ output );
219+ $ v_reject = 'yes ' ;
220+ unset($ output );
221+ }
222+ if (empty ($ _POST ['v_reject ' ]) && $ v_reject == 'yes ' ) {
223+ exec (HESTIA_CMD ."v-delete-mail-domain-reject " .$ user ." " .$ v_domain ." yes " , $ output , $ return_var );
224+ check_return_code ($ return_var , $ output );
225+ $ v_reject = '' ;
226+ unset($ output );
227+ }
215228
216229 // Change catchall address
217230 if ((!empty ($ v_catchall )) && (!empty ($ _POST ['v_catchall ' ])) && (empty ($ _SESSION ['error_msg ' ]))) {
Original file line number Diff line number Diff line change 101101 </ td >
102102 </ tr >
103103 < tr >
104- < td class ="vst-text input-label step-top ">
104+ < td class ="vst-text input-label ">
105105 < label > < input type ="checkbox " size ="20 " class ="vst-checkbox " name ="v_reject " < ?php if ($v_reject == 'yes') echo "checked=yes"; ?> > < ?=_('Reject spam');?> </ label >
106106 </ td >
107107 </ tr >
You can’t perform that action at this time.
0 commit comments