-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
98 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
// @codeCoverageIgnoreStart | ||
if (!isset($_)) {//also provide standalone error page | ||
require_once '../../lib/base.php'; | ||
|
||
$tmpl = new OC_Template('', '403', 'guest'); | ||
$tmpl->printPage(); | ||
exit; | ||
} | ||
// @codeCoverageIgnoreEnd | ||
?> | ||
<h1 class="title is-1"><?php p($l->t('Access forbidden')); ?></h1> | ||
<ul class="message is-danger"> | ||
<li class='message-body'> | ||
<br> | ||
<p class='hint'><?php if (isset($_['file'])) { | ||
p($_['file']); | ||
}?></p> | ||
</li> | ||
</ul> | ||
<a class="button" <?php print_unescaped(\OC_User::getLogoutAttribute()); ?>"><?php p($l->t('Return to login page')); ?></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** @var $_ array */ | ||
/** @var $l \OCP\IL10N */ | ||
/** @var $theme OC_Theme */ | ||
// @codeCoverageIgnoreStart | ||
if (!isset($_)) {//also provide standalone error page | ||
require_once '../../lib/base.php'; | ||
|
||
$tmpl = new OC_Template('', '404', 'guest'); | ||
$tmpl->printPage(); | ||
exit; | ||
} | ||
// @codeCoverageIgnoreEnd | ||
?> | ||
<?php if (isset($_['content'])): ?> | ||
<?php print_unescaped($_['content']) ?> | ||
<?php else: ?> | ||
<h1 class="title is-1"><?php p($l->t('File not found')); ?></h1> | ||
<ul class="message is-danger"> | ||
<li class="message-body"> | ||
<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.', [$theme->getName()])); ?></a></p> | ||
</li> | ||
</ul> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<h1 class="title is-1">Error</h1> | ||
<ul class="message is-danger"> | ||
<?php foreach ($_["errors"] as $error):?> | ||
<li class='message-body'> | ||
<?php p($error['error']) ?><br> | ||
<?php if (isset($error['hint']) && $error['hint']): ?> | ||
<p class='hint'><?php p($error['hint']) ?></p> | ||
<?php endif;?> | ||
</li> | ||
<?php endforeach ?> | ||
</ul> | ||
<a class="button" <?php print_unescaped(\OC_User::getLogoutAttribute()); ?>"><?php p($l->t('Return to login page')); ?></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** @var array $_ */ | ||
/** @var \OCP\IL10N $l */ | ||
|
||
style('core', ['styles', 'header']); | ||
?> | ||
<h2 class="title is-1"><?php p($l->t('Internal Server Error')) ?></h2> | ||
</div> | ||
<p class="subtitle is-4"><?php p($l->t('The server encountered an internal error and was unable to complete your request.')) ?></p> | ||
<p class="subtitle is-6"><?php p($l->t('Please contact the server administrator if this error reappears multiple times and include the technical details below in your report.')) ?></p> | ||
<p><?php print_unescaped($l->t('More details can be found in the <a target="_blank" rel="noreferrer" href="%s">server log</a>.', [link_to_docs('admin-logfiles')])); ?></p> | ||
<br> | ||
<h2 class="title is-3"><strong><?php p($l->t('Technical details')) ?></strong></h2> | ||
<div class="message is-danger"> | ||
<ul class="message-body"> | ||
<li><?php p($l->t('Remote Address: %s', $_['remoteAddr'])) ?></li> | ||
<li><?php p($l->t('Request ID: %s', $_['requestID'])) ?></li> | ||
<?php if ($_['debugMode']): ?> | ||
<li><?php p($l->t('Type: %s', $_['errorClass'])) ?></li> | ||
<li><?php p($l->t('Code: %s', $_['errorCode'])) ?></li> | ||
<li><?php p($l->t('Message: %s', $_['errorMsg'])) ?></li> | ||
<li><?php p($l->t('File: %s', $_['file'])) ?></li> | ||
<li><?php p($l->t('Line: %s', $_['line'])) ?></li> | ||
<?php endif; ?> | ||
</ul> | ||
</div> | ||
|
||
<?php if ($_['debugMode']): ?> | ||
<br /> | ||
<h2><strong><?php p($l->t('Trace')) ?></strong></h2> | ||
<pre><?php p($_['trace']) ?></pre> | ||
<?php endif; ?> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters