Use the 'extract()' function if possible
This commit is contained in:
@@ -11,19 +11,15 @@ if (!defined('__LIB_GRAB_GLOBALS__')) {
|
|||||||
define('__LIB_GRAB_GLOBALS__', 1);
|
define('__LIB_GRAB_GLOBALS__', 1);
|
||||||
|
|
||||||
if (!empty($HTTP_GET_VARS)) {
|
if (!empty($HTTP_GET_VARS)) {
|
||||||
while(list($name, $value) = each($HTTP_GET_VARS)) {
|
extract($HTTP_GET_VARS);
|
||||||
$$name = $value;
|
|
||||||
}
|
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
if (!empty($HTTP_POST_VARS)) {
|
if (!empty($HTTP_POST_VARS)) {
|
||||||
while(list($name, $value) = each($HTTP_POST_VARS)) {
|
extract($HTTP_POST_VARS);
|
||||||
$$name = $value;
|
|
||||||
}
|
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
if (!empty($HTTP_POST_FILES)) {
|
if (!empty($HTTP_POST_FILES)) {
|
||||||
while(list($name, $value) = each($HTTP_POST_FILES)) {
|
while (list($name, $value) = each($HTTP_POST_FILES)) {
|
||||||
$$name = $value['tmp_name'];
|
$$name = $value['tmp_name'];
|
||||||
}
|
}
|
||||||
} // end if
|
} // end if
|
||||||
|
Reference in New Issue
Block a user