ok, i've been working some more on the separate permissions and password files. i'm storing userid, password, permissions all set to 0, and email in the password file (just to keep same file layouts). i'm storing userid, userid, permissions and trailing colon : in the permission file. in admin, i want the following:
1 add a new user to the permission file IF the user already exists in the password file.
2 delete a user from the permission file only
3 modify existing permissions in permission file AND modify existing password or email in the password file
4 user list displays only the users in the permission file
1, 2 and 4 are working fine with preliminary testing.
3 has problems! i think finally it is all working except it is changing the password every time! for some reason the comparison of the password in the pw file is not being matched to $in{'password'} so it is generating a new one every time i modify anything.
i'm attaching a text file of sub admin display and hope someone can spot my problem.
1 add a new user to the permission file IF the user already exists in the password file.
2 delete a user from the permission file only
3 modify existing permissions in permission file AND modify existing password or email in the password file
4 user list displays only the users in the permission file
1, 2 and 4 are working fine with preliminary testing.
3 has problems! i think finally it is all working except it is changing the password every time! for some reason the comparison of the password in the pw file is not being matched to $in{'password'} so it is generating a new one every time i modify anything.
i'm attaching a text file of sub admin display and hope someone can spot my problem.