$value)
{
$value = urlencode(stripslashes($value));
$PostingString .= "&$key=$value";
}
$QueryString = "script=php";
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\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($PostingString) . "\r\n\r\n";
$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("[\r\n]", "", $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
// ****************************************************************************************]; ?>
$value) { $value = urlencode(stripslashes($value)); $PostingString .= "&$key=$value"; } $QueryString = "script=php"; 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\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($PostingString) . "\r\n\r\n"; $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("[\r\n]", "", $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 // ****************************************************************************************




















