_POST:

\n"; #} // PROCESS SUBMITTED REGISTRATION... if(isset($_POST['is_submit']) && $_POST['is_submit'] == 'Submit') { $error = ''; if (chk_crypt($_POST['code'])) { $insert_first_name = trim($_POST['first_name']); $insert_last_name = trim($_POST['last_name']); $insert_title = trim($_POST['title']); $insert_company = trim($_POST['company']); $insert_email_address = trim($_POST['email_address']); $insert_phone = trim($_POST['phone']); $insert_city = trim($_POST['city']); $insert_state = trim($_POST['state']); $insert_country = trim($_POST['country']); $insert_industry = trim($_POST['industry']); if (strtolower($insert_industry) == 'other' && trim($_POST['industry_other']) != "") { $insert_industry = "Other: ".trim($_POST['industry_other']); } $insert_XMLAcceleration = ($_POST['XMLAcceleration']=='on'?1:0); $insert_SOAPerformanceOptimization = ($_POST['SOAPerformanceOptimization']=='on'?1:0); $insert_SOAMonitoring = ($_POST['SOAMonitoring']=='on'?1:0); $insert_SLAEnforcement = ($_POST['SLAEnforcement']=='on'?1:0); $insert_ServiceVirtualization = ($_POST['ServiceVirtualization']=='on'?1:0); $insert_ServiceEntitlementsControl = ($_POST['ServiceEntitlementsControl']=='on'?1:0); $insert_SAML = ($_POST['SAML']=='on'?1:0); $insert_SOASecurity = ($_POST['SOASecurity']=='on'?1:0); $insert_RuntimePolicyGovernance = ($_POST['RuntimePolicyGovernance']=='on'?1:0); $insert_ServiceMediationandMessageRouting = ($_POST['ServiceMediationandMessageRouting']=='on'?1:0); $insert_B2B = ($_POST['B2B']=='on'?1:0); $insert_LegacyServiceEnablement = ($_POST['LegacyServiceEnablement']=='on'?1:0); $insert_Other = ($_POST['Other']=='on'?1:0); $insert_OtherText = trim($_POST['OtherText']); $insert_deploying = trim($_POST['deploying']); $insert_budgeted = trim($_POST['budgeted']); $insert_timeframe = trim($_POST['timeframe']); $insert_heardfrom = trim($_POST['heardfrom']); if (strtolower($insert_heardfrom) == 'other' && trim($_POST['heardfrom_other']) != "") { $insert_heardfrom = "Other: ".trim($_POST['heardfrom_other']); } if (strtolower($insert_heardfrom) == 'advertisement' && trim($_POST['heardfrom_advertisement']) != "") { $insert_heardfrom = "Advertisement: ".trim($_POST['heardfrom_advertisement']); } if (strtolower($insert_heardfrom) == 'publication' && trim($_POST['heardfrom_publication']) != "") { $insert_heardfrom = "Publication: ".trim($_POST['heardfrom_publication']); } if (strtolower($insert_heardfrom) == 'tradeshow/event' && trim($_POST['heardfrom_tradeshow']) != "") { $insert_heardfrom = "Tradeshow/Event: ".trim($_POST['heardfrom_tradeshow']); } if (strtolower($insert_heardfrom) == 'whitepaper site' && trim($_POST['heardfrom_whitepaper']) != "") { $insert_heardfrom = "Whitepaper Site: ".trim($_POST['heardfrom_whitepaper']); } if ($insert_first_name == '') $error .= 'Please enter your first name.
'; if ($insert_last_name == '') $error .= 'Please enter your last name.
'; if ($insert_company == '') $error .= 'Please enter the name of your company.
'; if ($insert_email_address == '') { $error .= 'Please enter your email address.
'; } elseif( !validate_email( $insert_email_address ) ) { $error .= 'The email address you entered is invalid.
'; } if ($insert_phone == '') $error .= 'Please enter your phone number.
'; // if ($insert_city == '') $error .= 'Please enter your city.
'; // if ($insert_state == '') $error .= 'Please enter your '.($insert_country=='United States'?'state':'province').'.
'; // if ($insert_country == '') $error .= 'Please select your country.
'; if ($insert_industry == '') $error .= 'Please select or enter your industry.
'; if (strtolower($insert_industry) == 'other' && trim($_POST['industry_other']) == "") { $error .= 'Please specify your industry.
'; } if ($error == '') { // generate confirm URL $confirm_url = ""; //if ($_REQUEST['action'] == 'web') $confirm_url = '/webinars/confirm.html?ids='.$_POST['ids']; //if ($_REQUEST['action'] == 'pub') $confirm_url = '/resources/confirm.html?ids='.$_POST['ids']; $temp_webinar_preregister = 'NULL'; $temp_date_preregistered = 'NULL'; $temp_confirmed_email = 1; $insert_sql = "INSERT INTO lead_vmware ( first_name, last_name, title, company, email_address, phone, city, state, country, industry, XMLAcceleration, SOAPerformanceOptimization, SOAMonitoring, SLAEnforcement, ServiceVirtualization, ServiceEntitlementsControl, SAML, SOASecurity, RuntimePolicyGovernance, ServiceMediationandMessageRouting, B2B, LegacyServiceEnablement, Other, OtherText, deploying, budgeted, timeframe, heardfrom, date_submitted, comment, confirmed_email, confirm_url, webinar_preregister, date_preregistered ) VALUES ( '".dbformat($insert_first_name)."', '".dbformat($insert_last_name)."', '".dbformat($insert_title)."', '".dbformat($insert_company)."', '".dbformat($insert_email_address)."', '".dbformat($insert_phone)."', '".dbformat($insert_city)."', '".dbformat($insert_state)."', '".dbformat($insert_country)."', '".dbformat($insert_industry)."', ".$insert_XMLAcceleration.", ".$insert_SOAPerformanceOptimization.", ".$insert_SOAMonitoring.", ".$insert_SLAEnforcement.", ".$insert_ServiceVirtualization.", ".$insert_ServiceEntitlementsControl.", ".$insert_SAML.", ".$insert_SOASecurity.", ".$insert_RuntimePolicyGovernance.", ".$insert_ServiceMediationandMessageRouting.", ".$insert_B2B.", ".$insert_LegacyServiceEnablement.", ".$insert_Other.", '".$insert_OtherText."', '".dbformat($insert_deploying)."', '".dbformat($insert_budgeted)."', '".dbformat($insert_timeframe)."', '".dbformat($insert_heardfrom)."', now(), '".dbformat($_POST['comment'])."', $temp_confirmed_email, '".dbformat($confirm_url)."', $temp_webinar_preregister, $temp_date_preregistered ) "; if ($debugsql) $dbconn->debug = 1; $insert = $dbconn->execute($insert_sql); if ($debugsql) $dbconn->debug = 0; $lead_id = $dbconn->Insert_ID(); if($dbconn->Affected_Rows() > 0) { $success = 1; $sender_email_address = "soft-support@layer7tech.com"; $mailto = $insert_email_address; $mailsubject = "Layer 7 XML soft-Appliance download instructions"; $mailbody = "Dear ".($insert_first_name!=""?$insert_first_name:"Registrant").", Thank you for your interest in Layer 7 Technologies' XML soft-Appliance. A Layer 7 representative will then contact you with the download link and a 15 day trial license key. To purchase a license at any point during the trial please contact sales at sales@layer7tech.com. For support questions contact ".$sender_email_address.". Yours Truly, Layer 7 Technologies "; $mailheaders = "From: Layer7 Technologies <".$sender_email_address.">\r\n"; $mailheaders .= "Reply-to: Layer7 Technologies <".$sender_email_address.">\r\n"; $mailheaders .= "Return-path: Layer7 Technologies <".$sender_email_address.">\r\n"; $mainrc = mail($mailto, $mailsubject, $mailbody, $mailheaders); //$mainrc = mail("L7@kodin.ca", $mailsubject, $mailbody, $mailheaders); // e-mail new demo request to admin!! $config_array = array('web_demo_request_email'); $configuration = get_configuration($config_array); $mailto = $configuration['web_demo_request_email']; $test_emails_array = array('alexkong@shaw.ca', 'aleks_oh@hotmail.com', 'alkong@gmail.com', 'alex@kong.ca', 'ak77@kong.ca'); if ( in_array(strtolower($_POST['email_address']), $test_emails_array) ) { $mailto = 'alkong@gmail.com'; // testing purposes } $mailparams = helper_get_mail_params($request_demo_id); $mailsubject = $mailparams['mailsubject']; $mailbody = $mailparams['mailbody']; $mailheaders = $mailparams['mailheaders']; $mailadditional = $mailparams['mailadditional']; #mail($mailto, $mailsubject, $mailbody, $mailheaders, $mailadditional); // 5th parameter disabled in PHP Safe Mode #print "

mail($mailto, $mailsubject, $mailbody, $mailheaders);

"; //mail($mailto, "subject","body",$mailheaders); $mainrc = mail($mailto, $mailsubject, $mailbody, $mailheaders); $mailto = "sales@layer7tech.com"; $mainrc = mail($mailto, $mailsubject, $mailbody, $mailheaders); $mailto = "L7@kodin.ca"; $mainrc = mail($mailto, $mailsubject, $mailbody, $mailheaders); } else { $error .= "Database error encountered; please try again later."; } } }else{ $error .= 'Please input a correct captcha code.
'; } } if (!$BETA_MODE) { include_once $incdir."header.inc"; include_once $incdir."nav.inc"; } else { include_once $incdir."header_new.inc"; } if ($success == 1) { print "

Submission Confirmed

\n"; print "

Thank you for your interest in the Layer 7 XML Firewall soft-Appliance. An email has been sent to you with further instructions.

\n"; print "

A support person will contact you with a trial license key.

\n"; print "

For immediate support please contact 1-800-681-9377 or email soft-support@layer7tech.com.

\n"; } else { // REGISTRATION FORM print "

Free Download and Trial Registration

\n"; if ($error != '') print "

".$error."

\n"; print "

Thank you for your interest in the Layer 7 XML Firewall soft-Appliance. Please complete the following form to get download access to a trial version of the Layer 7 XML Firewall soft-Appliance. Once the form has been submitted you will receive an email with download instructions. You will then be contacted by a Layer 7 support person with a 15 day trial license key. Only requests with valid contact information will be granted a trial license key.
Layer 7 retains the right to refuse or withdraw a trial license.

\n"; include $incdir."register.inc"; } if (!$BETA_MODE) { include_once $incdir."footer.inc"; } else { include_once $incdir."footer_new.inc"; } include_once $incdir."disconnect.inc"; function helper_get_mail_params($request_demo_id) { $retarray = array(); $mailsubject = 'New web demo request from website'; $mailbody = "The information is enclosed below and is also available through the Web Demo Request Management tool available here: \n"; $mailbody .= "http://www.layer7tech.com/administrator/webdemo/edit.html?id=".$request_demo_id."\n"; $mailbody .= "First Name: ".$_POST['first_name']."\n"; $mailbody .= "Last Name: ".$_POST['last_name']."\n"; $mailbody .= "Title: ".$_POST['title']."\n"; $mailbody .= "Company: ".$_POST['company']."\n"; $mailbody .= "Email Address: ".$_POST['email_address']."\n"; $mailbody .= "Phone Number: ".$_POST['phone']."\n"; $mailbody .= "Industry: ".$_POST['industry']."\n"; $mailbody .= "\n"; $mailbody .= "SOA initiative: ".$_POST['SOAInitiative']."\n"; // $mailbody .= "SOA Name: ".$_POST['SOAName']."\n"; $mailbody .= "SOA Stage: ".$_POST['SOAStage']."\n"; $mailbody .= "\n"; $mailbody .= "Functionality: ".$_POST['inventigate']."\n"; $mailbody .= "\n"; $mailbody .= "Purchase Timefame: ".$_POST['timeframe']."\n"; $mailbody .= "\n"; $mailbody .= "INTERESTS: ".$_POST['timeframe']."\n"; $check='XMLAcceleration'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='SOAPerformanceOptimization'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='SOAMonitoring'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='SOAInitiative'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='SLAEnforcement'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='ServiceVirtualization'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='ServiceEntitlementsControl'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='SAML'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='SOASecurity'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='RuntimePolicyGovernance'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='ServiceMediationandMessageRouting'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='B2B'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='LegacyServiceEnablement'; if ($_POST[$check]=='on') $mailbody .= " $check\n"; $check='Other'; if ($_POST[$check]=='on') $mailbody .= " Other: ".$_POST['OtherText']."\n"; $mailbody .= "\n"; $mailbody .= "Where did you hear about us?\n"; $mailbody .= $_POST['heardfrom']."\n"; $mailbody .= "\n"; $mailbody .= "Date Submitted: ".date('M j, Y h:i a'); $mailbody .= "\n"; $mailbody .= "Do you have a question or comment for Layer 7?\n"; $mailbody .= $_POST['comment']."\n"; $mailbody .= "\n"; $mailheaders = "From: ".$_POST['first_name']." ".$_POST['last_name']." <".$_POST['email_address'].">\r\n"; $mailheaders .= "Reply-to: Layer7 Technologies <".$_POST['email_address'].">\r\n"; $mailheaders .= "Return-path: Layer7 Technologies <".$_POST['email_address'].">\r\n"; $mailadditional = "-f".$_POST['email_address']; $retarray['mailsubject'] = $mailsubject; $retarray['mailbody'] = $mailbody; $retarray['mailheaders'] = $mailheaders; $retarray['mailadditional'] = $mailadditional; return $retarray; } ?>