Ctrl+K
Create a fully responsive and professional website called "Trommel" using PHP, MySQL, CSS, and JavaScript. The website must allow registered users to trade and sell personal goods they no longer want. It must have a unique, modern, and awesome UI/UX with high security standards to protect all user data from hackers (e.g., SQL injection prevention, password hashing with bcrypt, CSRF protection). Key Features & Requirements: General Requirements: Modern and fully responsive layout (mobile-first design). Optimized for speed and SEO. Clear navigation with a professional marketplace vibe. Separate areas for users and admin (different dashboards). Authentication System: Fully functional login and registration system built with PHP and MySQL. Secure password storage using hashing (bcrypt). Input validation and sanitization on all forms. Session-based authentication with CSRF tokens for protection. Ability for users to reset passwords via email (use PHPMailer). Database Structure: Tables for users, items (listings), subscriptions, and admin management. Fields for user profile data (username, email, password, subscription type, etc.). Fields for items (title, description, images, location, price, created_at, posted_by). User Dashboard Features: Ability to list items for trade or sale: upload images, add description, set location, etc. View, edit, and delete personal listings. View subscription status (Free or Pro). Pro users get highlighted listings and more item slots (e.g., 50 vs 10). Admin Dashboard Features: View, approve, or remove user listings. Manage users (upgrade to Pro, ban users, etc.). View website statistics (e.g., total listings, active users). Subscriptions: Two types: Free and Pro. Free: Limited listings, no priority display. Pro: More listings, priority display, highlighted profile. Contact Page: Functional contact form using PHPMailer to send messages to site admin. Includes validation (no empty fields, valid email format). Security: Use prepared statements (PDO/MySQLi) for all database queries. Password hashing (bcrypt). CSRF protection on all forms. Validate and sanitize file uploads (e.g., only images, size limits). Role-based access control (normal users vs admin). Design Requirements: Unique and professional design β minimalistic marketplace look. Clean typography, modern buttons, hover animations. Use grid and flexbox for layout. Fully responsive navbar with dropdown menus for mobile. Additional Features: Search functionality for listings (by keyword, location, category). Filter and sorting options for browsing items. User profiles with bio and active listings count. Image thumbnails and lightbox for viewing item photos. Output Expectations Provide all source files: PHP (frontend and backend), CSS, JS, MySQL database schema (SQL file), and PHPMailer integration setup. Include clean code structure with folders: pgsql Copy Edit /assets (css, js, images) /includes (header, footer, database connection) /dashboard (user dashboard) /admin (admin dashboard) /uploads (user uploaded images) Include step-by-step instructions for setup: database import, PHPMailer configuration, and admin access creation. - Follow Up Deployment
1da21d7 verified