Ajout d'infos sur comment tester les autoconfig

This commit is contained in:
Alan Garcia 2013-07-22 17:09:03 +00:00
parent c8ebae061d
commit 930ce6e3c2
2 changed files with 6 additions and 0 deletions

View File

@ -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');

View File

@ -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']));