error.inc.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * phpMyAdmin fatal error display page
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. use PhpMyAdmin\Sanitize;
  9. if (! defined('PHPMYADMIN')) {
  10. exit;
  11. }
  12. if (! defined('TESTSUITE')) {
  13. http_response_code(500);
  14. header('Content-Type: text/html; charset=utf-8');
  15. }
  16. ?>
  17. <!DOCTYPE HTML>
  18. <html lang="<?php echo $lang; ?>" dir="<?php echo $dir; ?>">
  19. <head>
  20. <link rel="icon" href="favicon.ico" type="image/x-icon" />
  21. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  22. <title>phpMyAdmin</title>
  23. <meta charset="utf-8" />
  24. <style type="text/css">
  25. <!--
  26. html {
  27. padding: 0;
  28. margin: 0;
  29. }
  30. body {
  31. font-family: sans-serif;
  32. font-size: small;
  33. color: #000000;
  34. background-color: #F5F5F5;
  35. margin: 1em;
  36. }
  37. h1 {
  38. margin: 0;
  39. padding: 0.3em;
  40. font-size: 1.4em;
  41. font-weight: bold;
  42. color: #ffffff;
  43. background-color: #ff0000;
  44. }
  45. p {
  46. margin: 0;
  47. padding: 0.5em;
  48. border: 0.1em solid red;
  49. background-color: #ffeeee;
  50. }
  51. //-->
  52. </style>
  53. </head>
  54. <body>
  55. <h1>phpMyAdmin - <?php echo $error_header; ?></h1>
  56. <p><?php echo Sanitize::sanitize($error_message); ?></p>
  57. </body>
  58. </html>