Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('config/config.php');
- require_once('config/logincon.php');
- $user = $_POST['user'];
- $pass = $_POST['pass'];
- $pass2 = $_POST['pass2'];
- $email = $_POST['email'];
- if($pass != $pass2){
- echo "0";
- }
- else if($user == '') {
- echo "0";
- }
- else if($pass == '' || $pass2 == ''){
- echo "0";
- }
- else if($email == ''){
- echo "0";
- }
- else{
- $usercheck = "SELECT bane FROM account_data WHERE name = '".$user."'";
- $querycheck = mysql_query($usercheck);
- if(mysql_numrows($querycheck) > 0){
- echo "1";
- }
- else if(mysql_numrows($querycheck) == 0){
- if((!preg_match( '/^[_A-z0-9-]+((\.|\+)[_A-z0-9-]+)*@[A-z0-9-]+(\.[A-z0-9-]+)*(\.[A-z]{2,4})$/',$email)){
- echo "2";
- }
- else{
- $pass = base64_encode(pack('H*',sha1($pass)))
- $verify = md5(rand(0,1000000));
- mysql_query("INSERT INTO account_data (name, password, activated, access_level, membership, email, verify) VALUES ($user, $pass, 0, 0, 0, $email, $verify)") or die(mysql_error());
- echo "3";
- $headers = 'MIME-Version: 1.0' . "\r\n";
- $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
- $headers .= 'From: Aion Rebirth <noreply@aionrebirth.com>';
- mail($email,
- "Validate your Aion Reibrth account!",
- "<div style=\"height:40px;background:#09F;padding-top:10px;padding-left:20px;font-family:Arial, Helvetica, sans-serif;font-size:24px;color:#FFF;\"><b>vlog</b>City</div><div style=\"width:80%;min-height:100px;border:#999 1px solid;margin-left:auto;margin-right:auto;margin-top:15px;-webkit-border-top-left-radius: 5px;-webkit-border-bottom-right-radius: 5px;-moz-border-radius-topleft: 5px;-moz-border-radius-bottomright: 5px;border-top-left-radius: 5px;border-bottom-right-radius: 5px;font-family:Arial, Helvetica, sans-serif;padding:10px;\">Thank you for taking the time to register at Aion Rebirth, we are determined to grow and <br />expand. Your registration very valuable to us, so we ask <br />that you take the time to click the link below to verify that you're not a robot!<br /><br /><a href=\"" .SITE_URL. "/verify.php?email=" .$email. "&string=" .$verify. "\">Click Here To Validate</a><br /><br />"."By validating your account, you have saved at least one of our robot monkeys from blowing up!<br /><br /> Regards, Aion Reibrth team</div>", $headers);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement