note 23633 deleted from security.registerglobals by dams

From: Date: Fri, 26 Jul 2002 10:29:30 +0000
Subject: note 23633 deleted from security.registerglobals by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33587@lists.php.net to get a copy of this message
how about this? function register_globals_on() { global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_POST_FILES; global $HTTP_COOKIE_VARS, $HTTP_SESSION_VARS; //HTTP_GET_VARS while (list($key, $val) = @each($HTTP_GET_VARS)) { $GLOBALS[$key] = $val; } //HTTP_POST_VARS while (list($key, $val) = @each($HTTP_POST_VARS)) { $GLOBALS[$key] = $val; } //HTTP_POST_FILES while (list($key, $val) = @each($HTTP_POST_FILES)) { $GLOBALS[$key] = $val; } //$HTTP_COOKIE_VARS while (list($key, $val) = @each($HTTP_COOKIE_VARS)) { $GLOBALS[$key] = $val; } //$HTTP_SESSION_VARS while (list($key, $val) = @each($HTTP_SESSION_VARS)) { $GLOBALS[$key] = $val; } } //echo "register_globals on!<br>"; register_globals_on();

« previous php.notes (#33587) next »