Files
agc_1-X/LANG_admin/vicidial_el/htglobalize.php
T
mattf e5caeca898 cleanup of extras
git-svn-id: svn://192.168.202.10@17 3d104415-ff17-0410-8863-d5cf3c621b8a
2006-07-07 15:44:57 +00:00

23 lines
409 B
PHP

<?php
/*
author: Paul Concepcion
date: April 18, 2004
iterate through the $_GET, $_POST, and $_SERVER hashes,
creating global variables with the same values.
security risk: equal to running with register_globals "on"
*/
function array_conv($array){
foreach ($array as $key -> $value){
${$key} = $value;
global ${$key};// = $value;
}
}
array_conv($_GET);
array_conv($_POST);
array_conv($_SERVER);
?>