SproutCMS

This is the code documentation for the SproutCMS project

source of /skin/default/exception.php

  1. <?php
  2. use Sprout\Helpers\Enc;
  3. use Sprout\Helpers\Sprout;
  4. ?>
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  9. <title>500 Internal Server Error</title>
  10. <style type="text/css">
  11. body {font-family:sans-serif;margin:0;padding:0;}
  12. #main {width: 600px; margin: 0 auto; padding: 0;}
  13. 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;}
  14. 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;}
  15. #nice {background: #333; color: #eee; margin: 45px 0 0 0; padding: 1px 15px; font-size: 90%; border-radius: 3px; line-height: 1.7em; }
  16. #tech {background: #222; color: #eee; margin: 15px 0 0 0; padding: 1px 15px; font-size: 70%; border-radius: 3px;}
  17. </style>
  18. </head>
  19. <body>
  20. <div id="main">
  21. <h1>SERVER ERROR</h1>
  22. <img src="<?php echo Sprout::absRoot(); ?>media/images/system_error3.jpg" width="227" height="300">
  23. <div id="nice">
  24. <p>Something has gone wrong. This isn't your fault. The exact issue is being investigated. Hang tight.</p>
  25. <p>When reporting this error, quote the code <?php echo 'SE' . str_pad($log_id, 5, '0', STR_PAD_LEFT); ?>.</p>
  26. </div>
  27. <div id="tech">
  28. <h3><?php echo Enc::html($error) ?></h3>
  29. <p><?php echo Enc::html($description) ?></p>
  30. <p><code class="block"><?php echo Enc::html($message) ?></code></p>
  31. </div>
  32. </div>
  33. </body>
  34. </html>
  35.