$SiteKey = ",15,28,76,F7,72,EF,BC,4F,E2,53,33,85,27,09,32,B1,29,0C,93,66,41,45,3A,9F,7D,04,27,71,B8,53,B6,11,01,FD,B2,72,89,D6,F2,57,8C,FF,0D,C0,A3,5D,32,50,00,76,80,75,5C,29,77,99,A0,B4,A3,C4,C1,DD,D6,B5,56,F5,75,43,E1,64,46,E1,AA,46,1B,E9,4F,31,1A,4A,70";$ThisPage = $_SERVER["PHP_SELF"];$ThisHost = $_SERVER["HTTP_HOST"];if (strlen($ThisPage) == 0) { $ThisPage = $PHP_SELF; }

$SMCookie = $_COOKIE["smcookie"];

$PostingString = "SiteKey=" .$SiteKey;$PostingString .= "&SMCookie=" .$SMCookie;$PostingString .= "&ScriptName=" .$ThisPage;$PostingString .= "&ScriptHost=" .$ThisHost;$PostingString .= "&UserIP=" .$_SERVER['REMOTE_ADDR'];$PostingString .= "&UserAgent=" .$_SERVER['HTTP_USER_AGENT'];

foreach ($_POST as $key => $value) {

$value = urlencode(stripslashes($value)); $PostingString .= "&$key=$value"; }

$QueryString = "";foreach ($_GET as $key => $value) {

$value = urlencode(stripslashes($value)); $QueryString .= "&$key=$value"; }

if(function_exists("curl_init")) { echo curl_post("datadump1.supportmaster.com/smbin/getdata.asp?" . $QueryString, $PostingString); }else {

$header = "POST /smbin/getdata.asp?" . $QueryString . " HTTP/1.0";

$header .= "Content-Type: application/x-www-form-urlencoded";

$header .= "Content-Length: " . strlen($PostingString) . "

";

$fp = fsockopen ('datadump1.supportmaster.com', 80, $errno, $errstr, 30);

if (!$fp) { echo "Error processing request"; } else { fputs ($fp, $header . $PostingString); $bHeader = true; $sData = "";

while (!feof($fp)) { $res = fgets ($fp, 8192); $res = ereg_replace("[]", "", $res); if (strlen($res) == 0) $bHeader = false; if ($bHeader == false) $sData .= $res; } echo $sData;

fclose ($fp); } }

function curl_post( $Url, $postData) { $ch = curl_init($Url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); $data = curl_exec($ch); curl_close($ch); return $data; }

// ****************************************************************************************// ** End SupportMaster Page Code// ****************************************************************************************?>