SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/system/error_production.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2015 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 3 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. use Sprout\Helpers\Enc;
  18. use Sprout\Helpers\Sprout;
  19. ?>
  20. <!DOCTYPE html>
  21. <html>
  22. <head>
  23. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  24. <title>500 Internal Server Error</title>
  25. <style type="text/css">
  26. body {font-family:sans-serif;margin:0;padding:0;}
  27. #main {width: 600px; margin: 0 auto; padding: 0;}
  28. h1 {margin: 0 0 40px 0; text-align: center; background: #70B100; color: #FFF; padding: 15px; -webkit-border-bottom-right-radius: 3px; -webkit-border-bottom-left-radius: 3px; -moz-border-radius-bottomright: 3px;-moz-border-radius-bottomleft: 3px;border-bottom-right-radius: 3px;border-bottom-left-radius: 3px;}
  29. img {margin: 0; width: 227px; height: 300px; margin: 0 auto; display:block;background:url(data:image/gif;base64,R0lGODlhBQAEAKEBAAAAAP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FyH5BAEKAAIALAAAAAAFAAQAAAIHDBypBncJCgA7) 50% 50% no-repeat;}
  30. #nice {background: #333; color: #eee; margin: 45px 0 0 0; padding: 1px 15px; font-size: 90%; border-radius: 3px; line-height: 1.7em; }
  31. #tech {background: #222; color: #eee; margin: 15px 0 0 0; padding: 1px 15px; font-size: 70%; border-radius: 3px;}
  32. </style>
  33. </head>
  34. <body>
  35. <div id="main">
  36. <h1>SERVER ERROR</h1>
  37. <img src="<?php echo Sprout::absRoot(); ?>media/images/system_error3.jpg" width="227" height="300">
  38. <div id="nice">
  39. <p>Something has gone wrong. This isn't your fault. The exact issue is being investigated. Hang tight.</p>
  40. <p>When reporting this error, quote the code <?php echo 'SE' . str_pad($log_id, 5, '0', STR_PAD_LEFT); ?>.</p>
  41. </div>
  42. <div id="tech">
  43. <h3><?php echo Enc::html($error) ?></h3>
  44. <p><?php echo Enc::html($description) ?></p>
  45. <p><code class="block"><?php echo Enc::html($message) ?></code></p>
  46. </div>
  47. </div>
  48. </body>
  49. </html>
  50.