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