Last active
April 1, 2017 17:09
-
-
Save pdrolima/c50eca8d37a84858ad48ae1c59269688 to your computer and use it in GitHub Desktop.
Exemplo do Script de Status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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