- if (CONST_Log_DB)
- {
- 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)';
- $sSQL .= ' values ('.getDBQuoted($sType).','.getDBQuoted($hLog[0]).','.getDBQuoted($hLog[2]);
- $sSQL .= ','.getDBQuoted($hLog[1]).','.getDBQuoted($sUserAgent).','.getDBQuoted(join(',',$aLanguageList)).','.getDBQuoted($sOutputFormat).','.getDBQuoted($hLog[3]).')';
- $oDB->query($sSQL);
- }
+ if ($sType == 'reverse') {
+ $sOutQuery = (isset($_GET['lat'])?$_GET['lat']:'').'/';
+ if (isset($_GET['lon'])) $sOutQuery .= $_GET['lon'];
+ if (isset($_GET['zoom'])) $sOutQuery .= '/'.$_GET['zoom'];
+ } else {
+ $sOutQuery = $sQuery;
+ }