404-profile.php 1019 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. /** @var array $_ */
  7. /** @var \OCP\IL10N $l */
  8. /** @var \OCP\Defaults $theme */
  9. // @codeCoverageIgnoreStart
  10. if (!isset($_)) { //standalone page is not supported anymore - redirect to /
  11. require_once '../../lib/base.php';
  12. $urlGenerator = \OC::$server->getURLGenerator();
  13. header('Location: ' . $urlGenerator->getAbsoluteURL('/'));
  14. exit;
  15. }
  16. // @codeCoverageIgnoreEnd
  17. ?>
  18. <?php if (isset($_['content'])) : ?>
  19. <?php print_unescaped($_['content']) ?>
  20. <?php else : ?>
  21. <div class="body-login-container update">
  22. <div class="icon-big icon-error"></div>
  23. <h2><?php p($l->t('Profile not found')); ?></h2>
  24. <p class="infogroup"><?php p($l->t('The profile does not exist.')); ?></p>
  25. <p><a class="button primary" href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>">
  26. <?php p($l->t('Back to %s', [$theme->getName()])); ?>
  27. </a></p>
  28. </div>
  29. <?php endif; ?>