Files
phpmyadmin/libraries/grab_globals.lib.php3
2001-11-23 01:04:57 +00:00

28 lines
653 B
PHP

<?php
/* $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 (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
define('PMA_GRAB_GLOBALS_INCLUDED', 1);
if (!empty($HTTP_GET_VARS)) {
extract($HTTP_GET_VARS);
} // end if
if (!empty($HTTP_POST_VARS)) {
extract($HTTP_POST_VARS);
} // end if
if (!empty($HTTP_POST_FILES)) {
while (list($name, $value) = each($HTTP_POST_FILES)) {
$$name = $value['tmp_name'];
}
} // end if
} // $__PMA_GRAB_GLOBALS_LIB__
?>