$sqluser = '******' . $_POST['user'] . '"'; $user_check = mysql_query($sqluser); $do_user_check = mysql_num_rows($user_check); if ($do_user_check > 0) { header("location:../register.php?err=plmoknijb"); } else { $sqlmail = 'SELECT `email` FROM `accounts` WHERE `email`="' . $_POST['xmail'] . '"'; $mail_check = mysql_query($sqlmail); $do_mail_check = mysql_num_rows($mail_check); if ($do_mail_check > 0) { header("location:../register.php?err=qazxswedc"); } else { if (!preg_match('#^\\w+$#ius', $_POST['user'])) { header("location:../register.php?err=asdfghjkl"); } else { if (exe_register($_POST['user'], $_POST['pass'], $_POST['full'], $_POST['xmail'], $Anum, $_POST['contact'])) { $to = $_POST['xmail']; $subject = "Welcome email and validation "; $message = "\n\t\t\t\t\t\t\t\t\t\t\t<html>\n\t\t\t\t\t\t\t\t\t\t\t<head>\n\t\t\t\t\t\t\t\t\t\t\t<title>Email Validation</title>\n\t\t\t\t\t\t\t\t\t\t\t</head>\n\t\t\t\t\t\t\t\t\t\t\t<body>\n\t\t\t\t\t\t\t\t\t\t\t<p>Verify Your Account click the link below!</p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Hi There " . $_POST['user'] . "</p>\n\t\t\t\t\t\t\t\t\t\t\t</br>\n\t\t\t\t\t\t\t\t\t\t\t<p>Your Password:"******"</p>\n\t\t\t\t\t\t\t\t\t\t\t<p><a href='http://projects.azneita.org/sitefeat/index.php?activation=" . $Anum . "'>http://projects.azneita.org/sitefeat/index.php?activation=" . $Anum . "</a></p>\n\t\t\t\t\t\t\t\t\t\t\t<p>Have a nice Day Enjoy</p>\n\t\t\t\t\t\t\t\t\t\t\t</body>\n\t\t\t\t\t\t\t\t\t\t\t</html>\n\t\t\t\t\t\t\t\t\t\t\t"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers .= 'From: <*****@*****.**>' . "\r\n"; mail($to, $subject, $message, $headers); echo "Account Creation is sucessfull<br>"; echo 'Redirecting...'; header('Refresh:2 ; URL=../index.php?err=yfskldjfa'); } else { header("location:../register.php?err=asdfghjkl"); } } }
} else { return true; } } if ($_POST['submit'] == 'Sign up') { $sqluser = '******' . $_POST['user'] . '"'; $user_check = mysql_query($sqluser); $do_user_check = mysql_num_rows($user_check); if ($do_user_check > 0) { header("location:../registrar.php?err=plmoknijb"); } $sqlmail = 'SELECT email from accounts WHERE email="' . $_POST['xmail'] . '"'; $mail_check = mysql_query($sqlmail); $do_mail_check = mysql_num_rows($mail_check); if ($do_mail_check > 0) { header("location:../registrar.php?err=qazxswedc"); } if (!preg_match('#^\\w+$#ius', $_POST['user'])) { header("location:../registrar.php?err=asdfghjkl"); } else { if (exe_register($_POST['user'], $_POST['pass'], $_POST['full'], $_POST['paypal'], $_POST['xmail'])) { echo "Account Creation is sucessfull<br>"; echo 'Redirecting...'; header('Refresh:2 ; URL=../login.php'); } else { header("location:../registrar.php?err=asdfghjkl"); } } } else { header('location:../registrar.php'); }