https://github.com/strifel/highscore
A simple Highscore Server (Saves the highscore of your game)
https://github.com/strifel/highscore
Last synced: 3 months ago
JSON representation
A simple Highscore Server (Saves the highscore of your game)
- Host: GitHub
- URL: https://github.com/strifel/highscore
- Owner: strifel
- Created: 2019-09-05T19:45:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-13T12:59:20.000Z (over 5 years ago)
- Last Synced: 2025-01-03T04:41:23.251Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Highscore
A simple php Highscore server
## WARNING
#### I DO NOT GUARANTEE FOR THE SAFETY OF THIS SOFTWARE.
#### I DO NOT PROVIDE ANY WARRANTY
#### THIS SOFTWARE DEFINITELY CONTAINS SECURITY ISSUES (i have not found, yet)
## Disclaimer
You should know that as long the client provides the score/any information there is no proof that it is the real score.
This Tool I just wrote for small usage with friends, where I accept if somebody cheats.
## Installation
1. Put this all on some server.
2. Let some webserver point to the directory, but forbid access to `private`
3. Create the `private/score` directory
4. For each game create a `.score` file with the name of the game in the score directory and write a 0 (or any start value) into the file.
5. Point your game clients to the installation
6. Write custom validation in `verify.php` and enable in `config.php`
## Game client configuration / "API"
- Only one endpoint `/`
- Game will be set by game parameter e.g. `?game=test`
- GET Method will get the Score, POST will post the score
- GET does not need more information
- POST does need the score and verify (if enabled) in body as form-data
## Troubleshooting
If you are getting some errors first make sure the user of the webserver has write and read access to the score directory.