GOOGLE AUTHENTICATOR 2-STEP VERIFICATION

1. Upload/extract this updated ZIP over the existing site after taking a full file + database backup. Keep config/, uploads/ and existing database settings.
2. Sign in as admin and open Settings > Admin Security > GOOGLE AUTHENTICATOR.
3. Press SET UP GOOGLE AUTHENTICATOR. Scan the displayed QR code with Google Authenticator. If QR display is unavailable, use the displayed manual setup key in Google Authenticator (Add a code > Enter a setup key).
4. Enter the current 6-digit code and press VERIFY AND ENABLE.
5. Sign out and test admin login: username + password, then the 6-digit Google Authenticator code. User logins are unchanged.
6. To disable, use the current admin password and a valid authenticator code in the same settings section.

The admin_totp_secrets table is created automatically on first use. TOTP secrets are encrypted at rest using AES-256-GCM with a key derived from DB_PASS. Keep DB_PASS stable; changing it makes existing encrypted TOTP secrets unreadable, so disable/re-enroll 2FA before rotating DB_PASS.

The QR is generated locally in the browser from the otpauth URI; the secret is not sent to a QR image service. The QR library is loaded from cdnjs; if the CDN is unavailable, use the manual setup key. Keep server time synchronized (NTP); codes are time-based. HTTPS is required.

Runtime deployment tests are still required on the target PHP/MySQL host. Confirm PHP OpenSSL extension is enabled. Keep the original ZIP as rollback backup.
