芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/modules/Autodiscover/Module.php
oModuleSettings; } /** * Initializes Mail Module. * * @ignore */ public function init() { $this->AddEntries( array( 'autodiscover' => 'EntryAutodiscover' ) ); } public function GetAutodiscover($Email) { return ''; } public function EntryAutodiscover() { $sInput = \file_get_contents('php://input'); \Aurora\System\Api::Log('#autodiscover:'); \Aurora\System\Api::LogObject($sInput); $aMatches = array(); $aEmailAddress = array(); \preg_match("/\
(.*?)\<\/AcceptableResponseSchema\>/i", $sInput, $aMatches); \preg_match("/\
(.*?)\<\/EMailAddress\>/", $sInput, $aEmailAddress); if (!empty($aMatches[1]) && !empty($aEmailAddress[1])) { $sAutodiscover = self::Decorator()->GetAutodiscover($aEmailAddress[1]); $sResult = \implode("\n", array( '
', '
', $sAutodiscover, '
', '
')); } if (empty($sResult)) { $usec = $sec = 0; list($usec, $sec) = \explode(' ', \microtime()); $sResult = \implode("\n", array('
', ( empty($aMatches[1]) ? '
' : '
' ), '
', '
600
', '
Invalid Request
', '
', '
', '
', '
')); } \header('Content-Type: text/xml'); $sResult = '<' . '?xml version="1.0" encoding="utf-8"?' . '>' . "\n" . $sResult; echo $sResult; \Aurora\System\Api::Log(''); \Aurora\System\Api::Log($sResult); } }