iBots-Hub Info
include("testport.php");
$portopen = testPort();
if ($portopen == 'false') {
die("SpBot is currently offline. Please try again later.");
}
function getData($whatData) {
$fp = @fsockopen("210.50.99.105", "3387", $errno, $errstr, 2);
@fwrite($fp, $whatData);
while (!@feof($fp)) {
$stream .= @fgets($fp, 2048);
}
return $stream;
}
$uptime = getData("uptime");
$nick = getData("nick");
$conuptime = getData("conuptime");
$sysuptime = getData("sysuptime");
$status = getData("status");
$numchans = getData("numchans");
echo "$uptime";
echo "nick = $nick";
echo "conuptime = $conuptime";
echo "sysuptime = $sysuptime";
echo "status = $status";
echo "numchans = $numchans";
?>