forked from tinuzz/wp-plugin-trackserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO
69 lines (57 loc) · 2.38 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
TODO:
Server:
- Fix default map center for live map
- implement TrackMe export to KML/GPX. How? Create blog post?
- implement tripname normalization; find a way around Trackme using the name as the PK
- reverse geocoding for trip names
- maybe use export button to trigger tripame normalization
- add columns to trip (& location?) tables to store remote IP
- logging requests to MySQL
- DONE: use geoJSON instead of Polyline, if callbacks are feasable for extracting metadata
or use a second HTTP request for the metadata
- implement GPSgate protocol
- DONE: implement OSMand protocol
- DONE: don't use the WP password for TrackMe tracking, it is insecure. Use a secret like with OsmAnd.
- implement shortcode to display TrackMe/OsmAnd password (feature request through WP forum)
- implement live tracking multiple users (feature request)
- multi-site support - http://rabinshrestha.com/make-wordpress-plugin-compatible-with-multisite/
- implement generic HTTP GET interface and/or CelltracGTS/Free support
Frontend:
- DONE: Leaflet shortcode / map view.
- DONE: Icons for start/finish
- DONE: Media manager integration
- DONE: autoupdate (live tracking) toggle button
- DONE: ability to show multiple tracks per map
Admin backend:
- DONE: Manage trips (name, comment, delete)
- DONE: Internationalization
- DONE: Add HOWTO screens for all clients
- DONE: Add columns for nr. of points and distance to table with tracks
- file tracks in folders/collections
- DONE: make secrets for TrackMe / OsmAnd a per-user setting
Javascript:
- DONE: move the thickbox manipulation to its own file
- DONE: properly destroy map objects in the admin viewer when closing the thickbox
REWRITE RULES
$url = site_url(null, 'http');
$base_uri = preg_replace('/^http:\/\/[^\/]+/', '', $url);
$tag = $this -> options ['trackme_slug'];
$extension = $this -> options ['trackme_extension'];
$ajax_uri = admin_url('admin-ajax.php?action=trackserver_trackme');
$ajax_uri = preg_replace('/^https?:\/\/[^\/]+/', '', $ajax_uri);
$apache = <<<EOF
# BEGIN Trackserver
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase $base_uri/
RewriteRule ^$tag/requests\.$extension /wp/wp-admin/admin-ajax.php?action=trackserver_trackme [L]
</IfModule>
# END Trackserver
EOF;
$nginx = <<<EOF
location = $base_uri/$tag/requests.$extension {
try_files \$uri \$uri/ $ajax_uri;
}
EOF;
$apache = htmlspecialchars($apache);
$nginx = htmlspecialchars($nginx);