I have a new product I am creating and one of the setting options allows you to add userids, seperated by a comma, that you want to have access to the script.
How can I take those userids and compare them to the current users id trying to access the script to make sure that they match?
Right now this isn't working:
PHP Code:
$aids = explode(',',$vbulletin->options['users_allowed']);
if ((!$vbulletin->options['vbincome_enabled']) OR in_array($bbuserinfo[userid], $aids))
{
print_no_permission();
}
What is the correct way to do this?