$value) $QueryString .= "&$key=" .urlencode($value); sendPostReq($QueryString); exit; } foreach ($_GET as $key => $value) { $value = urlencode(stripslashes($value)); $QueryString .= "&$key=$value"; } if ($_GET['action'] == 'rss') { @header("Content-Type: application/xml"); } if(intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) { @readfile("http://getmyarticles.com/engine.php?".$QueryString); } elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) { if($content = @file("http://getmyarticles.com/engine.php?".$QueryString)) echo @join('', $content); } elseif(function_exists('curl_init')) { $ch = curl_init ("http://getmyarticles.com/engine.php?".$QueryString); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch); if(curl_error($ch)) echo "Error processing request"; curl_close ($ch); } else { echo "It appears that your web host has disabled all functions for handling remote pages and as a result the GetMyArticles software will not function on your web page. Please contact your web host for more information."; } function sendPostReq($data) { $sock = fsockopen("getmyarticles.com", 80, &$errno, &$errstr, 30); if (!$sock) die("$errstr - $errno\n"); fwrite($sock, "POST /engine.php HTTP/1.0\r\n"); fwrite($sock, "Host: getmyarticles.com\r\n"); fwrite($sock, "Content-type: application/x-www-form-urlencoded\r\n"); fwrite($sock, "Content-length: " . strlen($data) . "\r\n"); fwrite($sock, "Accept: */*\r\n"); fwrite($sock, "\r\n"); fwrite($sock, "$data\r\n"); fwrite($sock, "\r\n"); $headers = ""; while ($str = trim(fgets($sock, 4096))) $headers .= "$str\n"; echo "\n"; $body = ""; while (!feof($sock)) $body .= fgets($sock, 4096); echo $body; fclose($sock); } ?>
 
 
 
 
 
 
   
   
   
Site copyright 2006 - guru of logos

Home