To migrate your Firebase-based application to standard Cpanel hosting (using PHP and a secure MySQL database), you will need to separate your code into structured, secure modules. The original Firebase client-side code has been converted to a clean MVC / AJAX-driven architecture where front-end states communicate securely with a PHP API layer. Step 1: File Directory Structure Create this folder structure in your Cpanel directory (inside public_html): public_html/ ├── assets/ │ ├── css/ │ │ └── style.css │ └── js/ │ └── app.js ├── config.php ├── api.php ├── index.php └── database.sql Step 2: Database Schema (database.sql) Create a MySQL database in Cpanel via MySQL Database Wizard, then import this SQL script to construct secure, indexed tables: 3: Database Connection Config (config.php) This file initializes PDO securely. Put your actual MySQL credentials here. Step 4: Central UI Layout Router (index.php) This core file renders the dynamic client views and binds CSS/JS. Step 5: Separated Stylesheet (assets/css/style.css) Save the premium layout parameters securely inside this file. Step 6: Core Controller Backend (api.php) This file acts as a secure dispatcher. It implements backend verification, session checks, and input sanitization to block SQL injection and cross-site scripting (XSS). Step 7: Unified Front-End Controller (assets/js/app.js) Save this inside assets/js/app.js to control rendering loops and client-side page routing: Step 8: How to Install on Cpanel Domain Hosting 1. MySQL Database Setup: - Access Cpanel and navigate to MySQL Database Wizard. - Create a database, create a database user, set a strong password, and link the user with All Privileges enabled. - Go to phpMyAdmin, select the newly created database, click on the Import tab, upload the database.sql file, and execute the import. 2. Configure Database Settings: - Open /public_html/config.php and input your exact MySQL credentials inside $db_host, $db_name, $db_user, and $db_pass. 3. Deploy Files: - Upload the entire folder structure directly inside Cpanel's File Manager (under /public_html/). 4. Verify Live Operations: - Visit your domain using any browser. It will load instantly. - To activate the Administrative Dashboard, double-click on the top-left crown logo icon (S.B.T. INCOME BD) and input the secure code SBT_ADMIN_2026 inside the prompt. This will grant admin privileges to your user account and unlock the Admin Control Area.