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 routerindex.php
An AJAX endpointassets/ajax/index.php — one big switch on $action
A pagepags/<name>.php
Business logic (helpers)app/functions.php
Email template HTML defaultsapp/email_defaults/*.body.html
Schema for fresh installsinstall/sql/schema.sql
SQL changes for the next releaseupdate/update.sql
License client codeapp/MedelLicenseClient.php
Update apply pipelineapp/updater.php
Translatable settings listapp/functions.phptranslatable_settings_list()
Translatable DB columnsapp/functions.phptranslatable_catalog()
SEO catalogapp/functions.phpseo_pages_catalog()
FortPass · © 2026 Medel Platforms · medel.es