[Web] Minor changes

This commit is contained in:
andryyy
2020-01-29 10:37:55 +01:00
parent de5fb9a03c
commit cbe4f4ce70
2 changed files with 20 additions and 1 deletions

View File

@@ -1,4 +1,10 @@
<?php
// Slave does not serve UI
if (!preg_match('/y|yes/i', getenv('MASTER'))) {
header('Location: /SOGo', true, 307);
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.inc.php';
$default_autodiscover_config = $autodiscover_config;