1
0

404-profile.php 887 B

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