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...