From 1aca9204f794f879335995250958102a94424892 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 29 Jun 2013 00:01:31 +0200 Subject: [PATCH 1/1] log referer --- lib/log.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/log.php b/lib/log.php index 361c0fb1..501259d0 100644 --- a/lib/log.php +++ b/lib/log.php @@ -19,6 +19,8 @@ { if (isset($_GET['email'])) $sUserAgent = $_GET['email']; + elseif (isset($_SERVER['HTTP_REFERER'])) + $sUserAgent = $_SERVER['HTTP_REFERER']; else $sUserAgent = $_SERVER['HTTP_USER_AGENT']; $sSQL = 'insert into new_query_log (type,starttime,query,ipaddress,useragent,language,format,searchterm)'; -- 2.39.5