Vurrer Kagoj — PHP + MySQL News Portal (Starter)
=================================================

Quick Start (XAMPP/Hosting)
---------------------------
1) Create a MySQL database (utf8mb4). Example: vurrer_kagoj
2) Import `install/install.sql` into that DB.
3) Copy `core/config.sample.php` to `core/config.php` and edit DB creds + base_url.
   - For XAMPP if served at http://localhost/vurrer_kagoj/public/
     set base_url to `/vurrer_kagoj/public/`
   - For root hosting domain, set base_url to `/`
4) Ensure `public/uploads` is writable (chmod 775/777 if needed).
5) Visit `/admin/index.php` and login:
   Email: admin@example.com
   Password: admin123
6) Go to Settings and add logo URLs, footer texts, etc.
7) Create categories and posts. For scheduled posts, set Status=scheduled and a future Publish At.
8) Run the scheduler:
   - Manually: open `/core/scheduler.php` in the browser (while logged in is not required).
   - Cron (recommended): `*/2 * * * * php /path/to/core/scheduler.php > /dev/null 2>&1`

Header/Footer customization
---------------------------
- Use Settings → Custom Header HTML / Footer HTML to inject extra HTML (ad slots, language switch, menu buttons).
- Category order controls the nav order (and visibility via "active").

Blocks/Sections
---------------
- The front page currently renders a hero grid of latest posts (by category if filtered).
- To create additional blocks per category (e.g., 3-column section per category),
  duplicate the hero section query in `public/index.php` with `WHERE c.slug=?`.

Security notes
--------------
- This is a minimal starter for testing, hardened basics (CSRF, prepared queries, password hashing).
- Before production: add granular permissions, file-type checks for uploads, and image resizing pipeline.

