$bot = false; if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/bot|crawl|slurp|spider/i', $_SERVER['HTTP_USER_AGENT'])) $bot = true; if (!$bot && !isset($_COOKIE['freixenet_landing'])) { header('Location: /landing/?redir='.$_SERVER['REQUEST_URI']); exit(); } header("Cache-Control: max-age=1"); error_reporting(E_ALL ^ E_NOTICE); ini_set("display_errors", 1); define("SILENT", false); ?>