How oussema-tarhouni/kjhg works
EOS Fitness & Pilates is a PHP/MySQL gym membership site. Visitors browse the public landing and plans, then register or log in; authenticated members reach the dashboard, while administrators use a gated panel to manage gym data. The sampled front controller and API excerpts establish routing into the local API and its MySQL-backed handlers. The README documents the PHP/MySQL deployment; dashboard and admin capabilities are represented where visible in the tree, but unsampled connections are omitted.
Main entry points: index.php HTTP Router · local_api.php Local API Handlers · http.php Auth Guard and API Layer · proxy.php JSON API Proxy
Components 19
Site and Pages
- HTTP Router
index.php - Public Landing
views/landing.php - Plan Selection
pages/plan.php - Member Dashboard
views/dashboard.php - Legal Pages
pages/terms.php
Member Access
- Registration View
views/signup.php - Login View
views/login.php - OTP View
views/otp.php - Pending View
views/pending.php - Password Recovery
pages/reset_password.php
API and Operations
- Auth Guard and API Layer
lib/http.php - JSON API Proxy
api/proxy.php - Local API Handlers
lib/local_api.php - MySQL Database
Administration
- Admin API
lib/admin_api.php - Admin Login Gate
pages/admin_gate.php - Admin Panel
pages/admin.php - Member Approvals
pages/approvals.php
Other components
- Visitor or Member
Connections 15
- Visitor or Member → HTTP Router: requests pages
index.php - HTTP Router → Public Landing: routes home
index.php - HTTP Router → Plan Selection: routes plans
index.php - HTTP Router → Member Dashboard: routes dashboard
index.php - HTTP Router → Legal Pages: routes legal
index.php - HTTP Router → Admin Login Gate: routes gate
index.php - HTTP Router → Auth Guard and API Layer: loads API layer
index.php - HTTP Router → JSON API Proxy: dispatches API
index.php - HTTP Router → Admin Panel: routes panel
index.php - HTTP Router → Member Approvals: routes approvals
index.php - Auth Guard and API Layer → Local API Handlers: loads handlers
lib/http.php - JSON API Proxy → Local API Handlers: calls api_request
api/proxy.php - Local API Handlers → Admin API: dispatches admin routes
lib/local_api.php - Admin Login Gate → Admin API: unlocks admin access
- Local API Handlers → MySQL Database: queries and updates
lib/local_api.php