Skip to content

Commit

Permalink
Merge pull request #452 from teiling88/misc/house-keeping-garmin
Browse files Browse the repository at this point in the history
house keeping - remove not longer supported garmin integration
  • Loading branch information
MacGyver-NRW committed Jan 26, 2017
2 parents 3378c06 + b8428b5 commit 2308dba
Show file tree
Hide file tree
Showing 158 changed files with 10 additions and 79,944 deletions.
9 changes: 1 addition & 8 deletions htdocs/config2/settings-dev.inc.php
Expand Up @@ -95,14 +95,7 @@
$opt['logic']['logs']['purge_email'] = 0; $opt['logic']['logs']['purge_email'] = 0;
$opt['logic']['logs']['purge_userdata'] = 0; $opt['logic']['logs']['purge_userdata'] = 0;


/* 3rd party library options // 3rd party library options
* see https://my.garmin.com/api/communicator/key-generator.jsp
*/
$opt['lib']['garmin']['key'] = '00112233445566778899AABBCCDDEEFF00';
$opt['lib']['garmin']['domain'] = 'local.team-opencaching.de';
$opt['lib']['garmin']['url'] = 'http://local.team-opencaching.de/';
$opt['lib']['garmin']['page_url'] = $opt['lib']['garmin']['url'] . ($dev_codepath == '*' ? '' : $dev_codepath . 'htdocs/');

// only for local.team-opencaching.de usage // only for local.team-opencaching.de usage
$opt['lib']['w3w']['apikey'] = 'X27PDW41'; $opt['lib']['w3w']['apikey'] = 'X27PDW41';


Expand Down
2 changes: 1 addition & 1 deletion htdocs/config2/settings-dist-common.inc.php
Expand Up @@ -30,7 +30,7 @@
// directory of rotator pictures and script, relative to head images dir // directory of rotator pictures and script, relative to head images dir
$opt['page']['headimagepath'] = ''; $opt['page']['headimagepath'] = '';


// sponsor link on e.g. print preview and garmin-plugin // sponsor link on e.g. print preview
$opt['page']['sponsor']['popup'] = ''; $opt['page']['sponsor']['popup'] = '';
$opt['page']['sponsor']['bottom'] = 'Driven by the Opencaching community'; $opt['page']['sponsor']['bottom'] = 'Driven by the Opencaching community';


Expand Down
17 changes: 1 addition & 16 deletions htdocs/config2/settings-dist.inc.php
Expand Up @@ -484,22 +484,7 @@
$opt['wikinews']['count'] = 5; $opt['wikinews']['count'] = 5;
$opt['wikinews']['timeout'] = 20; $opt['wikinews']['timeout'] = 20;


/* 3rd party library options // 3rd party library options
*/

// key provided from garmin (communicator api)
$opt['lib']['garmin']['key'] = '00112233445566778899AABBCCDDEEFF00';

// domain registered to this key. If the domain does not match the request
// a redirect to redirect-setting will be done
// (use exact same url with slashes etc. as registered by garmin)
$opt['lib']['garmin']['domain'] = 'www.site.org';
$opt['lib']['garmin']['url'] = 'http://' . $opt['lib']['garmin']['domain'] . '/';

// if the plugin is not called from the correct domain, redirect to this site
// (e.g. domain called without www. prefix) - must match domain of $opt['lib']['garmin']['url']
$opt['lib']['garmin']['redirect'] = 'http://www.site.org/garmin.php?redirect=1&cacheid={cacheid}';

// developer.what3words.com API key // developer.what3words.com API key
$opt['lib']['w3w']['apikey'] = 'YOURAPIKEY'; $opt['lib']['w3w']['apikey'] = 'YOURAPIKEY';


Expand Down
9 changes: 1 addition & 8 deletions htdocs/config2/settings-sample.inc.php
Expand Up @@ -185,14 +185,7 @@
*/ */
$opt['logic']['systemuser']['user'] = ''; $opt['logic']['systemuser']['user'] = '';


/* 3rd party library options // 3rd party library options
* see https://my.garmin.com/api/communicator/key-generator.jsp
*/
$opt['lib']['garmin']['domain'] = '<domain>';
$opt['lib']['garmin']['key'] = '00112233445566778899AABBCCDDEEFF00';
$opt['lib']['garmin']['url'] = 'http://' . $opt['lib']['garmin']['domain'] . '/';
$opt['lib']['garmin']['page_url'] = 'http://<domain>/';

// developer.what3words.com API Key // developer.what3words.com API Key
$opt['lib']['w3w']['apikey'] = 'YOURAPIKEY'; $opt['lib']['w3w']['apikey'] = 'YOURAPIKEY';


Expand Down
145 changes: 0 additions & 145 deletions htdocs/garmin.php

This file was deleted.

2 changes: 1 addition & 1 deletion htdocs/lib2/search/search.gpx.inc.php
Expand Up @@ -497,7 +497,7 @@ function search_output()
// additional waypoints, including personal cache note // additional waypoints, including personal cache note
$childWaypoints = $childwphandler->getChildWps($r['cacheid']); $childWaypoints = $childwphandler->getChildWps($r['cacheid']);
$n = 1; $n = 1;
$digits = "%0" . strlen(count($childWaypoints)) . "d"; $digits = '%0' . strlen(count($childWaypoints)) . 'd';


foreach ($childWaypoints as $childWaypoint) { foreach ($childWaypoints as $childWaypoint) {
$thiswp = $gpxWaypoints; $thiswp = $gpxWaypoints;
Expand Down
3 changes: 0 additions & 3 deletions htdocs/resource2/ocstyle/css/style_screen.css
Expand Up @@ -863,9 +863,6 @@ div.cachelistinfo { border:1px solid #a0a0a0; }
.pager { font-size:14px; } .pager { font-size:14px; }
.smallpager { } .smallpager { }


/* Garmin downlaod */
.garmintext { font-size: 1.1em; }

.edit_wptable { .edit_wptable {
background-color:#dddddd; background-color:#dddddd;
font-size:0.85em; font-size:0.85em;
Expand Down
125 changes: 0 additions & 125 deletions htdocs/resource2/ocstyle/js/GarminDisplay.js

This file was deleted.

0 comments on commit 2308dba

Please sign in to comment.