Merge pull request #6075 from owncloud/ssl-warning

add warning for HTTP connection
This commit is contained in:
Thomas Müller 2013-11-27 00:29:04 -08:00
commit af46d99730
1 changed files with 14 additions and 0 deletions

View File

@ -15,6 +15,20 @@ $levelLabels = array(
<?php
// is ssl working ?
if (!$_['isConnectedViaHTTPS']) {
?>
<fieldset class="personalblock">
<h2><?php p($l->t('Security Warning'));?></h2>
<span class="securitywarning">
<?php p($l->t('You are accessing %s via HTTP. We strongly suggest you configure your server to require using HTTPS instead.', $theme->getTitle())); ?>
</span>
</fieldset>
<?php
}
// is htaccess working ?
if (!$_['htaccessworking']) {
?>