Will Posted May 15, 2007 Posted May 15, 2007 This is a password reset script which involves several emails. This is for people who use md5 encryption on there passwords. It works for me but there might be some unknown bugs but it's free and you can change and mess around with it. It was made for version 1 Firstly open global_func.php, go to the bottom and add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. NOTE:This is the only part which isn't my own but it is allowed to be freely used FOR V1: Secondly create a file called forgot_password.php adn put this in it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then create a file called passreset.php and put this in it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. The add this to your daily cron: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. For V2: Secondly create a file called forgot_password.php adn put this in it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then create a file called passreset.php and put this in it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. The add this to your daily cron: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Run this database query: CREATE TABLE `passreset` ( `id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `key` VARCHAR( 255 ) NOT NULL , `userid` INT( 11 ) NOT NULL , `time` INT( 11 ) NOT NULL ) ENGINE = MYISAM ; And finally create a link to forgot_password.php on the homepage. Oh, and change the header and email accordingly. Quote
oxidati0n Posted May 17, 2007 Posted May 17, 2007 Re: [Free] Password reset code Nice..At least it isn't all in one crappy one. +1 for at least posting it. Quote
Isomerizer Posted July 11, 2007 Posted July 11, 2007 Re: [Free] Password reset code Dont think it works, tryed it out didnt recieve no email :| Quote
Will Posted July 11, 2007 Author Posted July 11, 2007 Re: [Free] Password reset code It works for me. You have to change he game name values to be specified to you and check that the rows exist. Also your host needs to allow email to be sent using php. Quote
Isomerizer Posted July 11, 2007 Posted July 11, 2007 Re: [Free] Password reset code Ahh i removed "@$send" and it works, Thanks +1 Quote
Decepti0n Posted July 11, 2007 Posted July 11, 2007 Re: [Free] Password reset code I was gonna say lol From what I remember the @ should be in front of the function, so $send = @mail ... Otherwise it looks good and secure :P Quote
Jawad Posted July 15, 2007 Posted July 15, 2007 Re: [Free] Password reset code m8 wat do i have to add on this mysql.php cuz it says require "mysql.php"; and when i done it get this error Warning: main(mysql.php) [function.main]: failed to open stream: No such file or directory in /home/immor5/public_html/forgot_password.php on line 6 Warning: main(mysql.php) [function.main]: failed to open stream: No such file or directory in /home/immor5/public_html/forgot_password.php on line 6 Warning: main(mysql.php) [function.main]: failed to open stream: No such file or directory in /home/immor5/public_html/forgot_password.php on line 6 Fatal error: main() [function.require]: Failed opening required 'mysql.php' (include_path='.:/usr/lib/php') in /home/immor5/public_html/forgot_password.php on line 6 Quote
03laceys Posted July 15, 2007 Posted July 15, 2007 Re: [Free] Password reset code Warning: main(mysql.php) [function.main]: failed to open stream: No such file or directory in /home/immor5/public_html/forgot_password.php on line 6 read it properly main(mysql.php) failed to open stream No such file forgot_password.php now i think you get it your missing the mysql file Quote
iseeyou94056 Posted July 17, 2007 Posted July 17, 2007 Re: [Free] Password reset code how can i tell if it is md5 encryption or not Quote
Decepti0n Posted July 17, 2007 Posted July 17, 2007 Re: [Free] Password reset code if it's 32 characters long and a-f and 0-9, then it probably is Quote
waffles Posted July 17, 2007 Posted July 17, 2007 Re: [Free] Password reset code Warning: main(mysql.php) [function.main]: failed to open stream: No such file or directory in /home/immor5/public_html/forgot_password.php on line 6 read it properly failed to open stream No such file forgot_password.php now i think you get it your missing the forgot_password file Actually you are incorrect. He is missing the mysql.php file. Which was called inside the forgot_password.php file. Quote
EMKO Posted July 18, 2007 Posted July 18, 2007 Re: [Free] Password reset code nice mod works 100% sends email sends password but i cant figure out why it wont let me do this when im loged out? for example if i try to click the link it will always send me to login.php even if i try to type it in manualy www.game.com/forgot_password.php but say im loged in i can type it and it works very good i think this mod was for V1 and i change the top part for V2 works fine just doesn't load without been logged in Quote
oxidati0n Posted July 19, 2007 Posted July 19, 2007 Re: [Free] Password reset code Gangster Language (apparently) :i duno it myt nt wrk 4 u Properly : I don't know it might not work for you EMKO please can you speak like a human being. Quote
Satans_Pimp Posted July 19, 2007 Posted July 19, 2007 Re: [Free] Password reset code here it is for v2 This is a password reset script which involves several emails. This is for people who use md5 encryption on there passwords. It works for me but there might be some unknown bugs but it's free and you can change and mess around with it. Firstly open global_func.php, go to the bottom and add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. NOTE:This is the only part which isn't my own but it is allowed to be freely used Secondly create a file called forgot_password.php adn put this in it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then create a file called passreset.php and put this in it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. The add this to your daily cron: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Run this database query: CREATE TABLE `passreset` ( `id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `key` VARCHAR( 255 ) NOT NULL , `userid` INT( 11 ) NOT NULL , `time` INT( 11 ) NOT NULL ) ENGINE = MYISAM ; And finally create a link to forgot_password.php on the homepage. Oh, and change the header and email accordingly. Quote
twist_killer Posted July 19, 2007 Posted July 19, 2007 Re: [Free] Password reset code Gangster Language (apparently) :i duno it myt nt wrk 4 u Properly : I don't know it might not work for you EMKO please can you speak like a human being. i don't know if its me but from what you've typed to be ganster language and EKMO's language is completley different Quote
EMKO Posted July 20, 2007 Posted July 20, 2007 Re: [Free] Password reset code so i need perfect English to be human? are u sure that works with V2? i get the same error when i try to use V1 mod on my game but once i change the top part the mod works just doesn't work without been logged in which is dumb because people need there password to login LOL Quote
Jesse60905 Posted July 21, 2007 Posted July 21, 2007 Re: [Free] Password reset code The reason is is because in globals.php it has the "if['loggedin'] == 0" thing so by changing the top part to include globals.php you are making it do that. So that's why it won't work for globals.php. What you could do is make a new globals.php just for that page or just write headers for that page like those that are in V1 but w/e. Quote
RecklessCounty Posted August 3, 2007 Posted August 3, 2007 Re: [Free] Password reset code This for v1 anyone? Quote
Ishy Posted August 3, 2007 Posted August 3, 2007 Re: [Free] Password reset code I like it, works well this the games... Thanks +1 Quote
HITMAN 17 Posted August 22, 2007 Posted August 22, 2007 Re: [Free] Password reset code thnx mate Quote
3XTR3M3 Posted August 22, 2007 Posted August 22, 2007 Re: [Free] Password reset code when i click on forgot password it just refreshes page Quote
3XTR3M3 Posted September 14, 2007 Posted September 14, 2007 Re: [Free] Password reset code it send the email just whne you click lthe link the page cant be displayed Quote
Will Posted September 14, 2007 Author Posted September 14, 2007 Re: [Free] Password reset code Did you change the link in the email to your site name? Did you upload all the files with the correct files names? Quote
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.