RICO’S WIRELESS - PHP + MYSQL WEBSITE
===================================

INCLUDED
- Responsive public website using the supplied HTML's visual direction.
- PHP + MySQL persistent admin dashboard.
- Secure admin login (password_hash/password_verify, session regeneration, CSRF tokens).
- Device type, brand, model and repair type management.
- Bulk CSV catalog upload (device_type,brand,model,repair_type,price).
- Per-model repair price editor.
- Live estimator reads saved database records through api/catalog.php.
- Website information editor for phone, email, locations, hours note, services and currency.
- Contact form validates and stores enquiries in MySQL; attempts email delivery with PHP mail().
- Enquiry inbox in the admin dashboard.

REQUIREMENTS
- PHP 8.0+ recommended (PDO MySQL and mbstring enabled).
- MySQL 5.7+ / MariaDB 10.3+.
- cPanel hosting with PHP and MySQL.

INSTALL
1. Upload the contents of this folder to the website document root (usually public_html).
2. In cPanel > MySQL Databases, create a database and database user; assign the user ALL PRIVILEGES.
3. Copy config.example.php to config.php.
4. Edit config.php with database host, database name, username, password.
   Set mail_from to a real mailbox on your domain. The recipient is .
   The configured timezone defaults to America/New_York.
5. Visit https://YOUR-DOMAIN/install.php once.
6. Create your admin username and a strong password (12+ characters).
7. Sign in at https://YOUR-DOMAIN/admin/login.php.
8. Immediately confirm install.php has been deleted. If not, delete it manually in cPanel File Manager.
9. Open Website Info and verify all business details.
10. In Device & Prices, add the correct device models and verified prices. Blank prices show "Contact us for a quote".

IMPORTANT
- Do not upload config.php to a public repository or share its database password.
- Force HTTPS in your hosting panel.
- The project intentionally does not seed the sample prices from the original HTML because they were demonstration values, not confirmed business prices.
- Opening hours were not supplied, so the initial note asks customers to contact the business.
- Confirm both location addresses and public phone/email in Website Info before launch.
- PHP mail() depends on the hosting provider's outbound mail configuration. Test the contact form after deployment. If email delivery fails, enquiries are still stored in the admin Enquiries inbox and database.
- This is a cPanel-ready source package; it has not been connected to your hosting or live database from this chat.

ADMIN
- Website: /
- Admin login: /admin/login.php
- Setup (one time): /install.php

RICO'S WIRELESS BRAND SETTINGS
- Business name: Rico's Wireless
- Phone: (210) 219-1674
- Address: 1116 Basse Road, San Antonio, TX 78212, United States
- Website: https://www.ricoswireless.com/
- Brand colors: black (#111111) and yellow (#ffe500)
- Main services shown: Phone Repair, Unlock, Buy, Sell
- About section states 20 years in the phone industry and identifies James Achilles as the owner, without visually highlighting his name.
- The public email address was not supplied, so no email address is displayed. Configure a real business mailbox in Website Info and config.php before relying on email notifications.
- Confirm database credentials in config.php on the destination hosting account. The existing config.php values were retained from the uploaded project.
