nextcloud/core/templates/exception.php

31 lines
1.3 KiB
PHP
Raw Normal View History

2012-03-30 01:16:19 +04:00
<ul>
<li class='error'>
<details>
<summary class="error">We're sorry, but something went terribly wrong.<br></summary>
<p class="exception">
<?php
2012-09-07 17:22:01 +04:00
if($_['showsysinfo'] == true) {
echo 'If you would like to support ownCloud\'s developers and report this error in our <a href="https://github.com/owncloud/core">bug tracker</a>, please copy the following informations into the description. <br><br><textarea readonly>';
2012-03-30 01:16:19 +04:00
echo 'Message: ' . $_['message'] . "\n";
echo 'Error Code: ' . $_['code'] . "\n";
echo 'File: ' . $_['file'] . "\n";
echo 'Line: ' . $_['line'] . "\n\n";
echo 'PHP: ' . $_['sysinfo']['phpversion'] . "\n";
echo 'OS: ' . $_['sysinfo']['os'] . "\n";
echo 'OS Release: ' . $_['sysinfo']['osrelease'] . "\n";
echo 'OS Arch.: ' . $_['sysinfo']['osarchitecture'] . "\n";
echo 'PHP-Server-Interface: ' . $_['sysinfo']['phpserverinterface'] . "\n";
echo 'Protocol: ' . $_['sysinfo']['serverprotocol'] . "\n";
echo 'HTTPS: ' . $_['sysinfo']['https'] . "\n";
echo 'Request Method: ' . $_['sysinfo']['requestmethod'] . "\n";
echo 'Database: ' . $_['sysinfo']['database'] . "\n";
echo '</textarea>';
2013-02-09 20:27:57 +04:00
} else {
2012-03-30 01:16:19 +04:00
echo 'Your administrator has disabled systeminformations.';
}
?>
</p>
</details>
</li>
2013-02-09 20:27:57 +04:00
</ul>