note 65856 deleted from security.globals by bjori

From: Date: Tue, 09 May 2006 06:34:29 +0000
Subject: note 65856 deleted from security.globals by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-110937@lists.php.net to get a copy of this message
Note Submitter: sineld at sineld dot com Reason: bad code ---- This is the code which makes the valiables act like register_globals on <?php $parser_version = phpversion(); if ($parser_version <= "4.1.0") { $GET_VARS = $HTTP_GET_VARS ; $POST_VARS = $HTTP_POST_VARS; $SERVER_VARS = $HTTP_SERVER_VARS; $COOKIES = $HTTP_COOKIE_VARS; } else{ $GET_VARS = $_GET; $POST_VARS = $_POST; $SERVER_VARS = $_SERVER; $COOKIES = $_COOKIE; } if ($SERVER_VARS['REQUEST_METHOD'] == "POST"){ foreach ($POST_VARS as $key => $val){ $$key = $val; } } elseif($SERVER_VARS['REQUEST_METHOD'] == "GET"){ foreach ($GET_VARS as $key => $val){ $$key = $val; } } ?>

« previous php.notes (#110937) next »