<?php	
function valid_email($email){
$qtext = '[^\\x0d\\x22\\x5c\\x80-\\xff]';
$dtext = '[^\\x0d\\x5b-\\x5d\\x80-\\xff]';
$atom = '[^\\x00-\\x20\\x22\\x28\\x29\\x2c\\x2e\\x3a-\\x3c'.
'\\x3e\\x40\\x5b-\\x5d\\x7f-\\xff]+';
$quoted_pair = '\\x5c\\x00-\\x7f';
$domain_literal = "\\x5b($dtext|$quoted_pair)*\\x5d";
$quoted_string = "\\x22($qtext|$quoted_pair)*\\x22";
$domain_ref = $atom;
$sub_domain = "($domain_ref|$domain_literal)";
$word = "($atom|$quoted_string)";
$domain = "$sub_domain(\\x2e$sub_domain)*";
$local_part = "$word(\\x2e$word)*";
$addr_spec = "$local_part\\x40$domain";
return preg_match("!^$addr_spec$!", $email) ? 1 : 0;
}

$product_code = trim(stripslashes($_REQUEST['code']));
if (!is_numeric($product_code))
  $prod_error = true;
  
  

$error = false;

	  if (isset($_REQUEST['fname']))

		  {

		  	if ($prod_error||empty($_REQUEST['fname'])||empty($_REQUEST['lname'])||!valid_email($_REQUEST['email'])||  preg_match( "[\r\n]", $_REQUEST['email']) ||  preg_match( "[\r\n]", $_REQUEST['fname'])|| preg_match( "[\r\n]", $_REQUEST['lname'] ))

			{

			$error = true;

			}

			else

			{




/*
$link = mysql_connect('localhost','boachsof_boach','nerakShamysql');

if (!$link) {
   echo "hello";
   die('Error connecting to database error: ' . mysql_error());

}

mysql_select_db('boachsof_boachmast',$link);

$query1 = sprintf("insert into customers (firstname,lastname,email,phone,country,tdate) values('%s','%s','%s','%s','%s',CURRENT_TIMESTAMP)",mysql_real_escape_string($_REQUEST["fname"]),mysql_real_escape_string($_REQUEST["lname"]),mysql_real_escape_string($_REQUEST["email"]),mysql_real_escape_string($_REQUEST["Phone"]),mysql_real_escape_string($_REQUEST['country']));

$result = mysql_query($query1,$link);

if (!$result) {

   die('Invalid query: ' . mysql_error());

}

mysql_close($link);

*/



			mail('sales@boachsoft.com','preorder filled',"Boachsoft Smartmanager $product_code\n\rFirstname: ".$_REQUEST["fname"]." \n\r

			Lastname: ".$_REQUEST["lname"]."\n\rEmail: ".$_REQUEST["email"]."\n\rPhone: ".$_REQUEST["Phone"]."\n\rAddress: ".$_REQUEST["add1"]."\n\r	Address: ".$_REQUEST["add2"]."\n\rZip/Postal code: ".$_REQUEST["zip"]."\n\rCity: ".$_REQUEST["city"]."\n\rState: ".$_REQUEST["Stte"]."\n\rCountry: ".$_REQUEST["country"].'\n\r');


if ($product_code<1000)
$header = "location: https://www.2checkout.com/2co/buyer/purchase?sid=1264617&quantity=1&product_id=".$product_code."&fixed=Y";

else if ($product_code == 2000)
 //$header = "location: https://www.plimus.com/jsp/buynow.jsp?contractId=3151062";
// $header = "location: https://secure.avangate.com/order/checkout.php?PRODS=4604621&QTY=1&CART=1&CARD=1";
$header = "location: https://secure.bmtmicro.com/cart?CID=13697&PRODUCTID=13697000002"; 
//https://order.shareit.com/cart/add?vendorid=41643&PRODUCT[216924]=1";
else if ($product_code == 2001)
  //$header = "location: https://www.plimus.com/jsp/buynow.jsp?contractId=3158750";
 //$header = "location:  https://secure.avangate.com/order/checkout.php?PRODS=4604627&QTY=1&CART=1&CARD=1";
$header = "location: https://secure.bmtmicro.com/cart?CID=13697&PRODUCTID=13697000005";
//https://order.shareit.com/cart/add?vendorid=41643&PRODUCT[300566618]=1";






else if ($product_code == 2002)
 $header = "location: https://www.plimus.com/jsp/buynow.jsp?contractId=3169786";

else if ($product_code == 3001)
 $header = "location: https://secure.bmtmicro.com/servlets/Orders.ShoppingCart?CID=2375&PRODUCTID=23750001";
else if ($product_code == 3003)
 $header = "location: https://secure.bmtmicro.com/servlets/Orders.ShoppingCart?CID=2375&PRODUCTID=23750003";


//  $header = "location: http://www.videorentalsoft.com/d2.php?code=".$product_code;
     
			header($header);

			

}



		  }

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Tools and equipment rental software, audio visual rental software, Tent and event Rental</title>

<meta name="description" content="best Tools and equipment rental, audio visual rental, Tent and event Rental for windows and linux">

<meta name="keywords" content="equipment rental software, Tools and equipment rental software, audio visual rental software, Tent and event Rental software, construction equipment rental software, lift rental software, party rental software">

<meta name="revisit-after" CONTENT="7 days" />

<meta name="robots" CONTENT="index,follow" />

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />



<style type="text/css">
<!--
body {
	margin-top: 10px;
}
.style3 {
	font-size: 14px;
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
<link href="styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style13 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style19 {
	font-style: italic;
	font-size: 24px;
	color: #000000;
}
.style22 {color: #000000}
.style23 {color: #FF0000}
.style37 {

	font-family: Verdana, Arial, Helvetica, sans-serif;

	font-size: 11px;

}

.style47 {color: #000033}

.container

 {

	background-color: #f7f7f7;

	border: solid thin #000066;

	margin: 0px 30px 0px 30px;

	padding: 10px 0 10px 0;

}

.style48 {color: #000066; }


-->
</style>
</head>
<body>
<div align="center">    <table width="750" border="0" cellspacing="1" cellpadding="0">
    <tr>
      <th width="100" height="30" align="center" valign="middle" bordercolor="#297396" class="toprow" scope="col"><img src="images/banner.gif" alt="Tools and equipment rental software, audio visual rental software, Tent and event Rental software by boachsoft" width="748" height="150" border="1" /></th>
    </tr>
  </table>
<table width="750" border="0" cellpadding="0" cellspacing="1" bgcolor="#1C729B">
    <tr>
      <th width="150" bgcolor="#993300" class="sidebar" scope="col">
        <div align="left">
          <a href="index.html" class="navigation">Home</a> <a href="features.htm" class="navigation">Features</a> <a href="screenshots.htm" class="navigation">Screenshots</a> <a href="download.htm" class="navigation">Download</a><a href="order.htm" class="navigation">Order</a><a href="contact.htm" class="navigation">Contact</a>        </div>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p></th>
      <th width="582" bgcolor="#FFFFFF" class="infobody" scope="col"><p>&nbsp;</p>
           <p align="center">This is not the checkout page. Please fill in the details below and click the continue button. You would then be taken to the checkout page.  </p>

        <p>&nbsp;</p>

        <div align="center">
          <?php 

		 if ($error)

		 			 echo "</p>

		<p class=\"style23\">Please fill the firstname, lastname, email. A valid email is required.</p>";



		?>
          
          </p>
          
        </div>
        <form id="form1" name="form1" method="post" action="http://www.equipmentrentalsoftwares.com/preord.php">

		<div class="container">

        <table border="0" align="center" cellpadding="1" cellspacing="5">

          <tr>

            <td width="167"><div align="right" class="style48"><span class="style37">Firstname</span></div></td>

            <td width="254" class="style37"><label>

              <input name="fname" type="text" id="fname" maxlength="100" value="<?php echo $_REQUEST['fname']?>" />

            </label></td> <input name="code" type="hidden" value="<?php echo $product_code;?>" />

          </tr>

          <tr>

            <td><div align="right" class="style48"><span class="style37">Lastname</span></div></td>

            <td class="style37"><input name="lname" type="text" id="lname" maxlength="100" value="<?php echo $_REQUEST['lname']?>" /></td>

          </tr>

          <tr>

            <td><div align="right" class="style48"><span class="style37">Email</span></div></td>

            <td class="style37"><input name="email" type="text" id="email" maxlength="100" value="<?php echo $_REQUEST['email']?>"/></td>

          </tr>

        
       
     
      
            <td><div align="right"><span class="style47"><span class="style48"></span></span></div></td>

            <td class="style37">&nbsp;

              <label>

              <input type="submit" name="Submit" value="Continue &gt;&gt;" />

              </label></td>

          </tr>

        </table></div>

        </form>
      <p>&nbsp;</p>

        <p>&nbsp;</p>

        <p>&nbsp;</p>

        <p></th>
    </tr>
  </table>
  <table width="750" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center" valign="middle" scope="col"><div align="center">
        <p align="center" class="bottomrow"><span class="style3">Copyright (c) 2004 - 2017 Boachsoft, Ltd.</span>        </div></td>
    </tr>
  </table>
</div>
</body>
</html>