Personal flight tracker
| assets | First commit | |
| includes | First commit | |
| .gitignore | First commit | |
| admin.php | First commit | |
| apple-touch-icon.png | First commit | |
| download.php | First commit | |
| favicon.png | First commit | |
| favicon.svg | First commit | |
| gpx.php | First commit | |
| index.php | First commit | |
| LICENSE | First commit | |
| README.md | First commit | |
Flig
FLIght loG — a personal app for tracking flights.
Features
- Calendar view — monthly calendar showing flights on their respective days. Click a day to see aircraft, notes, costs, and a Leaflet map of the GPX track overlay on OpenStreetMap.
- Admin panel — password-protected CRUD interface for managing flight records.
- Drag-and-drop GPX file upload
- Aircraft, date, notes, and costs fields
- Edit and delete any record
- Total costs summary
Requirements
- PHP 8.0+ with SQLite and session support
Setup
cd flightlog
php -S localhost:8080
Open http://localhost:8080 in your browser.
Admin access
Visit /admin.php — default password is secret. Change it by regenerating the PASSWORD_HASH constant in admin.php:
php -r "echo password_hash('your-new-password', PASSWORD_BCRYPT);"
Files
| Path | Purpose |
|---|---|
index.php |
Calendar front-end |
admin.php |
Admin panel (login, form, records table) |
includes/db.php |
SQLite database setup |
download.php |
GPX file download endpoint |
gpx.php |
GPX-to-GeoJSON endpoint for Leaflet maps |
assets/style.css |
Styling |
assets/script.js |
Drag-and-drop, modal, Leaflet maps |
gpx/ |
Uploaded GPX files |
data.db |
SQLite database (auto-created) |