require('scpt/class.dbiu.php'); require_once('scpt/globalFunctions.php'); if($siteStatus != "subsOpen"){ header($redirectPage); exit; } if(isset($_SESSION['acctID']) && $_SESSION['acctActive'] == 'Y'){ header($accountHome); exit; } $how_called = getenv("REQUEST_METHOD"); if($how_called == "GET"){ $blankSelect = ""; $allStates = getStatePairs(); $stateList = $blankSelect; while($thisState = mysql_fetch_assoc($allStates)){ $stateList .= "\n"; } require_once('create_us.html'); } if($how_called == "POST"){ if($_POST['passOne'] == $_POST['passTwo']){ $_POST['firmPhone'] = $_POST['phoneAC'].".".$_POST['phonePre'].".".$_POST['phoneSuf']; $_POST['firmFAX'] = $_POST['faxAC'].".".$_POST['faxPre'].".".$_POST['faxSuf']; $_POST['acctPass'] = $_POST['passOne']; $_POST['acctType'] = "Sub"; $insAddDB = new thisDBIU; $insAddDB->Connect(); //Add user to subAccount if(!$insAddDB->AddToDB("subAccount")) die($insAddDB->GetError()); optimizeTable("subAccount"); $_POST['acctUser'] = $subAcctPrefix.$_SESSION['insertID']; $_POST['acctFirstName'] = $_POST['primaryFirst']; $_POST['acctLastName'] = $_POST['primaryLast']; $_POST['acctEmail'] = $_POST['primaryEmail']; $_POST['acctEmail2'] = $_POST['secondaryEmail']; $_POST['acctType'] = 'Sub'; $_POST['acctActive'] = 'Y'; $_POST['subID'] = $_SESSION['insertID']; if(!$insAddDB->AddToDB("accountList")) die($insAddDB->GetError()); $insAddDB->Disconnect(); optimizeTable("accountList"); $pageTitle = "Success! Your account has been created!"; $errorHead = $pageTitle; $emailList = $_POST['acctEmail']; if($_POST['acctEmail2'] != '' || isset($_POST['acctEmail2'])) $emailList .= ",".$_POST['acctEmail2']; $errorDesc = "
A confirmation email has been sent to the following address(es): ".$emailList.". This email will contain your username for the site. IT IS FOR YOUR RECORDS ONLY, YOU DON'T ACTUALLY NEED TO SEE THE CONFIRMATION EMAIL TO BEGIN SUBMITTING YOUR ENTRIES. Your username and password are above, you can use them right now to begin the process! The confirmation email message will come from accounts@faithandformawards.com. If you do not receive this email, check your spam folder. To ensure that this message will get through, add 'accounts@faithandformawards.com' to your spam whitelist. Again, your account number and password are above, in big red characters. Please make a note of them now. Or copy them here and paste them into a document. Or take a screen capture of this page.
Our system WILL NOT send you a receipt – you will get receive a receipt directly from PayPal, as they handle the financial transaction. If you don't see your receipt, please check your spam filter. WE CANNOT SEND YOU A RECEIPT, as we do not have the transaction details to generate one. All we get from PayPal is confirmation that you've successfully made a payment.
"; require_once('accountMailScript.php'); } else { $errorList = ""; if($_POST['passOne'] != $_POST['passTwo']) $errorList .= " The two passwords you entered did not match.The following error(s) occurred:
".$errorList."Click here to go back and correct the problem.