30 require_once(
"../class/config.php");
32 if (!$admin->enabled) {
33 __(
"This page is restricted to authorized staff");
38 "delaccount" => array (
"request",
"string",
""),
39 "newlogin" => array (
"request",
"string",
""),
40 "newpass" => array (
"request",
"string",
""),
46 if ($mail->del_slave_account($delaccount)) {
47 $error=_(
"The requested account has been deleted. It is now denied.");
52 if ($mail->add_slave_account($newlogin,$newpass)) {
53 $error=_(
"The requested account address has been created. It is now allowed.");
54 $newlogin=
false;$newpass=
false;
58 include_once(
"head.php");
60 <h3><?php
__(
"Manage allowed accounts for secondary mx"); ?></h3>
65 echo
"<p class=\"alert alert-danger\">$error</p>";
68 $c=$mail->enum_slave_account();
74 <?php
__(
"Here is the list of the allowed accounts for secondary mx management. You can configure the alternc-secondarymx package on your secondary mx server and give him the login/pass that will grant him access to your server's mx-hosted domain list. "); ?>
77 <table border=
"0" cellpadding=
"4" cellspacing=
"0" class=
'tlist'>
78 <tr><th><?php
__(
"Action"); ?></th><th><?php
__(
"Login"); ?></th><th><?php
__(
"Password"); ?></th></tr>
83 <td
class=
"center"><div
class=
"ina delete"><a href=
"adm_mxaccount.php?delaccount=<?php echo urlencode($c[$i]["login
"]); ?>"><?php
__(
"Delete"); ?></a></div></td>
84 <td><?php echo
$c[
$i][
"login"]; ?></td>
85 <td><?php echo $c[
$i][
"pass"]; ?></td>
92 <p><?php
__(
"If you want to allow a new server to access your mx-hosted domain list, give him an account."); ?></p>
93 <form method=
"post" action=
"adm_mxaccount.php" name=
"main" id=
"main">
95 <tr><th><label
for=
"newlogin"><?php
__(
"Login"); ?></label></th><th><label
for=
"newpass"><?php
__(
"Password"); ?></label></th></tr>
97 <td><input type=
"text" class=
"int" value=
"<?php ehe($newlogin); ?>" id=
"newlogin" name=
"newlogin" maxlength=
"64" size=
"32" /><br/><br/></td>
100 <tr
class=
"trbtn"><td colspan=
"2">
101 <input type=
"submit" value=
"<?php __("Add
this account to the allowed list
"); ?>" class=
"inb" />
107 <script type=
"text/javascript">
108 document.forms[
'main'].newlogin.focus();
109 document.forms[
'main'].setAttribute(
'autocomplete',
'off');
111 <?php include_once(
"foot.php"); ?>