$var) { $GLOBALS["HTTP_GET_VARS"][$name] = str_replace($troca[1], $troca[0], $var); $GLOBALS["_GET"][$name] = str_replace($troca[1], $troca[0], $var); } foreach($GLOBALS["HTTP_COOKIE_VARS"] As $name => $var) { $GLOBALS["HTTP_COOKIE_VARS"][$name] = str_replace($troca[1], $troca[0], $var); $GLOBALS["_COOKIE"][$name] = str_replace($troca[1], $troca[0], $var); } foreach($GLOBALS["HTTP_POST_VARS"] As $name => $var) { $GLOBALS["HTTP_POST_VARS"][$name] = str_replace($troca[1], $troca[0], $var); $GLOBALS["_POST"][$name] = str_replace($troca[1], $troca[0], $var); } } if (ini_get("register_globals")) { $order = ini_get("variables_order"); for($i = 0;$i < strlen($order);$i++) { $kind_array = null; switch ($order[$i]) { case "E": if (isset($GLOBALS["HTTP_ENV_VARS"])) { $kind_array = $GLOBALS["HTTP_ENV_VARS"]; } break; case "G": if (isset($GLOBALS["HTTP_ENV_VARS"])) { $kind_array = $GLOBALS["HTTP_ENV_VARS"]; } break; case "P": if (isset($GLOBALS["HTTP_POST_VARS"])) { $kind_array = $GLOBALS["HTTP_POST_VARS"]; } break; case "C": if (isset($GLOBALS["HTTP_COOKIE_VARS"])) { $kind_array = $GLOBALS["HTTP_COOKIE_VARS"]; } break; case "S": if (isset($GLOBALS["HTTP_SESSION_VARS"])) { $kind_array = $GLOBALS["HTTP_SESSION_VARS"]; } break; } if (is_array($kind_array)) { foreach($kind_array AS $var => $value) { $GLOBALS[$var] = $value; } } } } } define("NO_MAGIC_QUOTES", true); } ?>