Help - Search - Members - Calendar
Full Version: need a php code revision guru
Get Paid Forum - Get Paid Discussion > Webmaster's Corner > Advertising Section related to Running a website > Script Exchange > For Sale Archive
ZapGurl
I want to add an additional function to one of my php scripts without rewriting the whole scripts.

it's sort of a subscription list/member login. Currently it takes ANY email address and adds it onto the list and passes the user to the member area (no passwords just an email address).

what I want is for the script to send a verification email with a verification code before adding to the list then giving access to the member area.

I know this can be done but I'm not yet a guru to modify into my script.
ipayuclick
Do you mean:
If the email address found in your database, then a verify email is sent to that address with the verification code?
ZapGurl
no...

example how it is set up right now.

user enters "email address", if it is in the database, they proceed to member area.
if not in database, assigns id and proceeds to member area.

--------
What I want:
--------
user enters "email address", if it is in the database, they proceed to member area.
if NOT in database, they are sent a verification code via email, they must click on this code validating their email address, then assigned their id and proceeds to member area.

-----------------------------------------
I saw a hash code the can implemented in the current script but I'm having trouble implementing it
ReDucTor
I recommend using an md5 hash of the password concat'd with a secret key, for a validation code.

Also depending on how they can abuse this members account you should setup a password for the members area. (there are other members because its email based, but you say your starting out, so I won't go into them)
ZapGurl
Hi Reductor,
do you want to take a stab at it? ...it's only one itty bitty file.

In actuality, the members area does not really need to be secure.
If someone logged in with someone's elses email address, they would only benefit the other person.

Anyone quote me price to add this function to my script.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.