0) { $newarray = @mysql_fetch_array($answer); $paidflag = $newarray[paid]; $amountflag = $newarray[amount]; } $errorflag = 0; $currentdate = time(); $postornot = $_POST[postornot]; $customername = $_POST[customername]; if ($customername == "") { $errorflag = 1; } $phone = $_POST[phone]; if ($phone == "") { $errorflag = 1; } $email = $_POST[email]; if ($email == "") { $errorflag = 1; } $password = $_POST[password]; if ($password == "") { $errorflag = 1; } $repassword = $_POST[repassword]; if ($password != $repassword) { $passerrorflag = 1; } $agree = $_POST[agree]; if ($agree != "on") { $errorflag = 1; } $billaddress = $_POST[billaddress]; mysql_select_db("amazingmain",$conn); $select = "select * from accounts where email = '$email'"; $check = mysql_query($select,$conn); if (mysql_num_rows($check) > 0) { $emailinuse = 1; $errorflag = 1; } mysql_select_db("amazingflash",$conn); include("amazingheader.php"); $select = "select * from maincounter where id = '$c'"; $answer = mysql_query($select, $conn); $newarray = mysql_fetch_array($answer); $lid = $newarray[secondid]; $namearray = explode(" ", $customername); $fname = $namearray[0]; $lname = $namearray[1]; if ($errorflag == 0) { $currenttime = time(); $olddate = $currenttime - (86400 * 3); // clean up database $delete = "delete from signups where date < '$olddate'"; mysql_query($delete, $conn); $select = "select * from signups where ip = '$ip'"; $answer = mysql_query($select, $conn); if (mysql_num_rows($answer) > 0) { $newarray = @mysql_fetch_array($answer); $subid = $newarray['subid']; $accountalreadyassigned = 1; } else { $insertrow = "insert into signups values (\"\" , \"$r\", \"$customername\", \"$phone\", \"$secondphone\", \"$billaddress\", \"$currentdate\", \"$paid\", \"$dbwebsitetype\", \"$ip\", \"$amount\", \"$email\", \"$password\", \"$pnref\", \"\", \"$lid\", \"0\")"; mysql_query($insertrow, $conn); // get next signup id $subid = mysql_insert_id ($conn); $update = "update bravenetmailinglist set trial = '1' where leadid = '$lid'"; mysql_query($update, $conn); $select = "select * from affiliates where affid = '$r'"; $answer = mysql_query($select, $conn); $newarray = mysql_fetch_array($answer); $signups = $newarray[signups]; $signups = $signups + 1; $update = "update affiliates set signups = '$signups' where affid = '$r'"; mysql_query($update, $conn); } // ends else for new signup // send welcome email $msg = "Your new account is almost set up ! Please confirm your email address by clicking the link below: http://amazingflash.com/validateemail.php?ident=$subid Please make sure your computer is accepting cookies from amazingflash.com. You can log in to your control panel here: http://amazingflash.com/control/ If you have not purchased a support package or custom built website, we do not offer any type of free one on one help from an actual programmer. This is important to understand to avoid people becoming upset when we do not answer website design questions. We let people use some of the best online tools in the world for free, and most people will be able to use it without any help, but it is impossible for any company to hire more programmers to help people for free. Amazing Flash is a community of members, not customers, whose purpose is to make website building easier, more fun and more affordable for the average person. Around 70% of our users are not spending any money whatsoever, and the rest have gotten much more than they paid for because of this system. Keeping a positive approach is essential to your success. Thank you for becoming a member of the Amazing Flash community ! "; $subject = "Welcome To Amazing Flash.com - Please Confirm Your Email Address"; $mailheaders = "From: contact@amazingflash.com"; @af_email($email, $subject, $msg, $mailheaders); $at = $_POST[at]; switch ($at) { case "free hosting": case "": break; case "remote server": $update = "update signups set tempname = 'remote server' where subid = '$subid'"; mysql_query($update, $conn); break; case "remote cart": $update = "update signups set tempname = 'remote cart' where subid = '$subid'"; mysql_query($update, $conn); break; case "paid hosting": $update = "update signups set tempname = 'paid hosting' where subid = '$subid'"; mysql_query($update, $conn); break; } // ends switch // print message telling to validate email ?>
Welcome To Amazing Flash !"; if ($accountalreadyassigned == "1") { echo "Our records indicate that you have already signed up for an account. We have resent the email to your address so that you can log in with the correct information. If you have trouble logging in, please contact us by replying to the email that is sent to you. This is so we can see the identification number that was assigned to your account which will allow us to see what is going on. you must first pay for your first month of web hosting. Click Here "; } echo " You must confirm your email address by clicking a link inside an email we just sent to you. This email has been sent to $email. If you have not purchased a support package or custom built website, we do not offer any type of free one on one help from an actual programmer. This is important to understand to avoid people becoming upset when we do not answer website design questions. We let people use some of the best online tools in the world for free, and most people will be able to use it without any help, but it is impossible for any company to hire more programmers to help people for free. Amazing Flash is a community of members, not customers, whose purpose is to make website building easier, more fun and more affordable for the average person. Around 70% of our users are not spending any money whatsoever, and the rest have gotten much more than they paid for because of this system. Keeping a positive approach is essential to your success. There is plenty of information inside the control panel, and more being added as new questions arise. We have also just started free support forums for all of our projects. They are new, but we will be checking them while the forum community grows and we will be answering many questions on there. Members are encouraged to help each other, you never know when you will need help yourself one day. Please make sure to check your email's junk mail folder if our email doesn't come."; } echo " |