PixBoost AI - PHP/MySQL image enhancement website

Admin login:
URL: /admin/login.php
Username: admin
Password: 1qa2ws1qaM

Install:
1) Upload all files to your hosting public_html.
2) Create MySQL database and import sql/database.sql.
3) Edit includes/config.php with DB name/user/password and BASE_URL.
4) Go to /admin/login.php and add:
   - OpenAI API key
   - Resend API key + verified from email
   - Stripe and PayPal keys
   - Logo and favicon
5) Ensure these folders are writable:
   assets/uploads
   assets/generated
   assets/branding

Credit system:
- Every new user gets 1 free credit.
- Each successful AI enhancement deducts 1 credit.
- Packages are editable from Admin > Packages.
- Growth is marked Most Popular by default.

Payment note:
The included Stripe/PayPal buttons are prepared as gateway options and currently use a manual/sandbox success endpoint for testing. For live production, connect official Stripe Checkout and PayPal Orders webhooks to mark orders paid only after gateway confirmation.


V2 additions:
- Admin toggle for email verification warning and verification email link.
- Remember me login token.
- My Invoices page with PDF invoices using company data/logo settings.
- Strong Terms/Privacy pages from admin settings.
- Mandatory credit purchase agreement before checkout.
- Legal acceptance log in admin with proof PDF per purchase.
- Stripe and PayPal webhook endpoints: /webhooks/stripe.php and /webhooks/paypal.php. Credits are designed to be added only once after webhook confirmation.
- Run the updated sql/database.sql or manually apply ALTER statements on existing database.

v3 additions:
- Admin > Customers: view customers, add credits, disable/enable account, ban/unban last IP.
- Admin > Images: view original/generated customer images and delete image files.
- Customer > Settings: change name, email, and password.
- Forgot password: Resend-powered premium reset email.
- Every completed enhancement sends a Resend email: Your image is ready.
- database.sql includes v3 ALTER TABLE updates.
