(.*?)\", "bold_open_tag", "bold_close_tag" ); $replace = array("bold_open_tag<", ">bold_close_tag", "", ""); $output = stripslashes($output); $output = str_replace($search, $replace, $output); return $output; } // // Set defaults // $xml_response = ""; $arrayify = null; // If form was submitted, create and submit XML request if ( isset($_POST['submit']) ) { session_start(); if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) { unset($_SESSION['security_code']); $status = ''; $organization = stripslashes( $_POST['organization'] ); $first_name = (stripslashes( $_POST['first_name'] )); $last_name = (stripslashes( $_POST['last_name'] )); $email = stripslashes( $_POST['email'] ); $work_phone = (stripslashes( $_POST['work_phone'] )); $mobile = (stripslashes( $_POST['mobile_phone'] )); $p_street1 = (stripslashes( $_POST['p_street1'] )); $p_street2 = (stripslashes( $_POST['p_street2'] )); $p_city = (stripslashes( $_POST['p_city'] )); $p_country = (stripslashes( $_POST['p_country'] )); $p_code = (stripslashes( $_POST['p_code'] )); $hpi = stripslashes($_POST['hpi']); $domain = $_POST['domain']; $own_domain = $_POST['own_domain']; if($own_domain == 1) { $registered_with = $_POST['registered_with']; $user_cpanel = $_POST['user_cpanel']; $pass_cpanel = $_POST['pass_cpanel']; $extra = " Registered with: $registered_with\n Username to Cpanel: $user_cpanel\n Password to Cpanel: $pass_cpanel\n"; } $token_field_name = $_POST['token_field_name']; $api_url = "https://bcmedia.freshbooks.com/api/2.1/xml-in"; $token = "d1a11cb88a458c57f8aae115dc1b3654"; $password = substr(md5(rand(0,7)), 0, 7); $xml_request = "$first_name$last_name$organization$email$email$password$work_phone$mobile_phone$p_street1$p_street2$p_city$p_state$p_country$p_code"; $xml_response = sendRequest($api_url, $token, $xml_request); if(strlen($xml_response)>2) { //get the client_id preg_match("|([0-9]+)|", $xml_response, $matches); $client_id = $matches[1]; if(is_numeric($client_id)) { $mail = file_get_contents('email.template'); $mail = str_replace("[USER]", "$first_name $last_name",$mail); $mail = str_replace("[LOGIN]", "$email",$mail); $mail = str_replace("[PASSWORD]", "$password",$mail); $mail = str_replace("[LINK]", "https://bcmedia.freshbooks.com/",$mail); $admin_mail = "Hi Mark, \n\n A new user has signed up for CarDealerWebDesign!\n\n Here are their details:\n\n Name: $first_name $last_name \n Email: $email\n Domain: $domain \n Owns the domain: $own_domain\n"; if(strlen($extra)>0) $admin_mail .= $extra; $admin_mail .= "Thanks,\n The CarDealerWebDesign Site"; mail($email, 'Your details at CarDealerWebDesign', $mail, "From: CarDealerWebDesign "); mail('mark@coolcreation.co.uk', 'New Client Has Just Signed Up', $admin_mail, "From: CarDealerWebDesign "); $xml_request_create_invoice = "$client_iddraftI accept terms and conditions\n\n HPI: $hpiPayment due in 7 days.subscription2 months subscription to cardealerwebdesign service.1501VAT15"; $xml_response_invoice = sendRequest($api_url, $token, $xml_request_create_invoice); if(strlen($xml_response_invoice)) { //get the invoice_id preg_match("|([0-9]+)|", $xml_response_invoice, $matches); $invoice_id = $matches[1]; if(is_numeric($invoice_id)) { $xml_request_send_invoice = "$invoice_id"; $xml_response_invoice_sent = sendRequest($api_url, $token, $xml_request_send_invoice); $get_sent_status = strpos($xml_response_invoice_sent,"status=\"ok\""); if(is_numeric($get_sent_status)) { header('Location: thanks.html'); } else $status = "We are sorry but we are experiencing problems emailing your invoice!
"; } } }else {$status = "We are sorry but we are experiencing problems creating your account!!
"; preg_match("|((.)+)|", $xml_response, $matches); $status.= '
'.$matches[1].'
'; } } else $status = "We are sorry but we are experiencing problems creating your account!!
"; if ($_POST['arrayify']) $arrayify = "1"; if($status !== '') echo "$status"; } else { echo "The security code is not correct!!!"; } } else{ // Generate a new name for the authentication token field $token_field_name = md5( time() . rand() ); // // Start the output // header("Content-Type: text/html; charset=utf-8"); ?> Car Dealer Web Design

Start Now

Website Live in 24 Hours!
Telephone:

Voice: 0844 880 1630

Mark, Lead Developer
tech@cardealerwebdesign.co.uk

James, Account Manager
info@cardealerwebdesign.co.uk

Dora, Tech Support
tech@cardealerwebdesign.co.uk

Gloria, Accounts
acts@cardealerwebdesign.co.uk

 

Get Started

To join our fantastic service is simple, just follow these 3 easy steps;

1) Fill out the form below with your details
2) You will receive a username and password to login, view your first invoice and make your first payment
(2 months upfront then month by month with no contract)
3) 24 hours later your website and cars will be ready, login and start adding your content

Company Name*:  
First Name*:  
Last Name*:  
Email*:  
Work Phone*: 
Mobile Phone: 
HPI account number: 
Address:
Street1*: 
Street2: 
City*: 
County*: 
Country*: 
Post Code*:  
Extra:
Domain Name*: 
I Already Own the Domain*:YES
NO
 
captcha