} @imap_close($mbox); @imap_errors(); @imap_alerts(); } else { // Mask errors to prevent callback failure.. @imap_errors(); @imap_alerts(); $msg = $msg_script_action2; } } else { $msg = $msg_script_action3; } echo $JSON->encode(array('action' => $action, 'msg' => $msg, 'html' => trim($html))); exit; } // Add.. if (isset($_POST['process'])) { $MSIMAP->addImapAccount(); $OK1 = true; } // Update.. if (isset($_POST['update'])) { $MSIMAP->editImapAccount(); $OK2 = true; } $title = isset($_GET['edit']) ? $msg_imap25 : $msg_adheader39; $loadJQAlertify = true; include PATH . 'templates/header.php'; include PATH . 'templates/system/imap/imap.php'; include PATH . 'templates/footer.php';