summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-03-29 23:16:19 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-03-29 23:16:19 +0200
commitd049d9bd0c70c929c2116cf7d8d088dfa7f9ae62 (patch)
tree26d8276b662f1a2334473c46a4ef35089740d6fd /core/templates
parentcb2dd97509ffd039fbd321aea4a8d631e3effcc7 (diff)
downloadnextcloud-server-d049d9bd0c70c929c2116cf7d8d088dfa7f9ae62.tar.gz
nextcloud-server-d049d9bd0c70c929c2116cf7d8d088dfa7f9ae62.zip
initial commit for OC_Exception
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/exception.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/core/templates/exception.php b/core/templates/exception.php
new file mode 100644
index 00000000000..7f58ce252cf
--- /dev/null
+++ b/core/templates/exception.php
@@ -0,0 +1,30 @@
+<ul>
+ <li class='error'>
+ <details>
+ <summary class="error">We're sorry, but something went terribly wrong.<br></summary>
+ <p class="exception">
+ <?php
+ if($_['showsysinfo'] == true){
+ echo 'If you would like to support ownCloud\'s developers and report this error in our <a href="http://bugs.owncloud.org">Bugtracker</a>, please copy the following informations into the description. <br><br><textarea readonly>';
+ 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>';
+ }else{
+ echo 'Your administrator has disabled systeminformations.';
+ }
+ ?>
+ </p>
+ </details>
+ </li>
+</ul> \ No newline at end of file