Quote:
Originally Posted by Eggie
sorry to bring back a REALLY OLD thread. but after endless searching, this was the only post regarding this I could find.
Will this code also work with vB 3.0.8 If not, could you please provide me with a code that would.
|
For vb 3.0.x, edit register.php, find:
PHP Code:
// strip 'blank' ascii chars if admin wants to do so
BEFORE that line add (as a new line, NOT on the LEFT of it!):
PHP Code:
// Logician Hack Start
// enter not allowed chars here seperated with a space:
$illegaluserchars=', . ~ ;';
$dontlethimuse = explode(" ",$illegaluserchars);
while (list($key,$val)=each($dontlethimuse))
{
if (strpos($_POST['username'],$val))
{
$errors[11] = "You can not use ..... characters in username!";
}
}
// Logician Hack End