Kixdemp
11-05-2005, 06:27 AM
Hello everyone! :D
Look at this code here:
# If this is the Chatbawx, and the username is the admin, and the password is incorrect,
if (($curUser[0] eq $uname) and ($curUser[1] eq $nickname) and ($curUser[2] ne $pass))
{
# Error
&error("Admin password supplied is invalid!<br>curUser[0] = $curUser[0]<br>uname = $uname<br>curUser[1] = $curUser[1]<br>nickname = $nickname<br>curUser[2] = $curUser[2]<br>pass = $pass");
}
That seems to always give me false. When I change the last "ne" to "eq", it always gives me true! Why is this? You can see that all of the info is correct:
---------------------
Error: Admin password supplied is invalid!
curUser[0] = sulfur
uname = sulfur
curUser[1] = sulfur
nickname = sulfur
curUser[2] = i0wnj00
pass = i0wnj00
---------------------
I tried chomping all the variables, plus all kinds of things, nothing works! HELP!
Thanks! ;)
Look at this code here:
# If this is the Chatbawx, and the username is the admin, and the password is incorrect,
if (($curUser[0] eq $uname) and ($curUser[1] eq $nickname) and ($curUser[2] ne $pass))
{
# Error
&error("Admin password supplied is invalid!<br>curUser[0] = $curUser[0]<br>uname = $uname<br>curUser[1] = $curUser[1]<br>nickname = $nickname<br>curUser[2] = $curUser[2]<br>pass = $pass");
}
That seems to always give me false. When I change the last "ne" to "eq", it always gives me true! Why is this? You can see that all of the info is correct:
---------------------
Error: Admin password supplied is invalid!
curUser[0] = sulfur
uname = sulfur
curUser[1] = sulfur
nickname = sulfur
curUser[2] = i0wnj00
pass = i0wnj00
---------------------
I tried chomping all the variables, plus all kinds of things, nothing works! HELP!
Thanks! ;)