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 860B

12345678910111213141516171819202122232425
  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. <ul>
  18. <li class="error">
  19. <?php p($l->t('File not found')); ?><br>
  20. <p class="hint"><?php p($l->t('The specified document has not been found on the server.')); ?></p>
  21. <p class="hint"><a href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>"><?php p($l->t('You can click here to return to %s.', array($theme->getName()))); ?></a></p>
  22. </li>
  23. </ul>
  24. <?php endif; ?>