Hello RZ!
I decided to develop a script that show some infos about Server Status. Currently, this script show:
Cons about this script is that you will don't need to break your mind trying to adapt into your current layout. You just need to pass the property and you're done. =)
Download here: View attachment server-status_en.rar
How to use:
1 - Open the ConfigWrapper.php and add your data. (MySQL data, IP/Port of your server, etc).
2 - Import the "online_record.sql"
3 - In your site, add at the top:
And to show in your site. You just need to do as follow:
Very simple. If you want to improve and/or have any suggestions or requests to the script. Please do this below and hit the Like Button!
I decided to develop a script that show some infos about Server Status. Currently, this script show:
- Server Status: Online or Offline
- Registered Accounts
- Players Online / Record of Players Online
Cons about this script is that you will don't need to break your mind trying to adapt into your current layout. You just need to pass the property and you're done. =)
Download here: View attachment server-status_en.rar
How to use:
1 - Open the ConfigWrapper.php and add your data. (MySQL data, IP/Port of your server, etc).
2 - Import the "online_record.sql"
3 - In your site, add at the top:
PHP:
<?php
require_once("status-server.php");
$serverStatus = new ServerStatus();
?>
And to show in your site. You just need to do as follow:
PHP:
<?php
echo "Server Status: $serverStatus->server_is_online <br />";
echo "Registered Accounts: $serverStatus->registered_accounts <br />";
echo "Players Online: $serverStatus->players_online ($serverStatus->players_online_record)";
?>
Very simple. If you want to improve and/or have any suggestions or requests to the script. Please do this below and hit the Like Button!
Attachments
You must be registered for see attachments list