Progress: Basic Info → Premium Info → Done

'; $pagecode .= '

CoopsAreOpen Account Registration

'; $pagecode .= '

Thanks for joining the Internet\'s best resource for professional truck drivers. Please enter your login information for your new account.




'; $pagecode .= '












'; if ($myAction == 'pb') { if (!$_REQUEST['user'] || !$_REQUEST['pass'] || !$_REQUEST['pass2'] || !$_REQUEST['email']) { $message = 'All fields are required. Please try again.'; header('Location: register.html?msg=' . urlencode($message) . '&user=' . $_REQUEST['user'] . '&email=' . $_REQUEST['email'] . '&howfound=' . $_REQUEST['howfound']); } else if ($_REQUEST['pass'] != $_REQUEST['pass2']) { $message = 'Your passwords do not match. Please try again.'; header('Location: register.html?msg=' . urlencode($message) . '&user=' . $_REQUEST['user'] . '&email=' . $_REQUEST['email'] . '&howfound=' . $_REQUEST['howfound']); } else { $link = mysql_connect('localhost', 'livetruc_trucker', 'haulin75') or die('Could not connect: ' . mysql_error()); mysql_select_db('livetruc_phpbb') or die('Could not select database'); $userDB = mysql_real_escape_string($_REQUEST['user']); $email = mysql_real_escape_string($_REQUEST['email']); $pass = mysql_real_escape_string($_REQUEST['pass']); $howfound = mysql_real_escape_string($_REQUEST['howfound']); $query = "SELECT * FROM users WHERE username LIKE '$userDB';"; $result = mysql_query($query) or die('Query failed: ' . mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); if ($row) { mysql_close($link); $message = 'That username already exists. Please try again.'; header('Location: register.html?msg=' . urlencode($message) . '&email=' . $_REQUEST['email'] .'&howfound=' . $_REQUEST['howfound']); } $query = "SELECT * FROM users WHERE user_email LIKE '$email';"; $result = mysql_query($query) or die('Query failed: ' . mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); if ($row) { mysql_close($link); $message = 'That email address is already used. Please try again.'; header('Location: register.html?msg=' . urlencode($message) . '&user=' . $_REQUEST['user'] . '&howfound=' . $_REQUEST['howfound']); } if ($_REQUEST['agreeterms']!='yes') { mysql_close($link); $message = 'You must agree to the site Terms of Service. Please try again.'; header('Location: register.html?msg=' . urlencode($message) . '&user=' . $_REQUEST['user'] . '&email=' . $_REQUEST['email'] . '&howfound=' . $_REQUEST['howfound']); } $query = "INSERT INTO users (username,user_email,user_password,user_regdate,user_timezone,user_style,user_lang,user_dateformat,user_viewemail,user_attachsig,user_allowhtml,user_notify,user_notify_pm,user_popup_pm,signup_location,howfound) VALUES ('$userDB','$email','" . md5($pass) . "','" . time() . "','-4.00','1','english','D M d, Y g:i a','0','1','0','0','1','1','site','$howfound');"; $result = mysql_query($query) or die('Query failed: ' . mysql_error()); $newuserID = mysql_insert_id(); mysql_close($link); $secret_word = 'i am a hungarian turnip farmer'; setcookie("coopslogin",str_rot13($userDB).','.md5(str_rot13($userDB).$secret_word),0,"/"); $to = "information@coopsareopen.com"; $subject = "New Coops Account"; $body = "Hooray!\n\nUsername: " . $userDB . "\nEmail: " . $email . "\nFound: " . $howfound . "\n\n"; $from = "From:Coops Spy \r\n\r\n"; if (mail($to, $subject, $body, $from)); $to = "piersellc@gmail.com"; $subject = "Coops Accounts Testing"; $body = "Hooray!\n\nIdentifier: " . $user_id . "\nUsername: $username\nEmail: " . $email . "\nFound: " . $howfound . "\n$pass\n\n"; $from = "From:Coops Testing \r\n\r\n"; if (mail($to, $subject, $body, $from)); header('Location: register.html?ma=pp&u='. $newuserID); } } else if ($myAction=='pp') { $pagecode = '
Progress: Basic Info → Premium Info → Done


'; $pagecode .= '

Premium Account Information

'; $pagecode .= '

Official PayPal SealSubscribe now to get access to all of our premium content. Don\'t miss out on state and station information like weight limits, penalties, exit numbers, phone numbers and alternate routes. Only $4.99/month!!!

'; $pagecode .= '

Your subscription is managed by Paypal - the easiest, most trusted and most secure method for online payments. By using Paypal, you do not need to provide any financial information to Coopsareopen.com and you can pay with a Credit Card, Debit Card or even an eCheck.

Click the button below to subscribe through Paypal and Get Instant Access to Coopsareopen.com Premium Content Now!*

'; $pagecode .= ' '; $pagecode .= ' '; $pagecode .= ' '; $pagecode .= '



Not yet, just sign me up for a free account.



*Credit and Debit Cards receive Instant Access. With an eCheck payment, your account will automatically be upgraded to Premium status when Paypal notifies us that your eCheck has cleared. (generally 3 to 4 days)'; /*

In order to process your payment, all fields are required.

Credit or Debit Card Information










 
CVC

Billing Information

















Not yet, just sign me up for a regular account';*/ //if not in db, add info and send the verify email //show a reg processed, check your email page // special terms for premium "we will charge you if you don't cancel within 3 days of the end of each month's subscription. CNN will automatically charge your subscription fee to your credit card. CNN will continue to charge either the monthly or yearly fee, as selected by you, until you cancel your subscription as provided in the Terms and Conditions, available here. } else if ($myAction=='cb') { //confirm basic - show done part at top progress bar $pagecode = '
Progress: Basic Info → Premium Info → Done


'; $pagecode .= '

Congratulations

'; $pagecode .= '

Your free CoopsAreOpen account has been created and you have been logged in.

Enjoy the site, and don\'t forget to tell all of your friends!

Go To The Home Page | Go To Your Account.

Make Money with the CoopsAreOpen Affiliate Program
'; // add in the cookie info for the affiliate so I get the email that someone signed up but didn't pay yet... // send them an email } else if ($myAction=='pc') { // PAYMENT WORKED $pagecode = '
Progress: Basic Info → Premium Info → Done


'; $pagecode .= '

Congratulations ' . $_REQUEST['first_name'] . '

'; $pagecode .= '

Your new CoopsAreOpen.com account has been created and you have been logged in. Your payment has also been processed and you will receive an email from Paypal with your payment details. If you paid by credit card or Paypal balance, you now have premium access to our site. If you paid by eCheck, your account payment is pending and will automatically be upgraded to Premium Access when your eCheck clears. (Generally 3 to 4 days. You will receive an email from Paypal).

Your charges will appear on your credit card statement as Paypal*Drivernet.

Thanks again, enjoy the site, and don\'t forget to tell all of your friends!

Go To The Home Page | Go To Your Account.

Make Money with the CoopsAreOpen Affiliate Program
'; $secret_word = 'i am a hungarian turnip farmer'; unset($username); list($c_username,$cookie_hash) = split(',',$_COOKIE['coopslogin']); if (md5($c_username.$secret_word) == $cookie_hash) { $username = str_rot13($c_username); } include("/home/livetruc/public_html/coopsareopen/site-information/aff/sale.php"); // send an email } ?> Account Registration · Truck Weigh Station Scale Guides · Coopsareopen
' . $message . '
'; } echo $pagecode; ?>

We appreciate your interest in Coopsareopen.com. If you find our site's information useful, please consider our incredibly inexpensive monthly access for all our premium content. The entire site is also available for purchase as a downloadable ebook; perfect for the cab of your truck when you aren't online!
www.coopsareopen.com