CSG GLOBAL FINANCIAL - UPDATE NOTES

Changes in this package
1. Customer sign-in now has two stages: identifier/password, followed by one randomly selected security question from the customer's two registered questions. The pending verification expires after five minutes. A customer session is created only after the answer is verified.
2. Admin customer updates now hash and save changed security answers. Leave either answer field blank to retain the existing answer.
3. The transfer confirmation page requests the latest customer-specific confirmation message from the API when opened, so an administrator's saved message is reflected there. The no-funds-moved disclosure remains visible.
4. Email delivery now attempts authenticated PHPMailer SMTP when explicitly enabled. If SMTP fails, it falls back to PHP mail(), using the Heritage-style HTML + quoted-printable transport. The contact form continues to save enquiries and attempts to email contactus@csglobalfinancial.com.
5. The SMTP test file has been removed from the package. Do not leave diagnostic scripts publicly accessible.

IMPORTANT EMAIL CONFIGURATION
- mail-config.php is intentionally shipped without any mailbox password.
- It currently has SMTP enabled=false so that the native PHP mail() fallback is used, as in the supplied Heritage example.
- If your hosting provider later confirms a certificate-matching SMTP hostname, update smtp_host, set smtp_password privately, and set enabled=true.
- Never place mailbox passwords in public source control or share them in chat. Rotate any password that was previously included in an uploaded archive.
- PHP mail() delivery still depends on the hosting provider's outbound mail service and sender policy. A successful mail() return means the hosting server accepted the message for hand-off, not guaranteed inbox delivery.

DEPLOYMENT
1. Back up the current hosted website and data folder.
2. Upload the updated files, preserving your existing data/*.json files and existing PHPMailer directory.
3. Do not overwrite live customer/admin data JSON with sample files from this archive if the live data has newer records.
4. Verify the hosting file permissions and that data/ remains protected.
5. Test sign-in using a test customer account, including a wrong and correct security answer.
6. Test admin changes to each security answer and verify the customer can use the updated answer.
7. Save a test confirmation message in admin, initiate a new simulated transfer, and open the confirmation page.
8. Submit a contact enquiry and check both the admin contact list and the contact mailbox/spam folder.
