ADVANCED DRIVING INSTRUCTORS WEBSITE: INSTALLATION (Namecheap Stellar)
=====================================================================
Do these steps only when you are ready to launch. Nothing here changes your
domain or DNS settings. The full guide is in the launch report.

1. cPanel -> "Select PHP Version": choose PHP 8.1 or newer (8.3 recommended).
   Make sure these extensions are ticked: pdo_sqlite, gd, fileinfo, mbstring, zip.
2. cPanel -> File Manager -> public_html. Upload everything inside the
   "public_html" folder of this package (index.php, .htaccess, assets, app).
   Tip: upload the ZIP and use "Extract", then move the files up if needed.
   File Manager hides files starting with a dot: Settings -> "Show Hidden Files".
3. In public_html/app, copy config.sample.php to config.php and edit it:
     setup_code  -> a private phrase of at least 12 characters
     mail_from   -> a mailbox on your domain (create it in cPanel -> Email Accounts)
4. Visit https://YOUR-DOMAIN/admin and create your admin login using the setup code.
   The site creates a private data folder called "adi_data" NEXT TO public_html
   (not inside it). Then set setup_code back to '' in config.php.
5. Admin -> Account: check Storage says "Outside public_html".
   Admin -> Website: "Send a test email".
6. Check https://YOUR-DOMAIN/app/config.php shows "Forbidden" (it must not open).
7. Once SSL is active, uncomment the two https lines in public_html/.htaccess.
8. Admin -> Total Drive: test every link on the live site, tick each one, and
   only switch on online booking after a real test booking works.

Backups: Admin -> Account -> Download backup (ZIP). Keep it private.
Reset a lost password (no other admin available): in app/config.php set a
setup_code and set 'recovery' => true. Visit https://YOUR-DOMAIN/admin/setup,
enter the code, your login email and a new password. Then set 'recovery' back
to false and setup_code back to ''.

local-test-router.php is only for testing on a computer
("php -S localhost:8080 local-test-router.php" from inside public_html after
copying it there). Do not upload it.
