ganz eine andere lösung... (ich habs nicht verbrochen, obwohl mein name in der datei steht..)
includes/globals_off.inc.php
Code: Alles auswählen
/* Emulate magic_quotes_gpc if it is not set */
if (@ get_magic_quotes_gpc() == 0)
{
foreach ($_GET as $key => $value)
{
$_GET[$key] = addslashes($_GET[$key]);
}
foreach ($_POST as $key => $value)
{
$_POST[$key] = addslashes($_POST[$key]);
}
foreach ($_COOKIE as $key => $value)
{
$_COOKIE[$key] = addslashes($_COOKIE[$key]);
}
}
if (!isset ($_REQUEST))
{
/* Register post,get and cookie variables into $_REQUEST */
$_REQUEST = array_merge($_GET, $_POST, $_COOKIE);
} else
{
if (@ ini_get("magic_quotes_gpc") == 0)
{
foreach ($_GET as $key => $value)
{
$_GET[$key] = stripslashes($_GET[$key]);
}
foreach ($_POST as $key => $value)
{
$_POST[$key] = stripslashes($_POST[$key]);
}
foreach ($_REQUEST as $key => $value)
{
$_REQUEST[$key] = stripslashes($_REQUEST[$key]);
}
}
}
Code: Alles auswählen
if (!isset ($_REQUEST))
{
/* Register post,get and cookie variables into $_REQUEST */
$_REQUEST = array_merge($_GET, $_POST, $_COOKIE);
}