(01-30-2018, 01:54 PM)CMs222 Wrote: My Set Up
https://testing123.ml
----------------------------------------------------------------------------------------------------------------------
Here is another example of how you can use the service status: https://www.mach-hosting.com/
On the top of my site Wink...
>>>>
what wp theme & Server staus template you using for frontend of website @TGates ?
I refuse to use wordpress. I created the site myself using bootstrap as a css base. Same with the server status.
I just used basic php, html and css for the status block:
PHP Code:
<?php
/**
* Remote Service Display module for ZPanelX (uses XMWS)
* Written by Bobby Allen, 05/04/2012.
*/
require_once('server_stats/conf.php');
require_once('server_stats/lib/servicestatus.inc.php');
?>
<div class="header-table">
<table class="server-info">
<tr>
<td>Service Status</td>
<td>
<?php if ($response_array['xmws']['content']['portstatus']['web'] == 1) { ?>
<span style="color:green">Web</span>
<?php } else { ?>
<span style="color:red">Web</span>
<?php } ?>
</td>
<td>
<?php if ($response_array['xmws']['content']['portstatus']['ftp'] == 1) { ?>
<span style="color:green">FTP</span>
<?php } else { ?>
<span style="color:red">FTP</span>
<?php } ?>
</td>
<td>
<?php if ($response_array['xmws']['content']['portstatus']['smtp'] == 1) { ?>
<span style="color:green">SMTP</span>
<?php } else { ?>
<span style="color:red">SMTP</span>
<?php } ?>
</td>
<td>
<?php if ($response_array['xmws']['content']['portstatus']['pop3'] == 1) { ?>
<span style="color:green">POP3</span>
<?php } else { ?>
<span style="color:red">POP3</span>
<?php } ?>
</td>
<td>
<?php if ($dnsresponse_array['xmws']['content']['portstatus']['status'] == 1) { ?>
<span style="color:green">DNS</span>
<?php } else { ?>
<span style="color:red">DNS</span>
<?php } ?>
</td>
<td>
<?php if ($response_array['xmws']['content']['portstatus']['mysql'] == 1) { ?>
<span style="color:green">MySQL</span>
<?php } else { ?>
<span style="color:red">MySQL</span>
<?php } ?>
</td>
<td>
<span style="color:green">Online</span> | <span style="color:red">Offline</span>
</td>
</tr>
</table>
</div>
PHP Code:
.server-info table, th, td {
border: 1px solid # 666; // remove space after #
border-collapse: collapse;
font-size: 10px;
padding: 2px;
text-align: center;
}