[ Index ] |
|
Code source de phpMyAdmin 2.10.3 |
1 <?php 2 /* $Id: error.php 9621 2006-10-26 15:49:33Z lem9 $ */ 3 // vim: expandtab sw=4 ts=4 sts=4: 4 5 /** 6 * 7 * phpMyAdmin fatal error display page 8 * 9 */ 10 11 /* Input sanitizing */ 12 require_once ('./libraries/sanitizing.lib.php'); 13 14 /* Get variables */ 15 $lang = isset( $_REQUEST['lang'] ) ? htmlspecialchars($_REQUEST['lang']) : 'en'; 16 $dir = isset( $_REQUEST['dir'] ) ? htmlspecialchars($_REQUEST['dir']) : 'ltr'; 17 // force utf-8 to avoid XSS with crafted URL and utf-7 in charset parameter 18 $charset = 'utf-8'; 19 $type = isset( $_REQUEST['type'] ) ? htmlspecialchars($_REQUEST['type']) : 'error'; 20 21 header('Content-Type: text/html; charset=' . $charset); 22 ?> 23 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 24 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" dir="<?php echo $dir; ?>"> 25 <head> 26 <link rel="icon" href="./favicon.ico" type="image/x-icon" /> 27 <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> 28 <title>phpMyAdmin</title> 29 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" /> 30 <style type="text/css"> 31 <!-- 32 html { 33 padding: 0; 34 margin: 0; 35 } 36 body { 37 font-family: sans-serif; 38 font-size: small; 39 color: #000000; 40 background-color: #F5F5F5; 41 margin: 1em; 42 } 43 h1 { 44 margin: 0; 45 padding: 0.3em; 46 font-size: 1.4em; 47 font-weight: bold; 48 color: #ffffff; 49 background-color: #ff0000; 50 } 51 p { 52 margin: 0; 53 padding: 0.5em; 54 border: 0.1em solid red; 55 background-color: #ffeeee; 56 } 57 //--> 58 </style> 59 </head> 60 <body> 61 <h1>phpMyAdmin - <?php echo $type; ?></h1> 62 <p><?php 63 if (get_magic_quotes_gpc()) { 64 echo PMA_sanitize(stripslashes($_REQUEST['error'])); 65 } else { 66 echo PMA_sanitize($_REQUEST['error']); 67 } 68 ?></p> 69 </body> 70 </html>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 15:18:20 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |