[Web] Some minor changes

master
andryyy 2020-03-28 19:51:42 +01:00
parent c3a4c6d311
commit ccd4dda397
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 12 additions and 3 deletions

View File

@ -178,3 +178,7 @@ nav .glyphicon {
margin-bottom: 20px;
color: #959595;
}
.slave-info {
padding: 15px 0px 15px 15px;
font-weight: bold;
}

View File

@ -147,6 +147,11 @@
<li class="logged-in-as"><a href="#" onclick="logout.submit()"><b class="username-lia"><?= htmlspecialchars($_SESSION['mailcow_cc_username']); ?> <span class="text-info">(<?= htmlspecialchars($_SESSION['dual-login']['username']); ?>)</span> </b><span class="glyphicon glyphicon-log-out"></span></a></li>
<?php
endif;
if (!preg_match('/y|yes/i', getenv('MASTER'))):
?>
<li class="text-warning slave-info">[ slave ]</li>
<?php
endif;
?>
</ul>
</div><!--/.nav-collapse -->

View File

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