You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

404.php 931B

1234567891011121314151617181920212223242526
  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-search"></div>
  19. <h2><?php p($l->t('Page not found')); ?></h2>
  20. <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>
  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; ?>