fatal.include.php 900 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error');
  3. ?>
  4. <html>
  5. <head>
  6. <title><?php echo $errorPageTitle ? $errorPageTitle : 'Error 500: Internal Server Error'; ?></title>
  7. <style type="text/css">
  8. * {
  9. margin: 0;
  10. padding: 0;
  11. }
  12. body {
  13. margin: 50px;
  14. background: #eee;
  15. }
  16. .message {
  17. padding: 10px;
  18. border: 2px solid #f22;
  19. background: #f99;
  20. margin: 0 auto;
  21. font: 120%/1em sans-serif;
  22. text-align: center;
  23. }
  24. p {
  25. margin: 20px 0;
  26. }
  27. a {
  28. font-size: 180%;
  29. color: #f22;
  30. text-decoration: underline;
  31. margin-top: 30px;
  32. padding: 5px;
  33. }
  34. </style>
  35. </head>
  36. <body>
  37. <div class="message">
  38. <?php echo $errorMessage ? $errorMessage : '<h1>' . ($errorPageTitle ? $errorPageTitle : 'Error 500: Internal Server Error') . '</h1><p>A fatal application error has been encountered.</p>'; ?>
  39. </div>
  40. </body>
  41. <?php
  42. @session_write_close();
  43. exit();
  44. ?>