merge Loic's version
This commit is contained in:
@@ -1,26 +1,32 @@
|
||||
<?php
|
||||
/* $Id$ */;
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
/**
|
||||
* This library grabs the names and values of the variables sent or posted to a
|
||||
* script in the '$HTTP_*_VARS' arrays and sets simple globals variables from
|
||||
* them
|
||||
*/
|
||||
if (!empty($HTTP_GET_VARS)) {
|
||||
while(list($name, $value) = each($HTTP_GET_VARS)) {
|
||||
$$name = $value;
|
||||
}
|
||||
}
|
||||
if (!defined('__LIB_GRAB_GLOBALS__')) {
|
||||
define('__LIB_GRAB_GLOBALS__', 1);
|
||||
|
||||
if (!empty($HTTP_POST_VARS)) {
|
||||
while(list($name, $value) = each($HTTP_POST_VARS)) {
|
||||
$$name = $value;
|
||||
}
|
||||
}
|
||||
if (!empty($HTTP_GET_VARS)) {
|
||||
while(list($name, $value) = each($HTTP_GET_VARS)) {
|
||||
$$name = $value;
|
||||
}
|
||||
} // end if
|
||||
|
||||
if (!empty($HTTP_POST_FILES)) {
|
||||
while(list($name, $value) = each($HTTP_POST_FILES)) {
|
||||
$$name = $value['tmp_name'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
if (!empty($HTTP_POST_VARS)) {
|
||||
while(list($name, $value) = each($HTTP_POST_VARS)) {
|
||||
$$name = $value;
|
||||
}
|
||||
} // end if
|
||||
|
||||
if (!empty($HTTP_POST_FILES)) {
|
||||
while(list($name, $value) = each($HTTP_POST_FILES)) {
|
||||
$$name = $value['tmp_name'];
|
||||
}
|
||||
} // end if
|
||||
|
||||
} // end __LIB_GRAB_GLOBALS__
|
||||
?>
|
Reference in New Issue
Block a user