include "../connect.php3"; $response=0; //compare emailx and passwordx if both then test against memberbase if email, then email password/// if (($emailx) && !($userid)): if (($emailx) && ($passwordx) && !($userid)): $query = "SELECT uniqid FROM user WHERE(password LIKE '$passwordx' AND email LIKE '$emailx' )"; $result = mysqli_query( WjtlOpenDB(), $query); $number= mysqli_num_rows($result); if ($number > 0): $userid = mysql_result($result,0,uniqid); $timer = mktime(0,0,0,1,1,2020); setcookie("userid",$userid, $timer,"/",".wjtl.com",0); //echo $userid; else: $response=1; endif; else: $query = "SELECT * FROM user WHERE( email = '$emailx' )"; $result = mysqli_query( WjtlOpenDB(), $query); $numrow= mysqli_num_rows($result); if ($numrow > 0): $password = mysql_result($result,0,password); // mail password $mail = $emailx; $subject_field="wjtl.com WEB Membership"; $message_text="Here is your information to Reactivate! \n\n Your Password: $password \n Your Email Address: $emailx \n\n If you ever need to confirm your membership to wjtl.com you will need to remember these items so store this email in a safe place. \n\n http://www.wjtl.com\n"; mail($emailx, $subject_field, $message_text, "From:webmaster@wjtl.com"); $response=2; else: $response=1; endif; endif; endif; include "header.php" ?>
if (!($userid)): if ($response== 1): echo "***I am sorry the information you provided is not listed in our database.\n"; echo "Try a different Email Address and Password below \n"; echo "or fill out a new membership form.\n"; elseif ($response== 2): echo "***Your password should be emailed to your address shortly.\n"; echo "Check your email and then come back and fill in your Email Address and Password below.\n"; echo "\n"; endif; ?> |