404.php 956 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /** @var $_ array */
  3. /** @var $l \OCP\IL10N */
  4. /** @var $theme OCP\Defaults */
  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 icon-white"></div>
  19. <h2><?php p($l->t('File not found')); ?></h2>
  20. <p class="infogroup"><?php p($l->t('The document could not be found on the server. Maybe the share was deleted or has expired?')); ?></p>
  21. <p><a class="button primary" href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>">
  22. <?php p($l->t('Back to %s', array($theme->getName()))); ?>
  23. </a></p>
  24. </div>
  25. <?php endif; ?>