| Current Path : /var/www/element/data/www/opter.ru/ |
| Current File : /var/www/element/data/www/opter.ru/test_mail.php |
<?
$site_type="opter.ru";
$none="";
$url="test.ru";
$postdata = http_build_query(
array(
'url' => $url,
'keywords' => $none,
'file' => $none,
'file_link' => $none,
'budget' => $none,
'karamba' => $none,
'email' => $none,
'tel' => $none,
'agcy' => $none,
'type'=> $none,
'id'=> 1,
'site_creation_type' => $none,
'site_type' => $site_type,
'referer' => $none
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = @file_get_contents('http://sales.element.ru/new-order-from-site/', false, $context);
echo "res= ".$result;
?>