-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathTODO
More file actions
90 lines (71 loc) · 3.36 KB
/
Copy pathTODO
File metadata and controls
90 lines (71 loc) · 3.36 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
TODO:
General:
- add columns to trip (& location?) tables to store remote IP
- logging requests to MySQL
- redo geoJSON support for more track features in the backend
- Track statistics, like distance, average speed, etc.
- implement shortcode to display TrackMe/OsmAnd password (feature request through WP forum)
- implement generic HTTP GET interface and/or CelltracGTS/Free support
- uLogger support
X implement one universal URL endpoint for Trackserver, that handles all the protocols
X implement 'access keys' to replace individual app passwords. They should also work for Basic auth, in addition to WP password.
- support GET/POST parameters for source, comment, track name prefix
- comment field for location entries, to be used for extra data that's available in some apps, like battery level, etc.
Frontend:
- query tracks by string match with wildcards, instead of just by id
- query tracks by collection (tag), when admin backend is implemented
- avatar support for live tracks (like in OwnTracks)
- live tracking tooltip format template
- track decorations, for example with the [PolylineDecorator](https://github.com/bbecquet/Leaflet.PolylineDecorator) plugin
- infobar tags for total elapsed time, average speed, number of points
- icons!
Admin backend:
- add user profile setting for default map center (replace hardcoded coordinates)
- file tracks in folders/collections
- add waypoints
- add HOWTO screens for OwnTracks, LocusMaps and other supported apps
- add a Users page for Trackserver user profile management by WP admins
- add a button to create a 'Trackserver_Subscriber' role, which is Subscriber + 'use_trackserver'
- bulk action to remove / reapply geofences
- reverse geofence support
- map profiles, [leaflet-providers](https://github.com/leaflet-extras/leaflet-providers) plugin ?
- Move OsmAnd / SendLocation / OwnTracks trackname format from Options to Profile
- For OwnTracks / TrackMe cloud sharing, add a profile settings for share last location duration (TrackMe limit is 1h)
- delete or chown location data when removing users from WordPress
- use WP_List_Table for app passwords
Javascript:
- better live tracking tooltip handling
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);
PASS AUTHORIZATION HEADER IN ENVIRONMENT
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
<div class="application-passwords-list-table-wrapper">
<?php
$application_passwords_list_table = _get_list_table( 'WP_Application_Passwords_List_Table', array( 'screen' => 'application-passwords-user' ) );
$application_passwords_list_table->prepare_items();
$application_passwords_list_table->display();
?>
</div>