$reserved = array( 'SirAdrian', '001', 'nexialys' // ...);if (in_array($username, $reserved)){ $this->error('usernametaken', $username, $this->registry->session->vars['sessionurl']); return false;}
// if we got here, everything is okay $username = htmlspecialchars_uni($username); return true;
$reserved = array( 'SirAdrian', '001', 'nexialys' // ...);if (in_array($vbulletin->GPC['username'], $reserved)){ $userdata->error('usernametaken', $vbulletin->GPC['username'], $vbulletin->session->vars['sessionurl']);}