PDA

View Full Version : block space name


lichtflits
06-07-2002, 05:33 PM
is it posibel to block username's witch a space?

Xenon
06-07-2002, 05:37 PM
in register.php change $username = eregi_replace("( ){2,}", " ", $username);
with $username = eregi_replace("( ){2,}", "", $username);

lichtflits
06-08-2002, 08:31 AM
Originally posted by Xenon
in register.php change $username = eregi_replace("( ){2,}", " ", $username);
with $username = eregi_replace("( ){2,}", "", $username);

is it posibel to this same by the login code?

Xenon
06-08-2002, 12:26 PM
in member.php found this lines:
// ############################### start login ###############################
if ($action=="login") {
$templatesused = 'redirect_login,error_wrongpassword,error_wronguse rname';
include("./global.php");
$userid = 0;
if (isset($username)) {just below add:
$username = eregi_replace("( ){2,}", "", $username);

should work

lichtflits
06-08-2002, 01:23 PM
Originally posted by Xenon
in member.php found this lines:
// ############################### start login ###############################
if ($action=="login") {
$templatesused = 'redirect_login,error_wrongpassword,error_wronguse rname';
include("./global.php");
$userid = 0;
if (isset($username)) {just below add:
$username = eregi_replace("( ){2,}", "", $username);

should work

don't work
i can stil login. :(