PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I am having trouble with the following PHP password files. I have set the permissions 755. The problem is two-fold. I can actually log in with any password. It is not authenticating. The other proglem is that the level of admin "abilities" that is set in the passwords.php file is not recognized.
I also notice, in the first snippet of code, a reference to passwd.txt. Is this something that is supposed to be generated on it's own? In the script I uploaded I did not see a file named that.
Here is the checkpass.php code:
it would appear that passwd.txt is supposed to be generated based on other users than guest and admin. The password isn't checked, as it's just checking to see if the user is there. i.e. $pass is being looked at as the user, not the password.