Surftimer-Web-Stats is Web with surftimer statistics.

Overview

Surftimer-Web-Stats v2

GitHub Repo stars GitHub forks GitHub contributors GitHub repo size GitHub release (latest by date including pre-releases) GitHub release (latest by date including pre-releases) GitHub

Surftimer-Web-Stats is Official Web with statistics for Surftimer-Official.

Features:

  • Dashboard with TOP players and recent Records
  • Top Players, Recent Records & Most Active Section
  • Maps Section (Complete Statistics)
  • Players Profiles (Complete Statistics)
  • !!Bootwatch Themes (Beta Version)
  • Languages (Comming Soon...)
  • Player Flags (Requires surftimer version: 1.1.2 or above)

Project Goals

Show all statistics on one place on the website and create best surf web statistics extension.

Installation and Requirements

Surftimer-Web-Stats works on latest Release of Surftimer-Official. (May be problems on Pre-Release versions).

Standalone

Requirements

  • Web Server
  • PHP7+
  • A MySQL Database with Surftimer-Official data (MySQL 5.7, MySQL 8+, MariaDB supported)
  • Maps must have selected tier and be added to server with sm_addnewmap(!addnewmap) command on server

Installation

  • Download the latest version from the release page here
  • Copy unziped files into your web site directory
  • Edit config.php

Docker

Requirements

Installation

Start by cloning the Git repo to a new folder on your computer.

git clone --depth 1 https://github.com/surftimer/SurfTimer-Web-Stats

If you are using Docker by itself you could use the following command.

docker build -t surftimer-web-stats:latest ./SurfTimer-Web-Stats
docker run -d \
  -e DB_HOST=database_host \
  -e DB_PORT=database_port \
  -e DB_USER=database_user \
  -e DB_PASS=database_pass \
  -e DB_NAME=database_name \
  -e "NAVBAR_TITLE=My Surf Server" \
  -p 8080:80 \
  surftimer-web-stats:latest

If you are instead using Docker Compose you could have the following in your docker-compose.yml file:

version: "3.9"
services:
  web-stats:
    build: ./SurfTimer-Web-Stats
    ports:
      - 8080:80
    environment:
      - DB_HOST=database_host
      - DB_PORT=database_port
      - DB_USER=database_user
      - DB_PASS_FILE=/run/secrets/database_pass
      - DB_NAME=database_name
      - "NAVBAR_TITLE=My Surf Server"
    secrets:
      - database_pass
secrets:
  database_pass:
    file: ./secrets/database_pass.txt

This example above also shows how you could make use of Docker Secrets safely store your passwords.

Environment Variables

Name Description Default
DB_HOST Host address of the database your_database_host
DB_PORT Port for connecting to the database 3306
DB_USER Username to log in to the database with your_database_username
DB_PASS Password to log in to the database with your_database_password
DB_PASS_FILE Docker Secrets file for the database's password None
DB_NAME Name of the database to use your_database_name
SETTINGS_THEME Colour theme to use default
SETTINGS_FAVICON Favicon to use for the site icon logo.svg
NAVBAR_LOGO Logo to use for the navbar logo.svg
NAVBAR_TITLE Title of the navbar Surf Stats
PLAYER_PROFILE_ICON Player profile icon FALSE
MAP_LINK_ICON Map link icon FALSE
CUSTOM_LINK_NAME Name of the first link in the navbar <i class="fas fa-globe-europe"></i> Website
CUSTOM_LINK_ADDRESS Address of the first link in the navbar https://github.com/surftimer/SurfTimer-Web-Stats
CUSTOM_LINK_NAME_2 Name of the second link in the navbar <i class="fab fa-discord"></i> Discord
CUSTOM_LINK_ADDRESS_2 Address of the second link in the navbar https://discord.surftimer.dev
CUSTOM_LINK_NAME_3 Name of the third link in the navbar None
CUSTOM_LINK_ADDRESS_3 Address of the third link in the navbar None
PLAYER_FLAGS Players Flags TRUE

Credits

CSS & JS

Other

You might also like...
Some Joomla! 4.x Web Services Api Examples and Experiments to raise the level of awareness of the huge potiental of Joomla! 4.x Web Services.

j4x-api-examples WHY? If you are a Joomla! developer or want to become a Joomla! developer there is a new resource for you The Official New Joomla! Ma

Extracts information about web pages, like youtube videos, twitter statuses or blog articles.
Extracts information about web pages, like youtube videos, twitter statuses or blog articles.

Essence is a simple PHP library to extract media information from websites, like youtube videos, twitter statuses or blog articles. If you were alread

Skosmos is a web-based tool providing services for accessing controlled vocabularies, which are used by indexers describing documents and searchers looking for suitable keywords.

Skosmos is a web-based tool providing services for accessing controlled vocabularies, which are used by indexers describing documents and searchers looking for suitable keywords.

Repository untuk kuliah rekayasa web ss 2021

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Visitor Badge for your Web or Github repository

visitor-badge Visitor Badge untuk Website atau Github repository, Dibuat dengan ❤ dan PHP native oleh Saya Demo Langsung Anda bisa me-refresh halaman

Web typing game

Welcome in Typing Game by Cards™ Introduction This game consist of typing 5 french expressions, the fatest you can ! Get Started Clone the repository

A web format for storing astronomy

astrodump A simple format I devised for storing my astrophotography. You can see it in action here: https://petabyt.dev/astro/ File Structure Alongsid

Projeto de um blog com funções de (criar, editar, deletar e dar update) em uma página web. Introdução ao Laravel 8.x.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

This project aims to facilitate the management of websites monitored by the blackbox exporter, via a web UI.

This project aims to facilitate the management of websites monitored by the blackbox exporter, via a web UI. The UI would allow to add/remove sites, groups, and even add different fields in the prometheus database.

Comments
  • SQL Query incompatible with version 1.1.2 of SurfTimer

    SQL Query incompatible with version 1.1.2 of SurfTimer

    Hello,

    SurfTimer updated to 1.1.2 some of your query are not up-to-date in dashboard_player.php at line 113. SQL SELECT COUNT(mapname) AS map_count, SUM(bonuses) AS map_bonuses_count, SUM(stages) AS map_stages_count FROM ck_maptier for exemple this refer to non existing field in ck_maptier. So that create error like this : PHP Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /var/www/surf/inc/pages/dashboard_player.php:113\nStack trace:\n#0 {main}\n thrown in /var/www/surf/inc/pages/dashboard_player.php on line 113, referer: https://surf.xxx-xxx.fr/dashboard-player.php?id=xxxxxx

    Best regards, Jordan.

    bug 
    opened by BigTwoProduction 13
  • PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted

    PHP Fatal error: Allowed memory size of 134217728 bytes exhausted

    When opening a map with a large .bsp file the page is blank and I get the following error in the logs: FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 77611008 bytes) in /var/www/web/inc/functions.php on line 195"

    Setup: ngnix + fastcgi

    opened by joscha0 2
  • Add Docker support.

    Add Docker support.

    Thought I'd add support for Docker to this as the rest of my server uses it. You may want to look into setting up this repo on the Github container registry if you end up incorporating this PR, as it'd be much easier than having to manually pull and build it yourself every time.

    opened by ramadan8 2
  • Flags picture is in error 404

    Flags picture is in error 404

    Hello,

    I notice that the flags are not displayed. In cause the name of the files are in capital letters whereas in the folder in github and on the server side they are in lower case. image

    image

    Sincerely, Jordan.

    opened by BigTwoProduction 1
Releases(v2.13)
  • v2.13(Dec 12, 2022)

  • v2.12(Dec 11, 2022)

    What's Changed

    • Minor fixes and general improvements

    New Contributors

    • @starsteN made their first contribution in https://github.com/surftimer/SurfTimer-Web-Stats/pull/70

    Full Changelog: https://github.com/surftimer/SurfTimer-Web-Stats/compare/v2.11...v2.12

    Source code(tar.gz)
    Source code(zip)
  • v2.11(Dec 9, 2022)

    • Minor fixes and general improvements
    • Added Map Image Preview
    • Added Option to show map mapper
    • Upgraded Bootstrap Version from 5.2.0 to 5.2.2
    • Upgraded Fontawersome version from 6.1.2 to 6.2.1
    • Upgraded jquery version from 3.6.0 to 3.6.1
    • Upgraded datatables version from 1.11.5 to 1.13.1

    Now, PHP 8.0 or above is required.

    Full Changelog: https://github.com/surftimer/SurfTimer-Web-Stats/compare/v2.10...v2.11

    Source code(tar.gz)
    Source code(zip)
  • v2.10(Oct 8, 2022)

  • v2.09(Oct 7, 2022)

  • v2.08(Sep 1, 2022)

  • v2.07(Aug 30, 2022)

    What's Changed

    • korean translation by @Tsukasa-Nefren in https://github.com/surftimer/SurfTimer-Web-Stats/pull/48
    • German translation by @Bara in https://github.com/surftimer/SurfTimer-Web-Stats/pull/52
    • Spanish Translation by Atomik0
    • fix mobile navbar toggle button by @joscha0 in https://github.com/surftimer/SurfTimer-Web-Stats/pull/53
    • Swedish Translation by @Vanheden in https://github.com/surftimer/SurfTimer-Web-Stats/pull/55

    New Contributors

    • @Tsukasa-Nefren made their first contribution in https://github.com/surftimer/SurfTimer-Web-Stats/pull/48
    • @joscha0 made their first contribution in https://github.com/surftimer/SurfTimer-Web-Stats/pull/53

    Full Changelog: https://github.com/surftimer/SurfTimer-Web-Stats/compare/v2.06...v2.07

    Source code(tar.gz)
    Source code(zip)
  • v2.0(May 8, 2022)

  • v1.17(Mar 20, 2021)

Owner
SurfTimer
The official team for the publicly contributed fork of ckSurf, now known as SurfTimer.
SurfTimer
Show caffeine intake stats for our office coffee machine

Coffee brewing statistics for the Spatie office Over at Spatie we drink a lot of coffee. How much coffee? We had no idea until we created this dashboa

Spatie 1 Nov 16, 2021
Just the stats I want, maybe you want them too

SKCDEV Easy Digital Downloads Stats This plugin adds a new "SKCDEV EDD Stats" report tab to the EDD Reports tabs. Just the stats I want, maybe you wan

Scott Kingsley Clark 3 Sep 8, 2022
A Pocketmine-MP (PMMP) leaderboard plugin that shows player statistics on a website.

WebLeaderBoard A Pocketmine-MP (PMMP) leaderboard plugin that shows all sorts of statistics on a website. Setup Guide To start using the plugin, downl

ItsMax123 6 Apr 5, 2022
Statistics of server growth

Growth Server growth statistics plugin by NhanAZ for PocketMine-MP Contacts You can contact me directly through the platforms listed below Platform Co

Thành Nhân 1 Dec 18, 2021
Server growth statistics plugin by NhanAZ for PocketMine-MP

General Server growth statistics plugin by NhanAZ for PocketMine-MP Contacts You can contact me directly through the platforms listed below Platform C

NhanAZ's PocketMine-MP Plugins 1 Dec 18, 2021
PHP package that provides functions for calculating mathematical statistics of numeric data

Statistics PHP package PHP package that provides functions for calculating mathematical statistics of numeric data. In this package I'm collecting som

Hi Folks! 289 Dec 27, 2022
PHP package that provides functions for calculating mathematical statistics of numeric data.

Statistics PHP package PHP package that provides functions for calculating mathematical statistics of numeric data. In this package I'm collecting som

Hi Folks! 290 Dec 29, 2022
KodExplorer is a file manager for web. It is also a web code editor, which allows you to develop websites directly within the web browser.

KodExplorer is a file manager for web. It is also a web code editor, which allows you to develop websites directly within the web browser.

warlee 5.5k Feb 10, 2022
Web Site developed for the subject of Web Development 2

Trabalho - DW2 Web Site developed for the discipline of Web Development 2. It has been developed to simulate a FIFA World Cup's system where you can C

Erik Gaborim 1 Feb 15, 2022
This project processes a small database with php all on a web server. This project uses XAMPP to run the web server and the database.

PHP-introduction This project processes a small database with php all on a web server. This project uses XAMPP to run the web server and the database.

Tyler Jacques 1 Jan 6, 2022