View Single Post
Old 12-14-2003, 09:26 AM   #1
chris2000
Green Mole
 
Join Date: Dec 2003
Location: Germany, BaWue
Posts: 6
phpdigHttpVars - register_globals

What is phpdigHttpVars exactly doing?

Am I right, that it is circumventing the deactivation of register_globals?

This is index.php:
PHP Code:
echo "in the beginning: ".$test."<br>"//no output via GET possible

$relative_script_path '.';

include 
"$relative_script_path/includes/config.php";
include 
"$relative_script_path/admin/debug_functions.php";
include 
"$relative_script_path/libs/search_function.php";

// extract vars
extract(phpdigHttpVars(
     array(
'query_string'=>'string',
           
'template_demo'=>'string',
           
'refine'=>'integer',
           
'refine_url'=>'string',
           
'site'=>'integer',
           
'limite'=>'integer',
           
'option'=>'string',
           
'search'=>'string',
           
'lim_start'=>'integer',
           
'browse'=>'integer',
           
'path'=>'string'
           
)
     ));
     
     
     echo 
"<br> after phpdigHttpVars - $test: ".$test."<br>"//output via GET possible!
     
phpdigSearch($id_connect$query_string$option$refine,
              
$refine_url$lim_start$limite$browse,
              
$site$path$relative_script_path$template); 
I'm using 1.6.x. Why is the Array for phpdighttpvars necessary? It even seems to make $test global, although it isn't in the Array... I'm a bit confused...
__________________
Linux - where do you want to go tomorrow?

Last edited by chris2000; 12-14-2003 at 09:31 AM.
chris2000 is offline   Reply With Quote