1
0

403.php 639 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2011-2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. // @codeCoverageIgnoreStart
  8. if (!isset($_)) {//standalone page is not supported anymore - redirect to /
  9. require_once '../../lib/base.php';
  10. $urlGenerator = \OC::$server->getURLGenerator();
  11. header('Location: ' . $urlGenerator->getAbsoluteURL('/'));
  12. exit;
  13. }
  14. // @codeCoverageIgnoreEnd
  15. ?>
  16. <div class="guest-box">
  17. <h2><?php p($l->t('Access forbidden')); ?></h2>
  18. <p class='hint'><?php if (isset($_['message'])) {
  19. p($_['message']);
  20. }?></p>
  21. </ul>