Docs · Project structure
Project structure
A map of every folder you care about as a developer. Files not listed here are either auto-generated or unimportant.
FortPass/
├── index.php # Router (AltoRouter) + install gate
├── config.php # Loads settings from DB + APP_URL + license guard
├── VERSION # Single-line semver, read by updater + .bat
│
├── install/ # Installation wizard (deleted after install)
│ ├── index.php # Router for the 7 steps
│ ├── lib/
│ │ ├── installer.php
│ │ └── MedelLicenseClient.php
│ ├── sql/schema.sql # Baseline DB schema for fresh installs
│ ├── steps/1.php … 7.php
│ └── assets/style.css # Standalone installer styles
│
├── update/
│ └── update.sql # Schema changes for this release (one file per release)
│
├── pags/ # Pages (views)
│ ├── home.php # Public landing
│ ├── auth.php # Login (email + Google + Apple)
│ ├── pin.php # PIN gate
│ ├── reset-pin.php # Reset PIN via email
│ ├── accounts.php # Accounts
│ ├── credit-cards.php
│ ├── banks.php
│ ├── notes.php
│ ├── documents.php
│ ├── authenticator.php # TOTP/HOTP
│ ├── account-security.php # PIN + emergency + status
│ ├── billing.php
│ ├── billing/change-plan.php
│ ├── pricing.php # Public
│ ├── password-generator.php # Public/logged dual layout
│ ├── vault-health.php # Scan + history
│ ├── emergency-accept.php # Public (token)
│ ├── emergency-claim.php # Public (token)
│ ├── maintenance.php
│ ├── manifest.php # Dynamic /manifest.json
│ ├── sitemap.php # Dynamic /sitemap.xml
│ ├── robots.php # Dynamic /robots.txt
│ ├── admin/
│ │ ├── dashboard.php
│ │ ├── users.php
│ │ ├── plans.php
│ │ ├── blog.php
│ │ ├── seo.php
│ │ ├── license.php # License + updates panel
│ │ └── settings.php
│ └── partials/ # Shared bits (head, nav, foot, cards…)
│
├── app/
│ ├── functions.php # 90% of business logic
│ ├── icons.php
│ ├── translator.php # Google Translate scraper
│ ├── license.php # Runtime license guard + cache
│ ├── updater.php # Update apply pipeline + backup/restore
│ ├── MedelLicenseClient.php # API client (verify, updates)
│ ├── db.php # Buyer's DB credentials (generated by installer)
│ ├── download_file.php # Encrypted-document download stream
│ ├── .installed # Install marker (JSON)
│ ├── mail_log/ # Outbound mail audit
│ ├── email_defaults/ # Default HTML templates per email type
│ ├── classes/AltoRouter.php
│ ├── stripe/ # Stripe client + webhook
│ ├── paypal/
│ ├── coinbase/
│ └── social_login/
│ ├── google/
│ └── apple/
│
├── assets/
│ ├── ajax/
│ │ ├── index.php # All AJAX actions (1 entry, switch by $action)
│ │ └── index.js # Plan-limit interceptor
│ ├── css/style.css # Global styles
│ ├── img/
│ │ ├── default_user.png
│ │ └── uploads/ # Buyer-uploaded images (preserved across updates)
│ ├── js/
│ │ ├── app.js # Bootstrap
│ │ ├── theme.js # Light/dark toggle with timestamp
│ │ ├── folders.js # Picker + manage folders
│ │ ├── sort.js # Cookie-driven sort selector
│ │ ├── pwgen.js # Password generator (modal + page)
│ │ ├── totp.js # TOTP authenticator
│ │ ├── search.js # Grid search
│ │ ├── passcode.js # PIN entry
│ │ ├── paginator.js
│ │ ├── color-picker.js
│ │ ├── service-worker.js # PWA
│ │ └── rte.js # Rich text editor (notes)
│ ├── lib/ # Third-party (snackbar, toastr, fontawesome)
│ └── xsl/sitemap.xsl # Human view of the sitemap
│
├── uploads/
│ └── vault/<uid>/*.enc # Encrypted Documents module (preserved across updates)
│
├── lang/
│ ├── en.php
│ ├── es.php
│ └── icons/ # Icon catalog per language
│
├── docs/ # This documentation (HTML, no PHP)
├── backups/ # Pre-update backups (DB + tree)
What lives where (cheat sheet)
Looking for… Open this
The router index.php
An AJAX endpoint assets/ajax/index.php — one big switch on $action
A page pags/<name>.php
Business logic (helpers) app/functions.php
Email template HTML defaults app/email_defaults/*.body.html
Schema for fresh installs install/sql/schema.sql
SQL changes for the next release update/update.sql
License client code app/MedelLicenseClient.php
Update apply pipeline app/updater.php
Translatable settings list app/functions.php → translatable_settings_list()
Translatable DB columns app/functions.php → translatable_catalog()
SEO catalog app/functions.php → seo_pages_catalog()
FortPass · © 2026 Medel Platforms · medel.es