Re: Server Status En Firefox
Este es el codigo que posteo the0ne sobre como está hecho el status.php
Habria que ver si se puede adaptar eso a alguna extension de firefox. Si es que alguien sabe como se hacen.
PD: puede que este obsoleta la ip, creo que es la que se usaba en 3dg.
Este es el codigo que posteo the0ne sobre como está hecho el status.php
PHP Code:
//Web Server Status v 1.4, Copyright 2002 By Ryan Schwiebert, visit [url=http://www.schwebdesigns.com/]Homepage of SchWeb Designs.com providing webpage design, custom websites, and computer training[/url]
//This script may be freely distributed providing all copyright headers are kept intact.
//Concept from:
//Abax Server Status v1.04, Copyright 2002 By Nathan Dickman, visit [url=http://www.NathanDickman.com/]Nathan Dickman - free php and perl scripts and fractal art[/url]
//Location of the live or dead server images
//Please change to your server specifications
$live = "img_home/status_on.jpg";
$dead = "img_home/status_off.jpg";
//The status checking script
$s_link = '200.51.255.50:7777';
list($addr,$port)= explode (':',"$s_link");
//Test the server connection
$churl = @fsockopen(server($addr), $port, $errno, $errstr, 20);
if (!$churl){
//echo $errstr;
header("Location: $dead");
}
else {
header("Location: $live");
}
function server($addr){
if(strstr($addr,"/")){$addr = substr($addr, 0, strpos($addr, "/"));}
return $addr;
}
PD: puede que este obsoleta la ip, creo que es la que se usaba en 3dg.
Comment