This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.Text.StringBuilder GTWoutput = new System.Text.StringBuilder(); | |
//GTW form elements | |
GTWoutput.Append("WebinarKey=" + Server.UrlEncode(Request.QueryString["WebinarKey"].ToString())); | |
GTWoutput.Append("&Form=webinarRegistrationForm"); | |
GTWoutput.Append("&Name_First=" + Server.UrlEncode(Request.QueryString["FirstName"].ToString())); | |
GTWoutput.Append("&Name_Last=" + Server.UrlEncode(Request.QueryString["LastName"].ToString())); | |
GTWoutput.Append("&Email=" + Server.UrlEncode(Request.QueryString["Email"].ToString())); | |
//get POST URL for GTW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($_SERVER['REQUEST_METHOD'] == "GET") { | |
header('Location:http://thefreshdish.com'); | |
$gtwPost = ""; | |
//Create string for GoToWebinar from same form POST data | |
$gtwPost = "WebinarKey=" . urlencode($_GET['WebinarKey']) | |
. "&Form=" . urlencode($_GET['Form']) | |
. "&Name_First=" . urlencode($_GET['firstName']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//First, we start by opening the log file and getting the last time this file ran. | |
$logfile = "hubspotLeadTime.log"; //Make sure you have the correct permissions on these log files on your server. | |
$leadlog = "hubspotLeadLog.log"; | |
$apikey = "XXXXXXXXXX"; //replace this with your own key | |
if (file_exists($logfile)) { //Proceed like normal | |
$fileh = fopen($logfile, 'r') or die("can't open file"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$hubspot_config = array ( | |
'hsportalid' => '######', | |
'hapikey' => 'XXXXXX', | |
'hapiuser' => 'XXXXXX', | |
'hapipassword' => 'XXXXXX', | |
'sugarinstallpath' => 'http://somesite.com/sugarcrm/', | |
'hapilogfile' => './sycnlog.txt'); | |
?> |