800) { header('HTTP/1.1 503 Too busy, try again later'); die('Server too busy. Please try again later.'); } */ $sessionId='BOT'.substr(md5($_SERVER['HTTP_USER_AGENT']),5).rand(10,20); session_id($sessionId); } if (\Utils::isStrangeReferrer() && !isset($_GET['utm_source']) && !isset($_GET['utm_medium']) && !isset($_GET['utm_campaign']) ){ header('X-Frame-Options: SAMEORIGIN'); $uri=trim(str_replace('/',' ',$_SERVER['REQUEST_URI'])); $YSMRel=new YSMRelated(); $x=$YSMRel->getRelated(str_replace('-',' ',$uri),10,7); if (sizeof($x)>0){ shuffle($x); $q=str_replace(' ','-',$x[0]); header('Location: /'.$q.'?utm_source=referrer&utm_medium=plus&utm_term='.$q.'&utm_campaign=referrer-plus&q='.$uri); exit(); } else{ $YQuery=new yahooqueryModel(); $res=$YQuery->getRandomQuery(8); $q=str_replace(' ','-',$res[0]['yaqu_query']); header('Location: /'.$q.'?utm_source=referrer&utm_medium=plus&utm_term='.$q.'&utm_campaign=referrer-plus&q='.$uri); exit(); } } \Baloo\Session::start(); $yLong=time()+(86400*365); $value="1"; setcookie("d_v", $value, time()+86400); setcookie("u_v", $value, $yLong); $baloo->run(); } catch(\Baloo\DBException $e) { // if($debug) { // print_r($e->getMessage()); // } // else{ header('HTTP/1.1 503 Too busy, try again later'); die('Server too busy. Please try again later.'); exit(); // } } catch(Exception $e) { header('HTTP/1.1 503 Too busy, try again later'); die('Server too busy. Please try again later.'); exit(); } ?>