[Web] Some minor changes
parent
c3a4c6d311
commit
ccd4dda397
|
@ -177,4 +177,8 @@ nav .glyphicon {
|
||||||
margin-top: 100px;
|
margin-top: 100px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
color: #959595;
|
color: #959595;
|
||||||
}
|
}
|
||||||
|
.slave-info {
|
||||||
|
padding: 15px 0px 15px 15px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
|
@ -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>
|
<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
|
<?php
|
||||||
endif;
|
endif;
|
||||||
|
if (!preg_match('/y|yes/i', getenv('MASTER'))):
|
||||||
|
?>
|
||||||
|
<li class="text-warning slave-info">[ slave ]</li>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div><!--/.nav-collapse -->
|
</div><!--/.nav-collapse -->
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Slave does not serve UI
|
// 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);
|
header('Location: /SOGo', true, 307);
|
||||||
exit;
|
exit;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.inc.php';
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.inc.php';
|
||||||
$default_autodiscover_config = $autodiscover_config;
|
$default_autodiscover_config = $autodiscover_config;
|
||||||
|
|
Loading…
Reference in New Issue