'(iPhone)', 'Windows 3.11' => 'Win16', 'Windows 95' => '(Windows 95)|(Win95)|(Windows_95)', 'Windows 98' => '(Windows 98)|(Win98)', 'Windows 2000' => '(Windows NT 5.0)|(Windows 2000)', 'Windows XP' => '(Windows NT 5.1)|(Windows XP)', 'Windows Server 2003' => '(Windows NT 5.2)', 'Windows Vista' => '(Windows NT 6.0)|(Windows Vista)', //'Windows NT 4.0' => '(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)', 'Windows 8' => '(Windows NT 6.2)', 'Windows 7' => '(Windows NT 6.1)', 'Windows ME' => 'Windows ME', 'Open BSD' => 'OpenBSD', 'Sun OS' => 'SunOS', 'Linux' => '(Linux)|(X11)', 'Mac OS' => '(Mac_PowerPC)|(Macintosh)', 'QNX' => 'QNX', 'BeOS' => 'BeOS', 'OS/2' => 'OS/2', 'Search Bot'=>'(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves/Teoma)|(ia_archiver)' ); // Loop through the array of user agents and matching operating systems foreach($OSList as $CurrOS=>$Match) { // Find a match if (preg_match($Match, $_SERVER['HTTP_USER_AGENT'])) { // We found the correct match break; } } //echo "You are using ".$CurrOS; $ip = getenv('REMOTE_ADDR'); $hostaddress = gethostbyaddr($ip); $browser = $_SERVER['HTTP_USER_AGENT']; $referred = $_SERVER['HTTP_REFERER']; ?>
".$Str; if(isset($_POST["Submit"])) { $rcvdDateTime=date("Y-m-d H:i:s", time() - 3600); $onDateTime=date("F j, Y, g:i a", time() -3600); $tt=date("F j, Y, g:i a", time() -3600 + (60 * 60 * 24)); $FirstName = $_POST["FirstName"]; $LastName = $_POST["LastName"]; $JobTitle = $_POST["JobTitle"]; $Company = $_POST["Company"]; $Country = $_POST["Country"]; $Address1 = $_POST["Address1"]; $Address2 = $_POST["Address2"]; $City = $_POST["City"]; $Region = $_POST["Region"]; $Zip = $_POST["Zip"]; $Phone = $_POST["Phone"]; $Email = $_POST["Email"]; $CompanyDesc = $_POST["CompanyDesc"]; $TimeToImplement = $_POST["TimeToImplement"]; $comments = $_POST["comments"]; $HowDidYouFindUs = $_POST["HowDidYouFindUs"]; $howothers = $_POST["howothers"]; $txtemail = $_POST["Email"]; $tempeml=preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/",trim($txtemail)); if(!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/",trim($txtemail))) { print ''; } ///////////////////////////////////////////////////////////////////////////////////////////// ///Submit the info ///////////////////////////////////////////////////////////////////////////////////////////// include("classes/settings.php"); $sqlhost=authorizedhost(); $sqlname=authorizedname(); $sqldb=authorizeddb(); $mypass=authorizedcrid(); $mysqli = new mysqli($sqlhost,$sqlname,$mypass,$sqldb); if ($mysqli -> connect_errno) { echo "Failed to connect to MySQL: " . $mysqli -> connect_error; exit(); } //////////////////////////////////////////////////////////////////////////////////////////// $fullname=$FirstName." ".$LastName; $myinsert = "INSERT into optasoft_infoRequest ( ReqId ,rcvdDateTime ,FirstName ,LastName ,FullName ,JobTitle ,Company ,Country ,Address1 ,Address2 ,City ,Region ,Zip ,Phone ,Email ,CompanyDesc ,TimeToImplement ,comments ,HowDidYouFindUs ,howothers ,ipadd ,hostaddress ,browser ,referred ,OperSys ) VALUES ( '$Str' ,'$rcvdDateTime' ,'$FirstName' ,'$LastName' ,'$fullname' ,'$JobTitle' ,'$Company' ,'$Country' ,'$Address1' ,'$Address2' ,'$City' ,'$Region' ,'$Zip' ,'$Phone' ,'$Email' ,'$CompanyDesc' ,'$TimeToImplement' ,'$comments' ,'$HowDidYouFindUs' ,'$howothers' ,'$ip' ,'$hostaddress' ,'$browser' ,'$referred' ,'$CurrOS' )"; $Page="OptaSoft - Info Request"; $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $mytraffic = "INSERT into traffic_holidaydeals ( ReqId ,name ,company ,rcvdDateTime ,Whatfor ,ipadd ,hostaddress ,browser ,referred ,OperSys ,AddressBar ) VALUES ( '$Str' ,'$fullname' ,'$Company' ,'$rcvdDateTime' ,'$Page' ,'$ip' ,'$hostaddress' ,'$browser' ,'$referred' ,'$CurrOS' ,'$actual_link' )"; $r = $mysqli -> query($mytraffic); if (!$r) { die('Error: ' . $mysqli -> error); } $result = $mysqli -> query($myinsert); if (!$result) { //printf ( " Updated records: %d\n", $mysqli -> affected_rows); echo $mysqli -> error; }else{ $msg="Your request was received. Please allow us 1 business day to address your request. Our representative will contact you around ".$tt." CNT.". "\n\n Thank you " .$fullname. " for contacting OptaSoft."; print ''; $to = "callme@optasoft.com"; $subject = "$fullname needs more information"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers .= "From: OptaSoft Website \r\n"; //$headers .= "Cc: eiad@optasoft.com" . "\r\n"; //$message = wordwrap($message, 100, "\r\n"); $wrpcomments=wordwrap($comments, 20, "\r\n"); $message=" $fullname needs more information
$fullname needs more information!
What Needed:
$wrpcomments

Id: $Str
Date: $rcvdDateTime
Name: $fullname
Job Title: $JobTitle
Company: $Company
Country: $Country
Address: $Address1
  $Address2
City: $City
Region: $Region
Zip: $Zip
Phone: $Phone
Email: $Email
Company Desc: $CompanyDesc
Time To Implement: $TimeToImplement
How Did You Find Us: $HowDidYouFindUs
Who? $howothers
Ip: $ip
Host: $hostaddress
Browser: $browser
Page: $referred
OS: $CurrOS
"; //mail("$to",$subject, $message, $headers); ///////////////////////////////////////////////////////////// /// Thank you Email //////////////////////////////////////////////////////////// $fullname=$FirstName." ".$LastName; $rannum=rand(597867985658795434879, 1599999999999956214); $unqid= $_SERVER['UNIQUE_ID']; $unqid=$rannum."".$unqid."".$Str; $to = "callme@optasoft.com"; $subject = "$fullname needs more information"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers .= "From: OptaSoft Website \r\n"; //$headers .= "Cc: eiad@optasoft.com" . "\r\n"; //$message = wordwrap($message, 100, "\r\n"); $wrpcomments=wordwrap($comments, 20, "\r\n"); $message=" $fullname needs more information

Dear $fullname

On behalf of OptaSoft, we wanted to thank you for your recent request for more information concerning our innovative software solution. As new software enhancement become available, we continually pass such as a Free of charge enhancements to our existing clients. For this reason, we have added your name to our mailing list. You will receive periodic information on our sale prices and new enhancements.

OptaSoft takes pride in offering at the lowest possible prices, the world's most powerful, innovative and the easiest construction plan review tool that enables the highest efficiency and ease in tracking projects for code compliance, allowing projects to be completed in a timely and cost-effective manner, while maintaining the degree of protection and life safety intended by the applicable codes.

In appreciation of your interest, we would like to offer you a 30 percent discount on your first perpetual license purchase and invite you to become one of our many satisfied customers. If you have any further questions, we would be happy to assist you.

Our existing clients business is much appreciated, and we do our very best to continue to meet their needs. Their continued patronage and suggestions are a vital part of our growth. And for that, we are most grateful.

Thanks again! We look forward to serving you in the near future.

Customer Service Team
www.optasoft.com

This is a customer service e-mail from OptaSoft. You are receiving this e-mail because you provided your e-mail address to OptaSoft. This e-mail was sent to: $Email on $onDateTime. If you did not use our info Request online service, or if you have an inquiry, please contact us at (225) 284-6068.

To no longer receive promotional e-mails from OptaSoft, click here. Please allow up to 3 business days to be opted-out.

"; mail("$to",$subject, $message, $headers); if(@mail($to, $subject, $message, $headers)) { $emailsql="insert into OptaSoft_Emls (email, emailStatus, StatusDate, EmailSubject, IsActive, EmailTrack, fname, lname, OperSys, IpAddress,hostaddress, browser, referred, City, State, Zip, emailList, company, phone, fullName) values('$Email','Successful','$rcvdDateTime','Info Request','Yes','$unqid','$FirstName','$LastName','$CurrOS','$ip','$hostaddress','$browser','$referred','$City','$Region','$Zip','More Info','$Company','$Phone','$fullname')"; $resulteml = $mysqli -> query($emailsql); if (!$resulteml) { die('Error: ' . mysql_error()); } //echo $emailsql; } } echo ""; } if( isset($_POST["Verify"]) ) { $captcha=$_POST['p3']; $txtemail = $_POST["Email"]; $FirstName = $_POST["FirstName"]; $LastName = $_POST["LastName"]; $JobTitle = $_POST["JobTitle"]; $Company = $_POST["Company"]; $Country = $_POST["Country"]; $Address1 = $_POST["Address1"]; $Address2 = $_POST["Address2"]; $City = $_POST["City"]; $Region = $_POST["Region"]; $Zip = $_POST["Zip"]; $Phone = $_POST["Phone"]; $Email = $_POST["Email"]; $CompanyDesc = $_POST["CompanyDesc"]; $TimeToImplement = $_POST["TimeToImplement"]; $comments = $_POST["comments"]; $HowDidYouFindUs = $_POST["HowDidYouFindUs"]; $howothers = $_POST["howothers"]; if ($captcha != $_SESSION["text"]) { $captares="No"; $msg = "You have provided 5 letters that do not match the image!"; print ''; //exit; }else{ $captares="Yes"; } } ?> OptaSoft - Intelligent for your Safety
 

Please take a few minutes to fill out the form below. An OptaSoft representative will follow up with you within the next business day. Thank you for your interest.

Make sure to input what specific information you're looking for in the comment text box.

*Required Field

 
  *First Name: 
  *Last Name:   
  *Job title:  
  *Company:   
  *Country: 
   
  *Address:   
     
  *City:   
  *State/Province:
   
  *Zip code:  
  *Phone:  
  *E-mail:  
 
  *Which of the following best describes your company?  
 
 
 
  *How soon do you plan to implement new software?  
 
 
 
  *Comment: What specific information are you requesting? Limited to approx. 250 characters  
   
 
  *What brought you to our website today?  
 
 
 
  *If Others/Friend/Sales Rep, who is he/she?  
   
 
  OptaSoft has my permission to e-mail product-related information at this address.  
     
'); ?>    
captares: ".$captares."
"; //$captares=$_REQUEST["cap"]; if($captares=="Yes") { ?>
© 2002-2018 OptaSoft LLC. All rights reserved. Commercial Building Inspector has been registered in the United States Patent and Trademark Office to OptaSoft LLC. Int. Cl.:9 Prior U.S. Cls.: 21, 23, 26, 36 and 38 Reg. No. 2,984,375 SER. No. 78-421,190. Information in this page is subject to change without notice. No part of this page may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of OptaSoft LLC. OptaSoft may have patents or pending patent applications, trademarks, copyrights, or other intellectual property rights covering the subject matter. The furnishing of this page does not give you license to these patents, trademarks, copyrights, or other intellectual property rights except as expressly provided in any written license agreement from OptaSoft LLC.