選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

404.php 1.1KB

12345678910111213141516171819202122232425262728293031
  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. /** @var array $_ */
  8. /** @var \OCP\IL10N $l */
  9. /** @var \OCP\Defaults $theme */
  10. // @codeCoverageIgnoreStart
  11. if (!isset($_)) {//standalone page is not supported anymore - redirect to /
  12. require_once '../../lib/base.php';
  13. $urlGenerator = \OC::$server->getURLGenerator();
  14. header('Location: ' . $urlGenerator->getAbsoluteURL('/'));
  15. exit;
  16. }
  17. // @codeCoverageIgnoreEnd
  18. ?>
  19. <?php if (isset($_['content'])): ?>
  20. <?php print_unescaped($_['content']) ?>
  21. <?php else: ?>
  22. <div class="body-login-container update">
  23. <div class="icon-big icon-search"></div>
  24. <h2><?php p($l->t('Page not found')); ?></h2>
  25. <p class="infogroup"><?php p($l->t('The page could not be found on the server or you may not be allowed to view it.')); ?></p>
  26. <p><a class="button primary" href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>">
  27. <?php p($l->t('Back to %s', [$theme->getName()])); ?>
  28. </a></p>
  29. </div>
  30. <?php endif; ?>