Merge branch 'stable'
This commit is contained in:
@@ -5470,7 +5470,7 @@ INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUE
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('664', 'DE', 'Die Erinnerungsmail wurde gesendet.', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('665', 'DE', 'Erinnerung an deine E-Mail-Adresse', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('666', 'DE', 'Deine E-Mail-Adresse, mit der du dich einloggen kannst, ist:', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('667', 'DE', 'du hast am %date% eine Erinnerung an deine E-Mail-Adresse angefordert.', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('667', 'DE', 'du hast am %1 eine Erinnerung an deine E-Mail-Adresse angefordert.', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('668', 'DE', 'Cache-Empfehlungen', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('669', 'DE', 'Benutzer, die %1 von %2 empfahlen, haben auch folgende Geocaches empfohlen:', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('670', 'DE', 'Trefferquote', '2010-08-28 11:48:06');
|
||||
@@ -11746,7 +11746,7 @@ INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUE
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('664', 'NL', 'De herinneringsmail is verzonden.', '2011-02-04 19:50:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('665', 'NL', 'Herinnering naar jouw E-Mail adres', '2011-02-04 19:50:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('666', 'NL', 'Het E-Mail adres waarmee je in kunt loggen:', '2011-02-04 19:50:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('667', 'NL', 'je had op %date% een herinnering op jouw E-Mail adres opgevraagt.', '2011-02-04 19:50:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('667', 'NL', 'je had op %1 een herinnering op jouw E-Mail adres opgevraagt.', '2011-02-04 19:50:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('668', 'NL', 'Cache aanbevelingen', '2011-02-04 19:50:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('669', 'NL', 'Gebruikers die %1 van %2 aanbevelen hebben ook de volgende caches aanbevolen:', '2011-02-04 19:50:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('671', 'NL', 'Geen aanbevelingen gevonden.', '2011-02-04 19:50:07');
|
||||
|
||||
@@ -92,6 +92,10 @@
|
||||
$cache_attrib_img_line1 = '<img id="attrimg1_{id}" src="{icon}" onmousedown="switchAttribute({id})" onmouseover="Tip(\'{html_desc}\', TITLE, \'{name}\', TITLEBGCOLOR, \'{color}\', TITLEFONTCOLOR, \'#000000\', BGCOLOR, \'#FFFFFF\', BORDERCOLOR, \'{color}\', CLICKCLOSE, true, DELAY, 0, FADEIN, false, FADEOUT, false, FONTCOLOR, \'#000080\', WIDTH, 500)" onmouseout="UnTip()" /> ';
|
||||
$cache_attrib_img_line2 = '<img id="attrimg2_{id}" src="{icon}" onmousedown="switchAttribute({id})" onmouseover="Tip(\'{html_desc}\', TITLE, \'{name}\', TITLEBGCOLOR, \'{color}\', TITLEFONTCOLOR, \'#000000\', BGCOLOR, \'#FFFFFF\', BORDERCOLOR, \'{color}\', CLICKCLOSE, true, DELAY, 0, FADEIN, false, FADEOUT, false, FONTCOLOR, \'#000080\', WIDTH, 500)" onmouseout="UnTip()" /> ';
|
||||
|
||||
$search_in_gm = '<a href="http://maps.google.de/maps?f=q&hl=de&q=' . urlencode("http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."&output=kml") . '" title="' . $translate->t('Show in Google Maps','','',0) . '">' . $translate->t('(in GM)','','',0) . '</a>';
|
||||
$search_in_gm_zip = '<a href="http://maps.google.de/maps?f=q&hl=de&q=' . urlencode("http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."&output=kml&zip=1&count=max") . '" title="' . $translate->t('Show in Google Maps','','',0) . '">' . $translate->t('(in GM)','','',0) . '</a>';
|
||||
|
||||
|
||||
function dateDiff($interval, $dateTimeBegin, $dateTimeEnd)
|
||||
{
|
||||
//Parse about any English textual datetime
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
<a href="search.php?queryid={queryid}&output=gpx&startat={startat}" title="{t}GPS Exchange Format .gpx{/t}">GPX</a>
|
||||
<a href="search.php?queryid={queryid}&output=loc&startat={startat}" title="{t}Waypointfile .loc{/t}">LOC</a>
|
||||
<a href="search.php?queryid={queryid}&output=kml&startat={startat}" title="{t}Google Earth .kml{/t}">KML</a>
|
||||
<a href="http://maps.google.de/maps?f=q&hl=de&q=<?php echo urlencode("http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."&output=kml"); ?>" title="{t}Show in Google Maps{/t}">{t}(in GM){/t}</a>
|
||||
{search_in_gm}
|
||||
<a href="search.php?queryid={queryid}&output=ov2&startat={startat}" title="{t}TomTom POI .ov2{/t}">OV2</a>
|
||||
<a href="search.php?queryid={queryid}&output=ovl&startat={startat}" title="{t}TOP50-Overlay .ovl{/t}">OVL</a>
|
||||
<a href="search.php?queryid={queryid}&output=txt&startat={startat}" title="{t}Textfile .txt{/t}">TXT</a>
|
||||
@@ -118,7 +118,7 @@
|
||||
<a href="search.php?queryid={queryid}&output=gpx&startat={startat}&count=max&zip=1" title="{t}GPS Exchange Format .gpx{/t}">GPX</a>
|
||||
<a href="search.php?queryid={queryid}&output=loc&startat={startat}&count=max&zip=1" title="{t}Waypointfile .loc{/t}">LOC</a>
|
||||
<a href="search.php?queryid={queryid}&output=kml&startat={startat}&count=max&zip=1" title="{t}Google Earth .kml{/t}">KML</a>
|
||||
<a href="http://maps.google.de/maps?f=q&hl=de&q=<?php echo urlencode("http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."&output=kml&zip=1&count=max"); ?>" title="{t}Show in Google Maps{/t}">{t}(in GM){/t}</a>
|
||||
{search_in_gm_zip}
|
||||
<a href="search.php?queryid={queryid}&output=ov2&startat={startat}&count=max&zip=1" title="{t}TomTom POI .ov2{/t}">OV2</a>
|
||||
<a href="search.php?queryid={queryid}&output=ovl&startat={startat}&count=max&zip=1" title="{t}TOP50-Overlay .ovl{/t}">OVL</a>
|
||||
<a href="search.php?queryid={queryid}&output=txt&startat={startat}&count=max&zip=1" title="{t}Textfile .txt{/t}">TXT</a>
|
||||
|
||||
+12
-1
@@ -53,10 +53,19 @@
|
||||
$multiplier['sm'] = 0.62137;
|
||||
$multiplier['nm'] = 0.53996;
|
||||
|
||||
// default template variables
|
||||
tpl_set_var('search_in_gm', $search_in_gm);
|
||||
tpl_set_var('search_in_gm_zip', $search_in_gm_zip);
|
||||
|
||||
if (isset($_REQUEST['queryid']) || isset($_REQUEST['showresult']))
|
||||
{ // Ocprop: showresult, queryid
|
||||
$bCookieQueryid = false;
|
||||
$queryid = isset($_REQUEST['queryid']) ? $_REQUEST['queryid'] : 0;
|
||||
if ($queryid)
|
||||
{
|
||||
tpl_set_var('search_in_gm', '');
|
||||
tpl_set_var('search_in_gm_zip', '');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -107,14 +116,16 @@
|
||||
|
||||
if (mysql_num_rows($query_rs) == 0)
|
||||
{
|
||||
// can happen if logged out after query was created (fix for #3915)
|
||||
// can happen if logged out after query was created (fix for RT #3915)
|
||||
$queryid = 0;
|
||||
goto newquery; // goto needs PHP 5.3
|
||||
/*
|
||||
$tplname = 'error';
|
||||
tpl_set_var('tplname', 'search.php');
|
||||
tpl_set_var('error_msg', $error_query_not_found);
|
||||
tpl_BuildTemplate();
|
||||
exit;
|
||||
*/
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user