$_POST['pop3_host'] = 'mail.example.com'; $_POST['pop3_port'] = 110; $_POST['pop3_user'] = '******'; $_POST['pop3_pass'] = '******'; $_POST['pop3_secure'] = 0; $_POST['imap_host'] = 'mail.example.com'; $_POST['imap_port'] = 143; $_POST['imap_user'] = '******'; $_POST['imap_pass'] = '******'; $_POST['imap_secure'] = 0; $_POST['smtp_auth'] = ''; $_POST['bounce_acc'] = 0; $_POST['dkimactive'] = ''; $subAcc = new lethe(); $subAcc->onInstall = true; $subAcc->addSubAccount(); } else { $opSubAcc = $myconn->query("SELECT * FROM " . $db_prefix . "submission_accounts WHERE systemAcc=1"); if (mysqli_num_rows($opSubAcc) == 0) { $errors .= '* Submission Account Error<br>'; } else { $opSubAccRs = $opSubAcc->fetch_assoc(); } } # Organization if (!isset($_POST['org_name']) || empty($_POST['org_name'])) { $errors .= '* ' . organizations_please_enter_a_organization_name . '<br>'; } if (!isset($_POST['org_sender_title']) || empty($_POST['org_sender_title'])) { $errors .= '* ' . organizations_please_enter_a_sender_title . '<br>'; }
} /* Requests */ if (!isset($_GET['ID']) || !is_numeric($_GET['ID'])) { $ID = 0; } else { $ID = intval($_GET['ID']); } /* Demo Check */ if (!isDemo('addAccount,editAccount')) { $errText = errMod(letheglobal_demo_mode_active, 'danger'); } if (isset($_POST['addAccount'])) { # Add Submission Account $myLethe = new lethe(); $myLethe->auth_mode = 2; $myLethe->addSubAccount(); $errText = $myLethe->errPrint; } if (isset($_POST['editAccount'])) { # Edit Submission Account $myLethe = new lethe(); $myLethe->ID = (int) $ID; $myLethe->editSubAccount(); $errText = $myLethe->errPrint; } ?> <?php if ($page_sub2 == 'add') { echo $errText; ?>