Update autodiscover.php

I guess we should leave the 'inc/vars.local.inc.php' below the config array so that the user can override the values of the array without loosing modifications everytime he/she updates.

However, I think things were different in the dockerized version, so maybe, ignore this PR if needed.
This commit is contained in:
Phoenix Eve Aspacio 2017-02-14 19:19:29 +08:00 committed by GitHub
parent 635ee7c613
commit f02e457bb9
1 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,7 @@
<?php <?php
require_once 'inc/vars.inc.php'; require_once 'inc/vars.inc.php';
if(file_exists('inc/vars.local.inc.php')) {
include_once 'inc/vars.local.inc.php';
}
ini_set('error_reporting', '0'); ini_set('error_reporting', '0');
$config = array( $config = array(
'useEASforOutlook' => 'yes', 'useEASforOutlook' => 'yes',
'autodiscoverType' => 'activesync', 'autodiscoverType' => 'activesync',
@ -23,6 +21,9 @@ $config = array(
); );
/* ---------- DO NOT MODIFY ANYTHING BEYOND THIS LINE. IGNORE AT YOUR OWN RISK. ---------- */ /* ---------- DO NOT MODIFY ANYTHING BEYOND THIS LINE. IGNORE AT YOUR OWN RISK. ---------- */
if(file_exists('inc/vars.local.inc.php')) {
include_once 'inc/vars.local.inc.php';
}
if ($config['useEASforOutlook'] == 'no') { if ($config['useEASforOutlook'] == 'no') {
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Outlook')) { if (strpos($_SERVER['HTTP_USER_AGENT'], 'Outlook')) {