Changeset View
Changeset View
Standalone View
Standalone View
lib/AutodiscoverJson.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | protected function handle_response() | ||||
} | } | ||||
$json = array( | $json = array( | ||||
'Protocol' => 'ActiveSync', | 'Protocol' => 'ActiveSync', | ||||
'Url' => $this->config['activesync'] | 'Url' => $this->config['activesync'] | ||||
); | ); | ||||
} | } | ||||
elseif (strtolower($_GET['Protocol']) == 'autodiscoverv1') { | elseif (strtolower($_GET['Protocol']) == 'autodiscoverv1') { | ||||
$json = array( | $json = array( | ||||
'Protocol' => 'ActiveSync', | 'Protocol' => 'AutoDiscoverV1', | ||||
'Url' => 'https://' . $_SERVER['HTTP_HOST'] . '/Autodiscover/Autodiscover.xml' | 'Url' => 'https://' . $_SERVER['HTTP_HOST'] . '/Autodiscover/Autodiscover.xml' | ||||
); | ); | ||||
} | } | ||||
else { | else { | ||||
http_response_code(400); | http_response_code(400); | ||||
$json = array( | $json = array( | ||||
'ErrorCore' => 'InvalidProtocol', | 'ErrorCore' => 'InvalidProtocol', | ||||
'ErrorMessage' => 'The given protocol value \u0027' | 'ErrorMessage' => 'The given protocol value \u0027' | ||||
Show All 15 Lines |