Files (OneDrive-like starter) for files.xkore.net
=================================================

What you get
- OneDrive-inspired UI: sidebar (My files / Recent / Shared / Recycle bin), top bar search, grid/list view.
- Accounts: register, login, remember-me cookie.
- Upload files, create folders, rename, delete -> recycle bin, restore, delete forever.
- Image thumbnails (GD required).
- Share links (public or login-required) for single items.
- Built for PHP 8+ and SQLite (PDO_SQLITE).

Quick install (Apache)
1) Upload everything in this folder to your web root for files.xkore.net
   Example: /var/www/files.xkore.net/public_html/
2) Ensure Apache has rewrite enabled and .htaccess is allowed:
   - Enable mod_rewrite
   - In your vhost: AllowOverride All
3) Ensure PHP extensions:
   - pdo_sqlite (required)
   - gd (recommended for thumbnails)
4) Make sure /data is writable by the web server user.
   On Linux:
     mkdir -p data storage thumbs
     chown -R www-data:www-data data
     chmod -R 775 data
   On Windows/XAMPP:
     ensure the folder has write permissions for the Apache user.

Config
- Edit conf/config.php for storage paths, upload limit, base_url.
- Optional email: conf/mail_config.php
  NOTE: This starter uses PHP mail() for resets. If your host doesn't support mail(),
  it will show the temporary password once in the UI (dev_temp_password).

URLs
- App: https://files.xkore.net/
- Share link: https://files.xkore.net/s/<token>
- API endpoints: /api/<endpoint> (used by the frontend)

Notes / limitations of this starter build
- Multi-select download as ZIP is not included yet.
- Folder share is view-only (no recursive download).
- No server-side full-text search (only client-side filter).

If you want, tell me:
- your hosting stack (Apache/Nginx, Linux/Windows),
- max upload size you want,
- and whether you want multi-user sharing by email like OneDrive,
and I’ll extend this build (ZIP download, move/copy, permissions, virus scan hooks, etc.).

- Multi-select file download as ZIP is included (requires PHP ZipArchive).
