PDA

View Full Version : Some Help - Maybe Kirby


SKNY
01-18-2006, 08:19 PM
Hey,

I am currently doing some work for a client, and after the process of upgrading some things don't work that well. Upgrade and everything went fine... but just need help with one hack.


Basically this is the part of the code generating the error.


globalize($_REQUEST, array(
'file' => STR,
'title' => STR
));


And this is the error I get.


Fatal error: Call to undefined function: globalize() in /home/blumin/public_html/forums/html.php on line 19


From what I have read the function "globalize" no longer works in 3.5.3. Is there any alternative to this?

Thanks for all your help.

Paul M
01-18-2006, 08:56 PM
$vbulletin->input->clean_array_gpc('r', array(
'file' => TYPE_STR,
'title' => TYPE_STR,
));

Oh, and to reference the cleaned variables use

$vbulletin->GPC['file'] etc;

(or you could add a $file = $vbulletin->GPC['file'] line).

SKNY
01-18-2006, 10:04 PM
WooooHoooooo

Thanks alot for your help, worked perfectly, I did find some reference leading to

$vbulletin->input->clean_array_gpc(

But just wasn't sure exactly how to use it correctly.

Thanks alot for your help.