nextcloud/core/templates/403.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
639 B
PHP
Raw Normal View History

2012-03-25 08:16:39 -04:00
<?php
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2011-2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
// @codeCoverageIgnoreStart
if (!isset($_)) {//standalone page is not supported anymore - redirect to /
2012-03-25 08:16:39 -04:00
require_once '../../lib/base.php';
$urlGenerator = \OC::$server->getURLGenerator();
header('Location: ' . $urlGenerator->getAbsoluteURL('/'));
2012-03-25 08:16:39 -04:00
exit;
}
// @codeCoverageIgnoreEnd
2012-03-25 08:16:39 -04:00
?>
<div class="guest-box">
<h2><?php p($l->t('Access forbidden')); ?></h2>
<p class='hint'><?php if (isset($_['message'])) {
p($_['message']);
}?></p>
2012-03-25 08:16:39 -04:00
</ul>