Skip to content

Instantly share code, notes, and snippets.

@pdrolima
Last active April 1, 2017 17:09
Show Gist options
  • Save pdrolima/c50eca8d37a84858ad48ae1c59269688 to your computer and use it in GitHub Desktop.
Save pdrolima/c50eca8d37a84858ad48ae1c59269688 to your computer and use it in GitHub Desktop.
Exemplo do Script de Status
<!-- COLOQUE NO TOPO DA INDEX DO SEU SITE -->
<?php
require_once("status-server.php");
$serverStatus = new ServerStatus();
?>
<!-- COLOQUE NA PARTE DE STATUS DO SEU SITE, SE JÁ EXISTE O TEXTO, REMOVA-O -->
<?php
echo "Status do servidor: $serverStatus->server_is_online <br />"; // Retorna se o servidor está online ou offline
echo "Contas registradas: $serverStatus->registered_accounts <br />"; // Retorna o número de contas cadastradas
echo "Jogadores Online: $serverStatus->players_online ($serverStatus->players_online_record)"; // Retorna o numero de jogadores online
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment