Transform your DCS server data into a stunning, interactive web dashboard with real-time API integration!
- ๐๏ธ Role-Based Access Control - Multi-tier permission system (Air Boss, Squadron Leader, Pilot)
- ๐ Secure Authentication - Modern login system with session management
- ๐ Auto-Update System - One-click updates from GitHub with version tracking
- ๐พ Backup & Restore - Automatic backups before updates with version metadata
- ๐จ Theme Manager - Pre-built themes (Sky Pirates, Grim Reapers, Blue Angels, more!)
- ๐ผ๏ธ Cinematic Header - Epic DCS combat scene background with professional overlay
- ๐จ Unified Design System - Consistent cards, buttons, and styling across all pages
- ๐ฑ Dynamic Responsive Layout - Adapts fluidly to any screen size (98% mobile width to 1400px desktop)
- ๐ Unified Search Experience - Consistent search bars with advanced functionality
- ๐ Feature Management - Granular control over every dashboard element
- ๐ Enhanced API Client - Bulletproof error handling and retry logic
- ๐ณ Zero-Config Docker - Complete containerized deployment with auto-setup
- ๐ Performance Monitoring - Built-in API health checks and status indicators
Experience a professional-grade statistics platform featuring:
- ๐ Top 10 Leaderboards with trophy displays and combat rankings
- ๐ฐ Credits System with unified pilot card interface
- ๐จโ
โ๏ธ Individual Pilot Profiles with dynamic statistics and combat charts - ๐ก๏ธ Squadron Management with member tracking (optional)
- ๐ฅ๏ธ Live Server Status with mission info and mod displays
- ๐ฏ Unified Search - Find pilots instantly across all pages
- โ DCSServerBot by Special K with REST API enabled
- โ PHP 8.3+ web server OR Docker
- โ Web hosting (shared hosting works Requires Port Forwarding Not All Hosts allow)
- Download the latest release and extract
- Upload the
dcs-stats/folder to your web server - Access
https://yourdomain.com/dcs-stats/ - Follow the setup wizard to create your admin account
- Configure your DCSServerBot API endpoint
# Clone the repository
git clone https://github.com/Penfold-88/DCS-Statistics-Dashboard.git
cd DCS-Statistics-Dashboard
# Start with Docker (that's it!)
docker compose up -d
# Access at http://localhost:8080The Docker setup automatically:
- โ Creates all required directories
- โ Sets proper permissions
- โ Initializes the database
- โ Configures the web server
- โ No manual configuration needed!
- Access your dashboard at
http://yourdomain.com/dcs-stats/ - Click "Start Setup" on the welcome screen
- Create your admin account (you'll be the Air Boss!)
- Configure DCSServerBot API:
- Enter your API URL (e.g.,
http://localhost:8080) - Test the connection
- Save configuration
- Enter your API URL (e.g.,
- Customize your dashboard:
- Choose a theme
- Enable/disable features
- Set your Discord link
๐ That's it! Your dashboard now displays real-time data from DCSServerBot.
A Full Howto on this can be found in the wiki https://github.com/Penfold-88/DCS-Statistics-Dashboard/wiki
Access the admin panel at /dcs-stats/site-config/ (NOT /admin!)
| Role | Dashboard Access | API Config | Updates | User Management | Themes |
|---|---|---|---|---|---|
| Air Boss | โ Full | โ | โ | โ | โ |
| Squadron Leader | โ View | โ | โ | โ Limited | โ |
| Pilot | โ View Only | โ | โ | โ | โ |
- Version Tracking - Know exactly what version you're running
- Update Notifications - Get alerts when updates are available
- One-Click Updates - Update directly from the admin panel
- Automatic Backups - Creates backup before every update
- Version History - Track all updates and changes
- Branch Support - Switch between stable and development branches
- Automatic Backups - Before updates and on schedule
- Manual Backups - Create snapshots anytime
- Version Metadata - Each backup includes version and branch info
- Easy Restore - One-click restore to any backup
- Auto-Cleanup - Keeps only the 5 most recent backups
- Download Backups - Export for external storage
Pre-built professional themes included:
- ๐ดโโ ๏ธ Sky Pirates - Dark theme with green accents
- ๐ Grim Reapers - High contrast red theme
- ๐ต Blue Angels - Navy blue professional theme
- ๐ Navy - Classic military styling
- ๐๏ธ Air Force - Light blue aviation theme
- ๐ฅ Danger Zone - Bold orange accents
- ๐ Night Ops - Ultra-dark stealth mode
- โ๏ธ Arctic - Cool blue winter theme
Our Docker setup is completely automated - just run and go!
# Clone the repository
git clone https://github.com/Penfold-88/DCS-Statistics-Dashboard.git
cd DCS-Statistics-Dashboard
# Start the container (that's it!)
docker compose up -d
# Access at http://localhost:8080โ
Directory Creation - All folders created with correct permissions
โ
File Permissions - Automatically set for web server access
โ
Database Init - User database created if not exists
โ
Config Templates - Default configs generated
โ
Health Checks - Monitors container status
โ
Auto-Restart - Recovers from crashes
โ
Volume Persistence - Data survives container updates
# View logs
docker compose logs -f
# Stop the container
docker compose down
# Update to latest version
docker compose pull
docker compose up -d
# Access container shell
docker compose exec dcs-stats-web bashEdit .env file:
# Change from default 8080
WEB_PORT=8090โ
Authentication System - Secure login with bcrypt password hashing
โ
Session Management - Secure session handling with CSRF tokens
โ
Role-Based Access - Granular permissions for every feature
โ
XSS Prevention - All inputs sanitized and escaped
โ
Rate Limiting - API abuse prevention with throttling
โ
Security Headers - CSP, XSS protection, clickjacking prevention
โ
Input Validation - Comprehensive data filtering
โ
Secure File Access - Protected directories and files
- Password strength requirements
- Failed login tracking
- Session timeout
- Activity logging
- IP-based restrictions (optional)
Control exactly what your community sees:
// Homepage Features
'home_server_stats' => true, // Server statistics cards
'home_top_pilots' => true, // Top 5 pilots chart
'home_mission_stats' => true, // Combat statistics
'home_player_activity' => true, // Activity overview
// Combat Statistics
'pilot_combat_stats' => true, // Kills, deaths, K/D ratio
'pilot_flight_stats' => true, // Takeoffs, landings, crashes
'pilot_session_stats' => true, // Last session data
'pilot_aircraft_chart' => true, // Aircraft usage charts
// Credits System
'credits_enabled' => true, // Enable credits system
'credits_leaderboard' => true, // Credits rankings
// Squadron Features
'squadrons_enabled' => true, // Squadron system
'squadron_management' => true, // Squadron admin tools
'squadron_statistics' => true, // Squadron stats- The admin panel is at
/dcs-stats/site-config/(NOT/admin) - First user to register becomes the Air Boss
- Default permissions are set during first setup
# Test API directly
curl http://localhost:8080/ping
# Check admin panel
Dashboard โ API Configuration โ Test Connection
# For Docker users
Use http://host.docker.internal:8080 on Windows/Mac
Use http://172.17.0.1:8080 on Linux- Clear browser cache (Ctrl+F5)
- Check theme selection saved in admin panel
- Verify CSS file permissions
- Check browser console for errors
- Check file permissions on web server
- Ensure backup directory is writable
extension=zipEnabled in yourphp.iniexample of a disabled extention is;extension=zip- Verify GitHub connectivity
- Check PHP error logs
- Manual update via Docker:
docker compose pull && docker compose up -d
DCS-Statistics-Dashboard/
โโโ ๐ dcs-stats/ # Main web application
โ โโโ ๐ site-config/ # Admin panel (NEW!)
โ โ โโโ ๐ index.php # Admin dashboard
โ โ โโโ ๐จ themes.php # Theme manager
โ โ โโโ ๐ update.php # Update system
โ โ โโโ ๐พ backups.php # Backup management
โ โ โโโ ๐ฅ users.php # User management
โ โ โโโ ๐ api/ # Admin API endpoints
โ โโโ ๐ index.php # Homepage
โ โโโ ๐ leaderboard.php # Combat rankings
โ โโโ ๐ฐ pilot_credits.php # Credits leaderboard
โ โโโ ๐จโโ๏ธ pilot_statistics.php # Pilot profiles
โ โโโ ๐ก๏ธ squadrons.php # Squadron system
โ โโโ ๐ฅ๏ธ servers.php # Server status
โ โโโ ๐จ themes/ # Theme files
โโโ ๐ณ Dockerfile # Production container
โโโ ๐ณ docker-compose.yml # Docker orchestration
โโโ ๐ README.md # This guide
We welcome contributions from the DCS community!
# Clone repository
git clone https://github.com/Penfold-88/DCS-Statistics-Website-Uploader.git
# Create feature branch
git checkout -b feature/amazing-feature
# Make changes and test
# Submit pull request- โ Follow existing code patterns
- โ Test responsive design
- โ Ensure security best practices
- โ Update documentation
- โ Include screenshots for UI changes
This project is licensed under the MIT License - see LICENSE file.
- DCSServerBot by Special K - The foundation of this system
- Sky Pirates Squadron - Original development and testing
- DCS Community - Continuous feedback and improvements
- Eagle Dynamics - For creating DCS World
โญ Star this repository if it helps your community!
๐ Report issues to help improve the platform
๐ฌ Share with other DCS server administrators
๐ฎ Join the community and showcase your dashboard
- ๐ฌ Discord Support - Get help and chat with the community
- ๐ Documentation
- ๐ Issue Tracker
- ๐ Live Demo
Transform your DCS server into a professional gaming platform today! ๐๏ธ