| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/usa_sites/usafundingapplications.org/inc/ |
Upload File : |
<?
function getPage($url,$method,$post,$referer,$cookie_jar,$proxy)
{
$ch = curl_init();
//echo "url = $url<br>";
if($proxy){
//curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
//echo "proxy = $proxy";
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "Trollio:31003");
}
//curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_jar);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($ch, CURLOPT_REFERER, $referer);
curl_setopt($ch, CURLOPT_URL, $url);
//curl_setopt($ch, CURLOPT_VERBOSE, 1);
if($method == "post"){
//echo "$post<br><br>";
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
curl_setopt($ch, CURLOPT_USERAGENT, $HTTP_USER_AGENT);
//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
ob_start(); // prevent any output
$data = curl_exec ($ch); // execute the curl command
ob_end_clean(); // stop preventing output
//echo "post = $post<br>";
//echo $data;
curl_close ($ch);
/*if(!empty($post)) {
$url .= (strpos($url,'?')!==false) ? '' : '?';
$first = true;
foreach($post as $k=>$v) {
$url .= (strpos($url,'&')!==false || !$first) ? '&'.urlencode($k).'='.urlencode($v) : urlencode($k).'='.urlencode($v);
$first = false;
}
}
$data = file_get_contents($url);*/
return $data;
}
?>