Lightweight PHP frontend to browse and download CS:S demo files.
This project is linked to srcdslab/autofastdl, which generates/synchronizes files on the FastDL side.
autofastdlpopulates demo directories (css_ze/demos,css_zr/demos).Demoprovides the web interface to browse and download demos.- Download links target
https://demos.nide.gg/....
- Lists demo archives for whitelisted servers (
css_ze,css_zr). - Parses filenames to display map, start date, and size.
- Validates/sanitizes user input through
DemoSecurity.
index.php- entry point.init.php- include/constants bootstrap.includes/security.php- server/file validation, HTML escaping, security logging.pages/server.php- listing endpoint (POST server).css_ze/demos,css_zr/demos- demo directories.style/- frontend assets.
From the Demo/ directory:
php -S 127.0.0.1:8000 -t .Then open http://127.0.0.1:8000/.
Accepted formats:
auto-YYYYMMDD-HHMMSS-mapname.demauto-YYYYMMDD-HHMMSS-mapname.dem.bz2
On the autofastdl side, the main configuration is in config.json (see examples in the upstream repo):
config.example.fastdl.jsonconfig.example.demos.jsonconfig.example.torchlight.json
Useful parameters for demos:
threads,debug,dockerautoremove::*(local/remote retention, autoclean, priority)autoremove::after_upload(remove local file after upload)
- Only whitelisted server keys are accepted.
- Filenames are validated before disk access.
- Security events are logged to
Demo/security.log. - Local secrets are ignored through
.gitignore(.env*,config.local.php,*secret*.php, etc.).
See also: OPEN_SOURCE.md.