Advertisement
Guest User

Untitled

a guest
Jan 29th, 2017
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. $username = $_POST['username'];
  2. $email = $_POST['email'];
  3. $passwords = $_POST['password'];
  4. $password = hash( 'whirlpool', $passwords);
  5. $password = strtoupper($password);
  6. $com_code = md5(uniqid(rand()));
  7. $today = date("d/m/y");
  8. $ipAddress = $_SERVER["REMOTE_ADDR"];
  9. $sql2 = "INSERT INTO accounts(ID,Name,Email,com_code,Active,noCash,Level,Score,Money,hID,HOwned,bID,bOwned,Bank,LastOn,RDate,TimeOnServer,Skin,SkinID,Kills,Deaths,IP,X,Y,Z,Interior,World,Password,TempDemote,TempDemoteDate,TempDemotel,sboost,LastY,LastM,LastD,PMBlock,bInterior,Status,Rank,EXP,RStats,pCoin,Hours,Minutes,Seconds,tRob,tAch,tLMS,tDuel,tOutRun,changename) VALUES (NULL,'$username','$email','$com_code',0,0,0,0,50000,0,0,0,0,0,0,'$today',0,0,0,0,0,'$ipAddress',0,0,0,0,0,'$password',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)";
  10. $result2 = mysql_query($sql2);
  11.  
  12. if($result2)
  13. {
  14. $to = $email;
  15. $subject = "Verification Email from Khusus Gaming to $username";
  16. $header = "Khusus Gaming: Verification Email from Khusus Gaming";
  17. $message = "Please click the link below to verify and activate your account.";
  18. $message .= "Link Activation:";
  19. $message .= "http://khususgaming.ga/ucp/confirm.php?passkey=$com_code";
  20. $sentmail = mail($to,$subject,$message,$header);
  21.  
  22. if($sentmail)
  23. {
  24. echo "Your Confirmation link Has Been Sent To Your Email Address. Please check Inbox or Spam folder in your Email Address.";
  25. }
  26. else
  27. {
  28. echo "Cannot send Confirmation link to your e-mail address";
  29. }
  30. }
  31. else{
  32. echo "Can't process data!";
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement