1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* CMS Pico - Create websites using Pico CMS for Nextcloud. |
4
|
|
|
* |
5
|
|
|
* @copyright Copyright (c) 2019, Daniel Rudolf (<[email protected]>) |
6
|
|
|
* |
7
|
|
|
* @license GNU AGPL version 3 or any later version |
8
|
|
|
* |
9
|
|
|
* This program is free software: you can redistribute it and/or modify |
10
|
|
|
* it under the terms of the GNU Affero General Public License as |
11
|
|
|
* published by the Free Software Foundation, either version 3 of the |
12
|
|
|
* License, or (at your option) any later version. |
13
|
|
|
* |
14
|
|
|
* This program is distributed in the hope that it will be useful, |
15
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
16
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17
|
|
|
* GNU Affero General Public License for more details. |
18
|
|
|
* |
19
|
|
|
* You should have received a copy of the GNU Affero General Public License |
20
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
21
|
|
|
*/ |
22
|
|
|
|
23
|
|
|
/** @var $_ array */ |
24
|
|
|
/** @var $l \OCP\IL10N */ |
25
|
|
|
/** @var $theme OCP\Defaults */ |
26
|
|
|
|
27
|
|
|
?> |
28
|
|
|
|
29
|
|
|
<div class="body-login-container update"> |
30
|
|
|
<div class="icon-big icon-attention-circled icon-white"></div> |
31
|
|
|
<h2><?php p($l->t('Internal Server Error')); ?></h2> |
32
|
|
|
<p class="infogroup"><?php p($_['message'] ?? $l->t('The server was unable to complete your request.')); ?></p> |
33
|
|
|
<p class="infogroup"><?php p($l->t( |
34
|
|
|
'If this happens again, please send the technical details below to the server administrator.' |
35
|
|
|
)); ?></p> |
36
|
|
|
|
37
|
|
|
<ul class="infogroup"> |
38
|
|
|
<li><?php p($l->t('Remote Address: %s', [$_['remoteAddr']])); ?></li> |
39
|
|
|
<li><?php p($l->t('Request ID: %s', [$_['requestID']])); ?></li> |
40
|
|
|
</ul> |
41
|
|
|
|
42
|
|
|
<p class="infogroup"><?php p($l->t('More details can be found in the server log.')); ?></p> |
43
|
|
|
|
44
|
|
|
<p><a class="button primary" href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')); ?>"> |
|
|
|
|
45
|
|
|
<?php p($l->t('Back to %s', [ $theme->getName() ])); ?> |
46
|
|
|
</a></p> |
47
|
|
|
</div> |
48
|
|
|
|
49
|
|
|
<?php if ($_['debugMode'] && $_['errorClass']) { ?> |
50
|
|
|
<div class="error error-wide"> |
51
|
|
|
<h2><?php p($l->t('Technical details')); ?></h2> |
52
|
|
|
<ul> |
53
|
|
|
<li><?php p($l->t('Remote Address: %s', [ $_['remoteAddr'] ])); ?></li> |
54
|
|
|
<li><?php p($l->t('Request ID: %s', [ $_['requestID'] ])); ?></li> |
55
|
|
|
<li><?php p($l->t('Type: %s', [ $_['errorClass'] ])); ?></li> |
56
|
|
|
<li><?php p($l->t('Code: %s', [ $_['errorCode'] ])); ?></li> |
57
|
|
|
<li><?php p($l->t('Message: %s', [ $_['errorMsg'] ])); ?></li> |
58
|
|
|
<li><?php p($l->t('File: %s', [ $_['errorFile'] ])); ?></li> |
59
|
|
|
<li><?php p($l->t('Line: %s', [ $_['errorLine'] ])); ?></li> |
60
|
|
|
</ul> |
61
|
|
|
|
62
|
|
|
<br /> |
63
|
|
|
<h2><?php p($l->t('Trace')); ?></h2> |
64
|
|
|
<pre><?php p($_['errorTrace']); ?></pre> |
65
|
|
|
</div> |
66
|
|
|
<?php } ?> |
67
|
|
|
|
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.