$value) { $value = urlencode(stripslashes($value)); $QueryString .= "&$key=$value"; } // congfigure our headers if(intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) { if(!@readfile("http://www.gotlinks.com/engine.php?".$QueryString)) { echo "Error processing request"; } } elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) { if(!($content = @file("http://www.gotlinks.com/engine.php?".$QueryString))) { echo "Error processing request"; } else { echo @join('', $content); } } elseif(function_exists('curl_init')) { $ch = curl_init ("http://www.gotlinks.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 seems that your web host has disabled all functions for handling remote pages and as a result the Gotlinks software will not function on your web site. Please contact your web host and ask them to enable PHP curl or fopen."; } ?>