update
[phpmyadmin/sankalp_k.git] / error.php
blob54971041c95f0ab9c57be4cd261857415764b0d4
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
5 /**
7 * phpMyAdmin fatal error display page
8 *
9 */
11 /* Input sanitizing */
12 require_once('./libraries/sanitizing.lib.php');
14 /* Get variables */
15 $lang = isset( $_REQUEST['lang'] ) ? htmlspecialchars($_REQUEST['lang']) : 'en';
16 $dir = isset( $_REQUEST['dir'] ) ? htmlspecialchars($_REQUEST['dir']) : 'ltr';
17 $charset = isset( $_REQUEST['charset'] ) ? htmlspecialchars($_REQUEST['charset']) : 'utf-8';
18 $type = isset( $_REQUEST['type'] ) ? htmlspecialchars($_REQUEST['type']) : 'error';
20 header('Content-Type: text/html; charset=' . $charset);
22 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
23 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" dir="<?php echo $dir; ?>">
24 <head>
25 <title>phpMyAdmin</title>
26 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
27 <style type="text/css">
28 <!--
29 html {
30 padding: 0;
31 margin: 0;
33 body {
34 font-family: sans-serif;
35 font-size: small;
36 color: #000000;
37 background-color: #F5F5F5;
38 margin: 1em;
40 h1 {
41 margin: 0;
42 padding: 0.3em;
43 font-size: 1.4em;
44 font-weight: bold;
45 color: #ffffff;
46 background-color: #ff0000;
48 p {
49 margin: 0;
50 padding: 0.5em;
51 border: 0.1em solid red;
52 background-color: #ffeeee;
54 //-->
55 </style>
56 </head>
57 <body>
58 <h1>phpMyAdmin - <?php echo $type; ?></h1>
59 <p><?php
60 if (get_magic_quotes_gpc())
61 echo PMA_sanitize(stripslashes($_REQUEST['error']));
62 else
63 echo PMA_sanitize($_REQUEST['error']);
64 ?></p>
65 </body>
66 </html>