Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = $_POST['username'];
- $email = $_POST['email'];
- $passwords = $_POST['password'];
- $password = hash( 'whirlpool', $passwords);
- $password = strtoupper($password);
- $com_code = md5(uniqid(rand()));
- $today = date("d/m/y");
- $ipAddress = $_SERVER["REMOTE_ADDR"];
- $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)";
- $result2 = mysql_query($sql2);
- if($result2)
- {
- $to = $email;
- $subject = "Verification Email from Khusus Gaming to $username";
- $header = "Khusus Gaming: Verification Email from Khusus Gaming";
- $message = "Please click the link below to verify and activate your account.";
- $message .= "Link Activation:";
- $message .= "http://khususgaming.ga/ucp/confirm.php?passkey=$com_code";
- $sentmail = mail($to,$subject,$message,$header);
- if($sentmail)
- {
- echo "Your Confirmation link Has Been Sent To Your Email Address. Please check Inbox or Spam folder in your Email Address.";
- }
- else
- {
- echo "Cannot send Confirmation link to your e-mail address";
- }
- }
- else{
- echo "Can't process data!";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement