About Devilish Services Stats
This site is powered by BAB.Stats Chronos-V3, the modern continuation of Neos-Chronos-V2 that brings the classic Delta Force: Black Hawk Down & Team Sabre scoreboard experience into today's PHP 8 / MariaDB 11 hosting stacks while keeping the familiar BAB.Stats look and feature set.
What the modules do
| Module | Primary focus |
|---|---|
start | Landing board with highlights, live stats import hooks, and navigation pointers. |
kill_stats / game_stats / goal_stats | Kill/death leaderboards, aggregate game metrics, and objective scoring. |
weapon_stats / weapon_details / wpn_awards | Weapon usage, per-weapon awards, and detail drilldowns. |
map_stats / map_details | Map performance, win rates, and weapon effectiveness per terrain. |
squad_stats / squad_details | Squad rankings, team performance, and squad-vs-squad comparisons. |
player_stats / game_details | Player-specific career summaries plus recursive game detail views. |
servers | Server status/history and archived logs. |
compare_stats / ranks / awards | Head-to-head comparisons, ranks, and award tracking. |
faq / search / search_suggest | Help center, text search, and live suggestion endpoint for quick player lookup. |
Data pipeline & helpers
functions.php provides the database helpers that resolve players, games, weapons, maps, and server history records plus an ImportStats() entry point for ingesting raw statistics. status_report.php and status_update.php synchronize live server stats, while stats_import.php and sync_backups.php form part of batch jobs.
Common utilities
common.php centralises DB connection helpers, pagination, tilde-color formatting, and UTF-8/legacy encoding utilities.
Legacy compatibility
compat.php polyfills mysql_*, persistent connections, and ereg_replace, ensuring Chronos runs cleanly on PHP 8 while keeping legacy scripts functional.
Templating
phemplate_class.php renders the snippets under templates/ (e.g., main.php, start.php, kill_stats.php, about.php) so presentation stays separate from backend logic.
Administration & security
admin.php protects the backend with auth/admin_auth.php, secure sessions, rate limiting, and audit logging. Admin views load modules from modules/admin/ (awards, players, maps, squads, servers, maintenance, user management, templates, weapons, etc.) and support AJAX/iframe flows.
Configuration lives in config.php, which pulls in chronos_config.php from /home/devilishservices/connections/ or a local .env, sets table prefixes, and enforces UTF-8 headers. security.php hardens file uploads and admin endpoints.
Supporting scripts & tooling
Python helpers like apply_nav.py, insert_slug.py, line_follow.py, and the many tmp_*.py/tmp_*.php scripts assist with migrations, FAQ updates, or maintenance.
Assets & templates
templates/ stores logos, navigation icons (online.gif/offline.gif), and layout fragments referenced by backend modules.
Uploads & backups
upload/ temporarily holds incoming stats files, while backups/ plus sync_backups.php expose exportable dumps for recovery.
How to extend Chronos
New public pages follow the pattern: drop a controller in modules/, add a template under templates/, and reuse helpers from functions.php & common.php. Admin extensions live under modules/admin/ alongside their template fragments. Keep secrets in chronos_config.php/.env so deployments never expose credentials.