Skip to content

Instantly share code, notes, and snippets.

View pdrolima's full-sized avatar
🚩
I may be slow to respond.

Pedro pdrolima

🚩
I may be slow to respond.
  • Up Budget
  • Sao Paulo, Brazil
  • 19:41 (UTC -03:00)
View GitHub Profile
<?php
/*
* @author Pedro
*/
$host = "localhost";
$user = "root";
$pass = "";
$banco = "gc";
@pdrolima
pdrolima / exemplo.php
Last active April 1, 2017 17:09
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