include dirname(__FILE__).'/lib.php'; if($_SERVER['HTTP_REFERER']){ $referer = parse_url($_SERVER['HTTP_REFERER']); $domain = $referer['host'] ? $referer['host'] : ''; }else{ $domain = ''; } ?>