session_start();
header("Cache-control: private"); //IE 6 Fix
// Check to see if user is logged in.
if ($_SESSION['currentuser']!="") {
include("header.php");
echo "
You cannot register while logged in";
include("footer.php");
}
?>
$message="";
$x=$HTTP_GET_VARS["x"];
if ($x != "32") {
signupform();
}
if($x=="32"){
$a=1;
global $HTTP_POST_VARS;
$xemail = $_POST["email"];
$xpassword=$_POST["password"];
$xcpassword=$_POST["cpassword"];
$xfirstname = $_POST["firstname"];
$xlastname = $_POST["lastname"];
$xdisplayname = $_POST["displayname"];
$xage = $_POST["age"];
$xgender = $_POST["gender"];
$xethnic = $_POST["ethnic"];
$xmaritalstatus = $_POST["maritalstatus"];
$xlocation = $_POST["location"];
$xstate = $_POST["state"];
$xcountry = $_POST["country"];
$xeducation = $_POST["education"];
$xoccupation = $_POST["occupation"];
$xincome = $_POST["income"];
$xchildren = $_POST["children"];
$xsmoker = $_POST["smoker"];
$xdrinker = $_POST["drinker"];
$xherefor = $_POST["herefor"];
$xherefor1 = $_POST["herefor1"];
$xherefor2 = $_POST["herefor2"];
$xherefor3 = $_POST["herefor3"];
$xaboutme = $_POST["aboutme"];
$xwhyimhere = $_POST["whyimhere"];
$xwillingto = $_POST["willingto"];
$xwillingto1 = $_POST["willingto1"];
$xwillingto2 = $_POST["willingto2"];
$xincludeministers = $_POST["includeministers"];
$xpersonals = $_POST["personals"];
$xemailme = $_POST["emailme"];
$xnewsletter = $_POST["newsletter"];
// $x = $_POST[""];
mysql_connect("localhost", "marinetw", "usmarines7") or die(mysql_error());
mysql_select_db("marinetw_memberdatabase") or die(mysql_error());
//Check to see if email address is already registered
$result = mysql_query("SELECT email FROM members");
while($row = mysql_fetch_array( $result )) {
$test = $row['email'];
if($test == $xemail){
$emailcheck = "1";
}
}
if($emailcheck == "1"){
define("TITLE", "Email Address already registered");
include("header.php");
echo $xemail;
echo "
Email Address is already registered.
Click the back button on your browser to correct this.";
include("footer.php");
}
//Check to see if password and confirm password match
if($xpassword != $xcpassword){
define("TITLE", "Password Mismatch");
include("header.php");
$message = "
Password and Confirm Password do not match!
Click the back button on your browser to correct this.";
echo $message;
include("footer.php");
}
$startdate = date("F j, Y");
$startdate = $startdate." - ".date("g:i a")." EST";
$confirmationnumber = rand(1000, 1000000);
$confirmationnumber = $confirmationnumber."-".rand(1000, 1000000);
$confirmationnumber = $confirmationnumber."-".rand(1000, 1000000);
// Make a MySQL Connection
mysql_connect("localhost", "marinetw", "usmarines7") or die(mysql_error());
mysql_select_db("marinetw_memberdatabase") or die(mysql_error());
// Insert a row of information into the table "members"
mysql_query("INSERT INTO members
(Blocked, email, password, firstname, lastname, displayname, startdate, age, gender, ethnic, maritalstatus, location, state, country, education, occupation,
income, children, smoker, drinker, herefor, herefor1, herefor2, herefor3, aboutme, whyimhere, willingto, willingto1, willingto2, includeministers, personals, emailme, newsletter, confirmationnumber, active)
VALUES('Yes', '$xemail', '$xpassword', '$xfirstname', '$xlastname', '$xdisplayname', '$startdate', '$xage', '$xgender', '$xethnic', '$xmaritalstatus', '$xlocation',
'$xstate', '$xcountry', '$xeducation', '$xoccupation', '$xincome', '$xchildren', '$xsmoker', '$xdrinker', '$xherefor', '$xherefor1', '$xherefor2', '$xherefor3',
'$xaboutme', '$xwhyimhere', '$xwillingto', '$xwillingto1', '$xwillingto2', '$xincludeministers', '$xpersonals', '$xemailme', '$xnewsletter', '$confirmationnumber', 'No') ");
mysql_query("INSERT INTO cosmetic (email, startdate) VALUES('$xemail', '$startdate') ");
// Sends an email to the new member about their registration
global $HTTP_POST_VARS;
$to = $xemail;
$subject = "Thank you for your registration!";
// message
$message = '
I would like to take this opportunity to extend my thanks to you for registering as a member of Christian Polygyny. Here at
Christian Polygyny we are committed to spreading the truth of Biblical Patriarchy/Polygyny and educating others as to the truth.
We hope that you will also join us in this quest to spread the truth. By signing up as a member of Christian Polygyny you are able
to enjoy all the free benefits such as posting a profile and contacting other members through the site. Make sure to check out the
other great features of the site as well. There is a large discussion forum, a free computer wallpaper section, links to other great
sites and much more. Again, I thank you for signing up as a member of Christian Polygyny. Thank you for your time. Take care and
God bless.
In order to activate your account you must click on the link below or copy and paste it into your web browser.
http://polygyny.dukeofmarshall.com/activate.php?con='.$confirmationnumber.'&user='.$xemail.'
Site Moderator/Administrator,
Todd D. Webb
Below is their contact information that they registered with.
* Required |
By filling information into the form above and clicking the submit button I attest that I have read the terms and conditions and agree to them. |