Hi im gonna let you see how to make your own server status with your own images
First you need a basic php
Code:
<?php
$live = "ONLINE IMAGE";
$dead = "OFFLINE IMAGE";
$server = $_GET['server'].":";
$s_server = str_replace("::", ":", $server);
list($addr,$port)= explode (':',"$s_server");
if (empty($port)){
$port = 90;
}
$churl = @fsockopen(server($addr), $port, $errno, $errstr, 20);
if (!$churl){
header("Location: $dead");
}
else {
header("Location: $live");
}
function server($addr){
if(strstr($addr,"/")){$addr = substr($addr, 0, strpos($addr, "/"));}
return $addr;
}
?>
Ok now change some things
Change ONLINE IMAGE with an image link that you hosted like this
Code:
http://klabbohotel1.woelmuis.nl/on.png
And change OFFLINE IMAGE with your offline image like this
Code:
http://klabbohotel1.woelmuis.nl/off.png
Then host your php like on 110mb or woelmuis.nl for the dutch people
ok now we go to the html part
You need this code
Code:
{Hotel name} is now :<img src="PHP LINK HERE?dns=IP HERE&port=PORT HERE&style=13" border="0" /></a>!
Change some things here:
PHP LINK HERE with the link where's the php that you hosted
IP HERE the ip of your hotel there
PORT HERE the port of your hotel there
Now you have to put the code on your site in html
and you will see it works
That was my tut!
Thx