28 require_once(
"../class/config.php");
30 if (!$admin->enabled) {
31 $msg->raise(
"ERROR",
"admin", _(
"This page is restricted to authorized staff"));
32 echo
$msg->msg_html_all();
37 "delaccount" => array (
"request",
"string",
""),
38 "newlogin" => array (
"post",
"string",
""),
39 "newpass" => array (
"post",
"string",
""),
45 if ($mail->del_slave_account($delaccount)) {
46 $msg->raise(
"INFO",
"admin", _(
"The requested account has been deleted. It is now denied."));
51 if ($mail->add_slave_account($newlogin,$newpass)) {
52 $msg->raise(
"INFO",
"admin", _(
"The requested account address has been created. It is now allowed."));
53 $newlogin=
'';$newpass=
'';
57 include_once(
"head.php");
59 $c=$admin->listPasswordPolicies();
63 <h3><?php
__(
"Manage allowed accounts for secondary mx"); ?></h3>
67 $c=$mail->enum_slave_account();
69 echo
$msg->msg_html_all();
75 <?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. "); ?>
78 <table border=
"0" cellpadding=
"4" cellspacing=
"0" class=
'tlist'>
79 <tr><th><?php
__(
"Action"); ?></th><th><?php
__(
"Login"); ?></th><th><?php
__(
"Password"); ?></th></tr>
84 <td
class=
"center"><div
class=
"ina delete"><a href=
"adm_mxaccount.php?delaccount=<?php echo urlencode($c[$i]["login
"]); ?>"><?php
__(
"Delete"); ?></a></div></td>
85 <td><?php echo
$c[
$i][
"login"]; ?></td>
86 <td><?php echo
$c[
$i][
"pass"]; ?></td>
93 <p><?php
__(
"If you want to allow a new server to access your mx-hosted domain list, give him an account."); ?></p>
94 <form method=
"post" action=
"adm_mxaccount.php" name=
"main" id=
"main" autocomplete=
"off">
96 <!-- honeypot fields -->
97 <input type=
"text" style=
"display: none" id=
"fakeUsername" name=
"fakeUsername" value=
"" />
98 <input type=
"password" style=
"display: none" id=
"fakePassword" name=
"fakePassword" value=
"" />
100 <table
class=
"tedit">
101 <tr><th><label
for=
"newlogin"><?php
__(
"Login"); ?></label></th><th><label
for=
"newpass"><?php
__(
"Password"); ?></label></th></tr>
103 <td><input type=
"text" class=
"int" value=
"<?php ehe($newlogin); ?>" id=
"newlogin" name=
"newlogin" maxlength=
"64" size=
"32" /><br/><br/></td>
106 <tr
class=
"trbtn"><td colspan=
"2">
107 <input type=
"submit" value=
"<?php __("Add
this account to the allowed list
"); ?>" class=
"inb" />
113 <script type=
"text/javascript">
114 document.forms[
'main'].newlogin.focus();
116 <?php include_once(
"foot.php"); ?>
if(! $admin->enabled) $fields
Manage the list of allowed accounts to operate as secondary MX those account are allowed to list the ...
const DEFAULT_PASS_SIZE
Define constants from vars of /etc/alternc/local.sh The you can't choose where is the AlternC Panel.
display_div_generate_password($pass_size=DEFAULT_PASS_SIZE, $fields_to_fill1="", $fields_to_fill2="", $classcount=3)
Show a button to set a random password for a password field.
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...