|
<?
header( "Expires: Wed, 31 May 2000 14:59:58 GMT" );
foreach( $_GET as $Key => $Value ) {
$Value = str_replace( "\\'", "'", $Value );
$_GET[$Key] = str_replace( "\\\"", "\"", $Value );
}
foreach( $_POST as $Key => $Value ) {
$Value = str_replace( "\\'", "'", $Value );
$_POST[$Key] = str_replace( "\\\"", "\"", $Value );
}
# **********************************************************
# PHP の情報
# **********************************************************
function Info( ) {
print "PHP version : " . phpversion() . "<br>";
print "include_path : " . get_include_path() . "<br>";
print "get_magic_quotes : " . get_magic_quotes_gpc . "<br>";
print "<HR>";
print "<b style='font-size:24;font-weight:bold'>Loaded_extensions</b><br>";
$target = get_loaded_extensions();
foreach( $target as $Key => $Value ) {
print "$Key => $Value<br>";
}
print "<HR>";
print "<b style='font-size:24;font-weight:bold'>\$_SERVER</b><br>";
foreach( $_SERVER as $Key => $Value ) {
print "$Key => $Value<br>";
}
print "<HR>";
print "<b style='font-size:24;font-weight:bold'>\$_ENV</b><br>";
foreach( $_ENV as $Key => $Value ) {
print "$Key => $Value<br>";
}
print "<HR>";
print "<b style='font-size:24;font-weight:bold'>ini_get_all</b><br>";
print "<PRE>";
$inis = ini_get_all();
print_r($inis);
print "</PRE>";
}
# **********************************************************
# リダイレクト
# **********************************************************
function Redirect( $Target ) {
header( "Location: $Target" );
}
?>
| |