Ajout d'infos sur comment tester les autoconfig
This commit is contained in:
parent
c8ebae061d
commit
930ce6e3c2
|
@ -1,6 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
require_once("../class/config_nochk.php");
|
require_once("../class/config_nochk.php");
|
||||||
|
|
||||||
|
# Test it :
|
||||||
|
# wget http://FQDN/mailautoconfig_outlook.php -O - --post-data="test@example.tls" -q
|
||||||
|
|
||||||
// Created by Alesandro Slepcevic - alesandro@plus.hr
|
// Created by Alesandro Slepcevic - alesandro@plus.hr
|
||||||
if ( $_SERVER['REQUEST_METHOD'] === 'POST' ){
|
if ( $_SERVER['REQUEST_METHOD'] === 'POST' ){
|
||||||
$postText = file_get_contents('php://input');
|
$postText = file_get_contents('php://input');
|
||||||
|
|
|
@ -3,6 +3,9 @@ require_once("../class/config_nochk.php");
|
||||||
|
|
||||||
header ("Content-Type:text/xml");
|
header ("Content-Type:text/xml");
|
||||||
|
|
||||||
|
# Test it :
|
||||||
|
# wget -O - -q http://FQDN/mailautoconfig_thunderbird.php?emailaddress=test@example.tld
|
||||||
|
|
||||||
if (empty($_GET['emailaddress'])) die(_("Error: Missing GET of emailaddress"));
|
if (empty($_GET['emailaddress'])) die(_("Error: Missing GET of emailaddress"));
|
||||||
|
|
||||||
$emailDomain = explode('@', rawurldecode($_GET['emailaddress']));
|
$emailDomain = explode('@', rawurldecode($_GET['emailaddress']));
|
||||||
|
|
Loading…
Reference in New Issue