Exemplo n.º 1
0
     $coords3 = '';
 }
 tpl_set_var('cache_stats', $cache_stats);
 tpl_set_var('googlemap_key', $googlemap_key);
 tpl_set_var('map_msg', $map_msg);
 tpl_set_var('coords2', $coords2);
 tpl_set_var('coords3', $coords3);
 tpl_set_var('coords_other', $coords_other);
 tpl_set_var('typeLetter', typeToLetter($geocache->getCacheType()));
 // cache locations
 tpl_set_var('kraj', "");
 tpl_set_var('woj', "");
 tpl_set_var('dziubek1', "");
 tpl_set_var('miasto', "");
 tpl_set_var('dziubek2', "");
 $geocacheLocation = $geocache->getCacheLocation();
 if (substr(@tr($geocacheLocation['code1']), -5) == '-todo') {
     $countryTranslation = $geocacheLocation['adm1'];
 } else {
     $countryTranslation = tr($geocacheLocation['code1']);
 }
 // if (substr(@tr($cache_record['code3']), -5) == '-todo') $regionTranslation = $cache_record['adm3']; else $regionTranslation = tr($cache_record['code3']);
 $regionTranslation = $geocacheLocation['adm3'];
 if ($geocacheLocation != "") {
     tpl_set_var('kraj', $countryTranslation);
 } else {
     tpl_set_var('kraj', tr($geocacheLocation['country_short']));
 }
 if ($geocacheLocation['code3'] != "") {
     $woj = $geocacheLocation['adm3'];
     tpl_set_var('woj', $regionTranslation);