26 require_once(
"../class/config_nochk.php");
29 "json" => array (
"get",
"boolean",
"0"),
35 if (!isset($_SERVER[
'PHP_AUTH_USER'])) {
36 header(
'WWW-Authenticate: Basic realm="MX List Authentication"');
37 header(
'HTTP/1.0 401 Unauthorized');
40 if ($mail->check_slave_account($_SERVER[
'PHP_AUTH_USER'],$_SERVER[
'PHP_AUTH_PW'])) {
42 $mail->echo_domain_list();
44 print_r($mail->echo_domain_list(
"json"));
47 header(
'WWW-Authenticate: Basic realm="MX List Authentication"');
48 header(
'HTTP/1.0 401 Unauthorized');
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
$fields
Returns the list of mx-hosted domains to a secondary mx.