2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * phpMyAdmin fatal error display page
12 require_once './libraries/sanitizing.lib.php';
15 if (! empty($_REQUEST['lang']) && is_string($_REQUEST['lang'])) {
16 $lang = htmlspecialchars($_REQUEST['lang']);
21 if (! empty($_REQUEST['dir']) && is_string($_REQUEST['dir'])) {
22 $dir = htmlspecialchars($_REQUEST['dir']);
27 if (! empty($_REQUEST['type']) && is_string($_REQUEST['type'])) {
28 $type = htmlspecialchars($_REQUEST['type']);
33 // force utf-8 to avoid XSS with crafted URL and utf-7 in charset parameter
36 header('Content-Type: text/html; charset=' . $charset);
38 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
39 <html xmlns
="http://www.w3.org/1999/xhtml" xml
:lang
="<?php echo $lang; ?>" dir
="<?php echo $dir; ?>">
41 <link rel
="icon" href
="./favicon.ico" type
="image/x-icon" />
42 <link rel
="shortcut icon" href
="./favicon.ico" type
="image/x-icon" />
43 <title
>phpMyAdmin
</title
>
44 <meta http
-equiv
="Content-Type" content
="text/html; charset=<?php echo $charset; ?>" />
45 <style type
="text/css">
52 font
-family
: sans
-serif
;
55 background
-color
: #F5F5F5;
64 background
-color
: #ff0000;
69 border
: 0.1em solid red
;
70 background
-color
: #ffeeee;
76 <h1
>phpMyAdmin
- <?php
echo $type; ?
></h1
>
78 if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
79 echo PMA_sanitize(stripslashes($_REQUEST['error']));
81 echo PMA_sanitize($_REQUEST['error']);