# Subscribe Error echo errMod($ads->errPrint, 'danger'); } } } else { if ($saveMod) { # Subscribe $errText = errMod($errText, 'danger'); } else { # Unsubscribe Error # Unsubscribing Action Does Not Require Other Field Validations # But Other Field Errors Will Not Appear! $smail = isset($_POST['LetheForm_Mail']) && mailVal($_POST['LetheForm_Mail']) ? trim($_POST['LetheForm_Mail']) : NULL; $rems = new lethe(); $rems->OID = $srOrg->Get('ID'); $res = $rems->getUnsubscribing($smail, 0, $LETHE_ORG_SETS['set_org_after_unsubscribe']); if ($res) { $errText = errMod(showIn($formErrors[4], 'page') . '!<script>$("#' . $sr->Get('form_id') . '")[0].reset();</script>', 'success'); } else { $errText = errMod('Unsubscribing Error!<script>$("#' . $sr->Get('form_id') . '")[0].reset();</script>', 'success'); } } } } $opForm->close(); } else { $errText = '<div class="alert alert-danger">' . letheglobal_subscribe_form_error . '</div>'; } echo $errText; } else { if ($pos == 'unsubscribe') {