Jump to content
MakeWebGames

Recommended Posts

Posted

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.

  • Replies 61
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
Posted

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.

Posted

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

Posted

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

Posted

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.

Posted

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

Posted

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.

Posted

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.

Posted

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

Posted

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

Posted

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.

  • 2 weeks later...
  • 3 weeks later...
  • 4 weeks later...
Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...