Log in

View Full Version : howto rewrite this code [globalize($_REQUEST, array('perpage' => INT........]


ageurtse
05-02-2009, 12:46 PM
how to rewrite this code to the newest vbulletin forum software ?

globalize($_REQUEST, array('perpage' => INT, 'pagenumber' => INT, 'showthumbs' => INT, 'userid' => INT));

--------------- Added 1241272909 at 1241272909 ---------------

i think i have solved it, this code seems to be working
$vbulletin->input->clean_array_gpc('r', array(
'perpage' => TYPE_INT,
'pagenumber' => TYPE_INT,
'showtumbs' => TYPE_INT,
'userid' => TYPE_INT,
));

ForumsMods
05-02-2009, 01:19 PM
$vbulletin->input->clean_array_gpc('r', array(
'perpage' => TYPE_UINT,
'pagenumber' => TYPE_UINT,
'showthumbs' => TYPE_BOOL,
'userid' => TYPE_UINT
));