Git Product home page Git Product logo

forge-media / gamestatus Goto Github PK

View Code? Open in Web Editor NEW
4.0 7.0 5.0 132 KB

GameStatus v2, is a simple but effective script which you can use to display the status of a multiple game servers. The script simply needs to be called at intervals you can set.

PHP 100.00%
php wordpress-plugin script rcon game-status serverstatus json server-monitoring counter-strike csgo source-engine minecraft

gamestatus's Introduction

GameStatus v2

By Jeremy Paton

Copyright (c) Forge Gaming Network 2015

GameStatus v2, is a simple but effective script which you can use to display the status of a multiple game servers. The script simply needs to be called at intervals you can set.

What is GameStatus v2

The script is divided into two main components:

  • serverstatus.php: The script which checks each listed server and produces a JSON file with the results. We recommend running this script via CRON every 5/10min.

  • serverstatusplugin.php: A Wordpress script (It is not actually a plugin), which displays the JSON file as an unstyled table.

Features

  • Simple & Lightweight script
  • Basic error checking
  • Simple text file stores server details
  • Displayed data is effectively cached
  • Displayed data is seperate from checker script
  • JSON file could potentially be hosted elsewhere
  • Display only selected games. E.g: CSGO or MC

Screenshots

How we use it

End Result

Requirments

  • php 5.4 minimum
  • Requires @fsockopen

Add a server to check

  • Open the serverlist.txt
  • Add server as new line follow styling!
GAME CODE SERVER NAME IP Port
MC Minecraft 192.168.1.1 25565
  • GAME CODE: Used in shortcode must be identical!

Installation

  • Drop onto server
  • CRONJOB the serverstatus.php to run every 5 min
  • Check serverstatus.json file is created!

Wordpress Installation

  • Add the following to your functions.php (Should be using Child-Theme!):
/* Add FGN ServerStatus Plugin */
include(WP_CONTENT_DIR . '/directory/serverstatusplugin.php');
add_shortcode( 'GetServers_sc', 'GetServers' );
  • Shortcode example, display all: [GetServers_sc]
  • Shortcode example, display specific game: [GetServers_sc game="MC"]

gamestatus's People

Contributors

forge-media avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gamestatus's Issues

File cs_functions is missing

Hi ! can you re-up the file cs_functions.php.
I get this error because is missing

PHP Warning: require(/var/www/library/source/cs_functions.php): failed to open stream: No such file or directory

Thanks you !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.