Hey,
Does anyone have that thingy (widget type thingy) that is on a website and says if Zone 1,2,3 are online?
If so this would be amazing if I could have it :)
Thank you :)
Printable View
Hey,
Does anyone have that thingy (widget type thingy) that is on a website and says if Zone 1,2,3 are online?
If so this would be amazing if I could have it :)
Thank you :)
Quote:
<div class="title">Server Status</div>
<p>
<?php
function serverStatusCheck( $ip, $port ) { $fp = @fsockopen($ip, $port, $errno, $errstr,1); if (!$fp) { return '<font color="red">Offline</font>'; } else { return '<font color="green">Online</font>'; fclose($fp); } }
?>
<b>Login:</b> <?php echo serverStatusCheck( 'public ip', '9010' ); ?><br />
<b>World:</b> <?php echo serverStatusCheck( 'public ip', '9110' ); ?><br />
<b>Zone #1:</b> <?php echo serverStatusCheck( 'public ip', '9120' ); ?><br />
<b>Zone #2:</b> <?php echo serverStatusCheck( 'public ip', '9122' ); ?><br />
<b>Zone #3:</b> <?php echo serverStatusCheck( 'public ip', '9124' ); ?><br />
</p>
^that? -found it in the old Athens site-
ooo been looking for that thanks :)
I think that is it :) thank you!
np and @person who asked for help, wont let me answer because of my post count so I edited the fixed version into my other post.