# Myriadonica - New Site

Modern PHP & MySQL implementation of the Myriadonica broadcast site.

## Deployment with Docker

1. **Build and Run**:
   ```bash
   docker-compose up -d --build
   ```

2. **Access the Application**:
   - Web: [http://localhost:8080](http://localhost:8080)
   - PhpMyAdmin: [http://localhost:8081](http://localhost:8081)

3. **Initialize Data**:
   - Visit [http://localhost:8080/migrate.php](http://localhost:8080/migrate.php) once to import data from the legacy JSON files.
   *Note: Ensure the `oldsite` directory is present at the same level as `newsite` for migration to work.*

4. **Admin Panel**:
   - URL: [http://localhost:8080/admin/](http://localhost:8080/admin/)
   - Default Login: `admin` / `admin123`

5. **Telegram Bot**:
   - Configure your bot token in the Admin Settings.
   - Run the worker in the background:
     ```bash
     docker exec -it myriadonica-web php telegram_worker.php
     ```

## Features
- Dynamic broadcast schedule.
- Multi-CDN support.
- Configurable site aesthetics.
- Telegram post planner with auto-delete and recurrence.
- Intelligent Firewall & Visitor tracking.
