Replace this code in:
includes/status.php
includes/status.php
PHP Code:
<?php
//Web Server Status v 1.4, Copyright 2002 By Ryan Schwiebert, visit http://www.schwebdesigns.com/
//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 http://www.NathanDickman.com/
//Location of the live or dead server images
//@author Julio Montoya <[email protected]> Beeznest - Fixing the url/port management
//Please change to your server specifications
$live = "../themes/icons/lightbulb.png";
$dead = "../themes/icons/lightbulb_off.png";
//The status checking script
//meddle at your own risk!
//check for port number, default is 80
$link = $_GET['link'];
$s_link = basename($link);
list($addr,$port)= explode (':',"$s_link");
if (empty($port)){
$port = 80;
}
//Test the server connection
$churl = @fsockopen($addr, $port, $errno, $errstr, 5);
if (!$churl){
//echo $errstr;
header("Location: $dead");
} else {
header("Location: $live");
}
?>