nextcloud/core/templates/404.php

26 lines
793 B
PHP
Raw Normal View History

<?php
/** @var $_ array */
/** @var $l \OCP\IL10N */
/** @var $theme OC_Theme */
// @codeCoverageIgnoreStart
2012-09-07 17:22:01 +04:00
if(!isset($_)) {//also provide standalone error page
2011-06-24 01:47:46 +04:00
require_once '../../lib/base.php';
2011-07-29 23:36:03 +04:00
$tmpl = new OC_Template( '', '404', 'guest' );
$tmpl->printPage();
exit;
}
// @codeCoverageIgnoreEnd
?>
<?php if (isset($_['content'])): ?>
<?php print_unescaped($_['content']) ?>
<?php else: ?>
<ul>
<li class="error">
<?php p($l->t('File not found')); ?><br>
<p class="hint"><?php p($l->t('The specified document has not been found on the server.')); ?></p>
<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>
</li>
</ul>
<?php endif; ?>