/**
  * @NoAdminRequired
  * @NoCSRFRequired
  */
 public function index()
 {
     if (substr(\OC_Util::getHumanVersion(), 0, 3) != '8.0') {
         // OC >= 8.1
         $response = new TemplateResponse('passwords', 'main');
         $csp = new ContentSecurityPolicy();
         $csp->addAllowedImageDomain('https://icons.duckduckgo.com');
         $csp->addAllowedImageDomain('https://www.google.com');
         $response->setContentSecurityPolicy($csp);
         return $response;
     } else {
         // OC =< 8.0.4
         return new TemplateResponse('passwords', 'main');
     }
 }
Exemple #2
0
p($l->t('Hardening and security guidance'));
?>
 ↗</a></li>
	</ul>
</div>

<div class="section">
	<h2><?php 
p($l->t('Version'));
?>
</h2>
	<strong><?php 
p($theme->getTitle());
?>
</strong> <?php 
p(OC_Util::getHumanVersion());
?>
	<?php 
include 'settings.development.notice.php';
?>
</div>

<?php 
if (!empty($_['updaterAppPanel'])) {
    ?>
	<div id="updater"><?php 
    print_unescaped($_['updaterAppPanel']);
    ?>
</div>
<?php 
}
Exemple #3
0
	<?php if ($_['logFileSize'] > 0): ?>
	<a href="<?php print_unescaped(OC::$server->getURLGenerator()->linkToRoute('settings.LogSettings.download')); ?>" class="button" id="downloadLog"><?php p($l->t('Download logfile'));?></a>
	<?php endif; ?>
	<?php if ($_['entriesremain']): ?>
	<input id="moreLog" type="button" value="<?php p($l->t('More'));?>...">
	<input id="lessLog" type="button" value="<?php p($l->t('Less'));?>...">
	<?php endif; ?>
	<?php if ($_['logFileSize'] > (100 * 1024 * 1024)): ?>
	<br>
	<em>
		<?php p($l->t('The logfile is bigger than 100MB. Downloading it may take some time!')); ?>
	</em>
	<?php endif; ?>
	<?php endif; ?>
</div>

<div class="section">
	<h2><?php p($l->t('Version'));?></h2>
	<strong><?php p($theme->getTitle()); ?></strong> <?php p(OC_Util::getHumanVersion()) ?>
<?php if (OC_Util::getEditionString() === ''): ?>
	<p>
		<?php print_unescaped($l->t('Developed by the <a href="http://ownCloud.org/contact" target="_blank">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank">source code</a> is licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
	</p>
<?php endif; ?>
</div>

<div class="section credits-footer">
	<p><?php print_unescaped($theme->getShortFooter()); ?></p>
</div>
</div>