<<<<<<< HEAD
A fully responsive vintage car showcase website with:
- Public frontend (hero, featured collections, filterable gallery, timeline, contact, newsletter)
- PHP 8 backend with PDO and session authentication
- Role-based admin panel (
adminvseditor) - Car CRUD with secure image uploads
- Subscriber and contact message management
- MySQL schema with indexes and foreign keys
- PHP 8+
- MySQL 8+ (or MariaDB compatible)
- HTML5 + CSS3 (Grid/Flexbox) + vanilla JavaScript
index.php: public websiteprocess_contact.php: stores contact submissionsprocess_newsletter.php: stores newsletter subscriptionsadmin/: admin panel pagesincludes/: shared config, auth, DB, and utility helpersassets/css/style.css: main stylesassets/js/main.js: interactivity and reveal effectsdatabase/schema.sql: schema + seed datauploads/cars/: uploaded images
- Create a MySQL database and import the SQL schema:
database/schema.sql
- Update DB credentials in
config.php:DB_HOST,DB_PORT,DB_NAME,DB_USER,DB_PASS
- Start PHP in the project root:
php -S localhost:8000
- Open:
- Public site:
http://localhost:8000/index.php - Admin login:
http://localhost:8000/admin/login.php
- Public site:
admin/admin123editor/editor123
admin: full access, can delete cars and manage subscribers/messageseditor: can login and create/update car entries
- Password hashes +
password_verify() - PDO prepared statements
- CSRF token protection on all POST forms
- Session regeneration on login
- Upload validation (size, extension, MIME) =======
677ab6a6340896e7a863c31913cf754e7bcf1c62