2011-04-18 08:04:55 -04:00
|
|
|
<?php
|
2024-05-27 04:08:53 -04:00
|
|
|
/**
|
|
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2011-2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
*/
|
2020-08-17 11:16:50 -04:00
|
|
|
/** @var array $_ */
|
|
|
|
|
/** @var \OCP\IL10N $l */
|
|
|
|
|
/** @var \OCP\Defaults $theme */
|
2016-04-12 06:49:11 -04:00
|
|
|
// @codeCoverageIgnoreStart
|
2017-07-26 10:30:09 -04:00
|
|
|
if (!isset($_)) {//standalone page is not supported anymore - redirect to /
|
2011-06-23 17:47:46 -04:00
|
|
|
require_once '../../lib/base.php';
|
2017-07-26 10:30:09 -04:00
|
|
|
|
|
|
|
|
$urlGenerator = \OC::$server->getURLGenerator();
|
|
|
|
|
header('Location: ' . $urlGenerator->getAbsoluteURL('/'));
|
2011-04-18 08:04:55 -04:00
|
|
|
exit;
|
|
|
|
|
}
|
2016-04-12 06:49:11 -04:00
|
|
|
// @codeCoverageIgnoreEnd
|
2011-04-18 08:04:55 -04:00
|
|
|
?>
|
2013-07-29 09:33:23 -04:00
|
|
|
<?php if (isset($_['content'])): ?>
|
|
|
|
|
<?php print_unescaped($_['content']) ?>
|
|
|
|
|
<?php else: ?>
|
2018-10-02 16:47:12 -04:00
|
|
|
<div class="body-login-container update">
|
2022-07-18 11:58:05 -04:00
|
|
|
<div class="icon-big icon-search"></div>
|
2022-10-14 01:42:25 -04:00
|
|
|
<h2><?php p($l->t('Page not found')); ?></h2>
|
2023-04-26 05:21:56 -04:00
|
|
|
<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>
|
2018-10-02 16:47:12 -04:00
|
|
|
<p><a class="button primary" href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>">
|
2020-03-26 04:30:18 -04:00
|
|
|
<?php p($l->t('Back to %s', [$theme->getName()])); ?>
|
2018-10-02 16:47:12 -04:00
|
|
|
</a></p>
|
|
|
|
|
</div>
|
2013-07-29 09:33:23 -04:00
|
|
|
<?php endif; ?>
|