diff --git a/New Text Document.txt b/New Text Document.txt
deleted file mode 100644
index e69de29..0000000
diff --git a/index.php b/index.php
index 43dbd72..d78a0d8 100644
--- a/index.php
+++ b/index.php
@@ -1,34 +1,23 @@
Server ".$s."
".$GLOBALS['S_HOST'][$s].":".$GLOBALS['S_PORT'][$s]."
":"".$GLOBALS['S_HOST'][$s].":".$GLOBALS['S_PORT'][$s]."
";
- if($GLOBALS['CHK_SERVER'][$s]){$info = $status->getServerInfo($GLOBALS['S_HOST'][$s], $GLOBALS['S_PORT'][$s]);}
+ echo "".$GLOBALS['ServerList'][$s]->NAME."
".$GLOBALS['ServerList'][$s]->HOST.":".$GLOBALS['ServerList'][$s]->PORT."
";
+ if($GLOBALS['ServerList'][$s]->PING){$info = $status->getServerInfo($GLOBALS['ServerList'][$s]->HOST, $GLOBALS['ServerList'][$s]->PORT);}
if($info == false){echo "OFFLINE
";}
else{
echo "ONLINE
";
@@ -62,8 +51,8 @@
|
|
- Wonderbit |
- Blockgame Server |
+ |
+ |
diff --git a/minecraft_status.php b/minecraft_status.php
index 62fffae..ca893b0 100644
--- a/minecraft_status.php
+++ b/minecraft_status.php
@@ -1,5 +1,15 @@
NAME = $NAME; $this->HOST = $HOST; $this->PORT = $PORT; $this->PING = ping($HOST, $PORT, 0.5);
+ }
+
+ function ping($host, $port, $timeout){return fSockOpen($host, $port, $errno, $errstr, $timeout);}
+ }
class ServerStatus {
private $status = array();
diff --git a/styles.css b/styles.css
index ceacb0c..88f4662 100644
--- a/styles.css
+++ b/styles.css
@@ -5,7 +5,7 @@ a:visited{color:#8888EF;}
a:hover{color:#8888EF;}
a:active{color:#8888EF;}
body {background-color:#222; color:#CCC; margin:0;}
-.banner{display:block;height: 100px;}
+.banner{display:block;}
.banner img {
float: left;
width: 100px;