07.11.2014, 16:24
At Last I have made it ... Firstly I will give the credits to those who really deserve it !
Introduction:-
Hello There Sampers ! Today I will present you my FS That is a Simple Registration System With a Recovery System .. I decided to release it But Also Teach it So I will also tell you guyz how it works ..
How it Works ? :-
Okay so Now I will just tell you guyz How to use it As well as How it works ... So to use it you will need mailer.php uploaded on your host I know many of you guyz may not be having the host So Everything is set up in the script already Including the sender's email so you basically have nothing to do.. But if you wanna do it by your step's like if you wanna put your email in the sender's email then read customizing Section below .. So it works like .. When a player registers it saves the password of the player in WP_HASH Form (Whirlpool Hash) And Saves a PIN(Personal Identity Number ) Of each player The number is any 3 digit random number And it changes from time to time ... So that cannot be hacked or something .. SO After completing the register dialog you will get a dialog to set up your email ID if you skip that it won't save your email and if you forget your pass you can't do anything ...So if the email is set up on every login dialog there will be a option of Forgot Pass If you click that and you have saved your email then a Mail will be send to you which will be like this
And You just have to follow those instructions and your Pass os resetted Safely
Downloads And Set Up :-
Ok I have attached the .pwn file You can download it from there Or As I and many others prefer Here is the Paste Bin http://pastebin.com/5kjFif0u
If you wanna customize stuff you can see this thread https://sampforum.blast.hk/showthread.php?tid=197755 Or Download Mailer.php Here http://spelsajten.net/dl.php?file=mailer.php
IMPORTANT YOU NEED TO HAVE MAILER INCLUDE TO HAVE THIS WORK DOWNLOAD FROM HEREhttp://spelsajten.net/dl.php?file=mailer.inc
Now it is easy to set up just Add AR.pwn in the filterscripts line of server.cfg And you are ready to go
Also Make a Folder in scriptfiles called User to make it work
Customize it <3 :-
So the customizing part .. You can customize anything you want but at your own risk ... And Please give me credits if you would like to .. if you don't wanna give them its totally okay with me Cuz I'll be happy that I made this myself
BTW You can customize some things like if you wanna upload mailer.php then you can and also you can change some stuff If you wanna do this then just Find for CUSTOM in the script Like CRLT + F --> CUSTOM
About mailer.php :-
I have provided hosting including script that hosts mailer.php But for better usage you can upload it to your own host after you have done that you have to change the following define
You can also change the message that is send through the email Using the Following
Stuff Needed :-
I am planning to update it .. I think I will BTW Next Update I will add Login tries Like 5 Tries only .. . Login Timer .. And More Stuff .. If someone wishing to help can PM me
PHP Code:
Slice For his mailer include the most important thing ;) http://forum.sa-mp.com/showthread.php?t=197755
This whole Thread Whoever Helped Here :- http://forum.sa-mp.com/showthread.php?t=542773
The Poll Which Gave me Idea To make it A TUT + FS :- http://forum.sa-mp.com/poll.php?do=showresults&pollid=1201
Everyone Else Who helped me making this
My Friend Sunny Who supported me ;)
KyleSmith My RoleModel Who Actually Inspired me and so Im a scripter
Of course codeacademy.com For teaching me PHP As well as HTML So that I have the basic knowledge
000webhost.com For the Email Address Which will be working and for hosting the mailer.php
Hello There Sampers ! Today I will present you my FS That is a Simple Registration System With a Recovery System .. I decided to release it But Also Teach it So I will also tell you guyz how it works ..
How it Works ? :-
Okay so Now I will just tell you guyz How to use it As well as How it works ... So to use it you will need mailer.php uploaded on your host I know many of you guyz may not be having the host So Everything is set up in the script already Including the sender's email so you basically have nothing to do.. But if you wanna do it by your step's like if you wanna put your email in the sender's email then read customizing Section below .. So it works like .. When a player registers it saves the password of the player in WP_HASH Form (Whirlpool Hash) And Saves a PIN(Personal Identity Number ) Of each player The number is any 3 digit random number And it changes from time to time ... So that cannot be hacked or something .. SO After completing the register dialog you will get a dialog to set up your email ID if you skip that it won't save your email and if you forget your pass you can't do anything ...So if the email is set up on every login dialog there will be a option of Forgot Pass If you click that and you have saved your email then a Mail will be send to you which will be like this
And You just have to follow those instructions and your Pass os resetted Safely
Downloads And Set Up :-
Ok I have attached the .pwn file You can download it from there Or As I and many others prefer Here is the Paste Bin http://pastebin.com/5kjFif0u
If you wanna customize stuff you can see this thread https://sampforum.blast.hk/showthread.php?tid=197755 Or Download Mailer.php Here http://spelsajten.net/dl.php?file=mailer.php
IMPORTANT YOU NEED TO HAVE MAILER INCLUDE TO HAVE THIS WORK DOWNLOAD FROM HEREhttp://spelsajten.net/dl.php?file=mailer.inc
Now it is easy to set up just Add AR.pwn in the filterscripts line of server.cfg And you are ready to go
Also Make a Folder in scriptfiles called User to make it work
Customize it <3 :-
So the customizing part .. You can customize anything you want but at your own risk ... And Please give me credits if you would like to .. if you don't wanna give them its totally okay with me Cuz I'll be happy that I made this myself
BTW You can customize some things like if you wanna upload mailer.php then you can and also you can change some stuff If you wanna do this then just Find for CUSTOM in the script Like CRLT + F --> CUSTOM
About mailer.php :-
I have provided hosting including script that hosts mailer.php But for better usage you can upload it to your own host after you have done that you have to change the following define
PHP Code:
#define MAILER_URL "Your Mailer.php Link here " // This has to be defined BEFORE you include mailer.
Quote:
Usage
PHP Code:
|
I am planning to update it .. I think I will BTW Next Update I will add Login tries Like 5 Tries only .. . Login Timer .. And More Stuff .. If someone wishing to help can PM me