Ich habe auf meiner Homepage keiner Spieler Online anzeige.
Deswegen wollte ich euch mal fragen ob jemand wen er zeit hatt mir das einbauen kann.
Hier ist das Script für die Online anzeige ,
PHP Code:
<?PHP
$timeout = "2";
$names = array("Channel 1","Channel 2","Channel 3","Channel 4");
$ports = array("3306","13070","80","80"); // PORTS HIER EINTRAGEN
if (!Cache::cacheAvaible("serverstatus", 1200)){
$statuscache = '<table class="serverstatus" cellspacing="0">';
for ($x = 0; $x < count($ports); $x++){
if (@fsockopen(SQL_HOST, $ports[$x], $errno, $errstr, $timeout)){
$statuscache .= '<tr><td>'.$names[$x].'</td><td><img src="img/layout/on.png"/></td></tr>';
}
else{
$statuscache .= '<tr><td>'.$names[$x].'</td><td><img src="img/layout/off.png"/></td></tr>';
}
}
$statuscache .= '</table>';
echo $statuscache;
Cache::cacheIt("serverstatus", $statuscache);
}
else{echo Cache::getCreateTime("serverstatus");}
?>
Wäre echt nett <.<






