You should use the vb cleaner:
PHP Code:
$vbulletin->input->clean_array_gpc('r', array(
'ac' => TYPE_UINT,
));
And then you can set it this way:
PHP Code:
$temp = $vbulletin->GPC['ac'];
You should go read some of the articles regarding the vbulletin cleaner and making secure mods, like these -
https://vborg.vbsupport.ru/showthrea...hlight=cleaner and
https://vborg.vbsupport.ru/showthread.php?t=154411