2012-03-25 08:16:39 -04:00
|
|
|
<?php
|
2024-05-27 04:08:53 -04:00
|
|
|
/**
|
|
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2011-2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
*/
|
2016-04-12 06:49:11 -04:00
|
|
|
// @codeCoverageIgnoreStart
|
2017-07-26 10:30:09 -04:00
|
|
|
if (!isset($_)) {//standalone page is not supported anymore - redirect to /
|
2012-03-25 08:16:39 -04:00
|
|
|
require_once '../../lib/base.php';
|
2017-07-26 10:30:09 -04:00
|
|
|
|
2025-05-14 09:51:42 -04:00
|
|
|
$urlGenerator = \OCP\Server::get(\OCP\IURLGenerator::class);
|
2017-07-26 10:30:09 -04:00
|
|
|
header('Location: ' . $urlGenerator->getAbsoluteURL('/'));
|
2012-03-25 08:16:39 -04:00
|
|
|
exit;
|
|
|
|
|
}
|
2016-04-12 06:49:11 -04:00
|
|
|
// @codeCoverageIgnoreEnd
|
2012-03-25 08:16:39 -04:00
|
|
|
?>
|
2025-06-08 14:25:32 -04:00
|
|
|
<div class="body-login-container update">
|
|
|
|
|
<div class="icon-big icon-password"></div>
|
2022-07-18 11:58:05 -04:00
|
|
|
<h2><?php p($l->t('Access forbidden')); ?></h2>
|
2025-06-08 14:25:32 -04:00
|
|
|
<p class="hint">
|
|
|
|
|
<?php if (isset($_['message'])): ?>
|
|
|
|
|
<?php p($_['message']); ?>
|
|
|
|
|
<?php else: ?>
|
|
|
|
|
<?php p($l->t('You are not allowed to access this page.')); ?>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</p>
|
|
|
|
|
<p><a class="button primary" href="<?php p(\OCP\Server::get(\OCP\IURLGenerator::class)->linkTo('', 'index.php')) ?>">
|
|
|
|
|
<?php p($l->t('Back to %s', [$theme->getName()])); ?>
|
|
|
|
|
</a></p>
|
|
|
|
|
</div>
|