V5 ADMINISTRATION + EMAIL NOTIFICATIONS — digital BUILD

SAFETY / IDENTITY
This is an independent , not the official website of Credit Suisse or UBS and not affiliated with or endorsed by either. It is not a bank and provides no deposits, lending, cards, real transfers or payment processing. Use  test data only. Do not enter real passwords, card numbers, identity documents or confidential financial information.

ADMIN ACCESS
1. Upload setup-admin.php to the website root.
2. Visit https://YOUR-DOMAIN/setup-admin.php and create the first administrator with an email you control and a strong password (minimum 14 characters).
3. Immediately delete setup-admin.php from cPanel after setup.
4. Sign in at https://YOUR-DOMAIN/admin.html.
No default admin username or password is built in.

ADMIN MODULES
- Overview and counts.
- Customer search and profile editing.
- Account status: Active, Pending Verification, Disabled, Closed.
- Reset five-digit transfer PIN (stored as a hash; never shown or emailed).
- Permanently delete demo customer with protected JSON backup.
- Add/edit/delete simulated statement entries and adjust only the demo balance.
- View simulated transfer attempts.
- View card request records when present.
- View and update contact enquiry statuses.
- View administrator audit events.
- Edit per-customer simulated transfer failure message.

CUSTOMER DEMO FLOW
- Registration uses  data and creates a demo account number.
- Registration now requires a five-digit demo transfer PIN and confirmation.
- Sign-in accepts the demo User ID, Account Number or email address and the demo password.
- Demo transfer requires the demo PIN and only records an attempt; it does not move money.
- Password recovery remains administrator-assisted in this version; no password reset email is sent.

EMAIL DELIVERY (CONTACT FORM)
The contact form always records the enquiry in data/contact-messages.json if PHP can write to the data folder. It then attempts:
1. An HTML notification to contactus@csglobalfinancial.com.
2. A generic HTML acknowledgement to the sender's supplied email address.
A professional HTML email shell is used. No passwords, PINs, card numbers or login credentials are included in these messages. New demo registrations receive a generic welcome message containing the demo account number only; card requests receive a generic status notification.

SMTP CONFIGURATION
1. Copy mail-config.example.php to mail-config.php in the website root.
2. Update the SMTP host, port, TLS mode, username and app password using your provider's current instructions. Example values are shown for Zoho SMTP; regional Zoho accounts may use a different server hostname.
3. Use a Zoho app-specific password if required; do not use your normal mailbox password if the provider requires an app password.
4. Ensure contactus@csglobalfinancial.com exists and its domain DNS records (MX, SPF, DKIM and DMARC) are configured.
5. Test a contact enquiry using an inbox you control. The response indicates whether the SMTP server accepted the message, not whether it reached the recipient inbox.
6. Never upload mail-config.php to a public repository or share its password. Keep it out of ZIP files sent to others. The supplied .htaccess blocks direct HTTP access to mail-config.php on Apache hosting.

DEPLOYMENT
- Back up the website and the existing data folder first.
- Merge the files in this package into the site root.
- Preserve any existing customer JSON data. The JSON files included in this ZIP are blank initial templates; DO NOT overwrite existing live JSON files.
- Ensure the data directory is writable by PHP but denied from direct HTTP access. Keep its .htaccess protection.
- Ensure PHP supports TLS streams and outbound connections to your SMTP provider.
- Test on a staging copy before production use.

VALIDATION
Run php -l on api.php and setup-admin.php; run node --check on js/admin.js and js/portal.js. Live cPanel SMTP and browser testing are still required.


UPDATED PRESENTATION BUILD NOTICE:
The current build is an independent  simulation. Outbound email/SMS and real payment services are disabled. Use the Email Previews area in the administrator portal to inspect HTML notification previews. See README-PRESENTATION-UPDATED.txt for current setup instructions.
