dmpop/flig
1
0
Fork
You've already forked flig
0
Personal flight tracker
  • PHP 61.8%
  • CSS 25.2%
  • JavaScript 13%
2026年05月30日 22:37:58 +02:00
assets First commit 2026年05月30日 22:37:58 +02:00
includes First commit 2026年05月30日 22:37:58 +02:00
.gitignore First commit 2026年05月30日 22:37:58 +02:00
admin.php First commit 2026年05月30日 22:37:58 +02:00
apple-touch-icon.png First commit 2026年05月30日 22:37:58 +02:00
download.php First commit 2026年05月30日 22:37:58 +02:00
favicon.png First commit 2026年05月30日 22:37:58 +02:00
favicon.svg First commit 2026年05月30日 22:37:58 +02:00
gpx.php First commit 2026年05月30日 22:37:58 +02:00
index.php First commit 2026年05月30日 22:37:58 +02:00
LICENSE First commit 2026年05月30日 22:37:58 +02:00
README.md First commit 2026年05月30日 22:37:58 +02:00

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)