Jesse60905 Posted July 15, 2007 Share Posted July 15, 2007 Ok I need to put in a code in the preferences page. global $db,$ir,$c,$userid,$h; if(md5($_POST['oldpw']) != $ir['userpass']) { That is basically where I need to put it. I need it to make it so when the user puts in their old password in the pass change that it inserts a small piece of code before converting it to MD5. I have an example of what I need. $db->query("UPDATE users SET userpass=md5('{$_POST['newpw']}THE CODE') WHERE userid=$userid"); That is pretty much what I want/need done. No rush as I have a few days but if possible I would like a quick answer. Thanks. Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted July 15, 2007 Share Posted July 15, 2007 Re: Just a small, puny, itty-bitty, cute, tiny little problem if (md5($_POST['oldpw'] . "code")) != $ir['userpass'] ? Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted July 15, 2007 Author Share Posted July 15, 2007 Re: Just a small, puny, itty-bitty, cute, tiny little problem Thank you =) Time to see if it works. Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted July 15, 2007 Author Share Posted July 15, 2007 Re: Just a small, puny, itty-bitty, cute, tiny little problem Works nicely =) I just needed to change to: if((md5($_POST['oldpw'] . "1xcvmbd")) != $ir['userpass']) Thanks again =) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.