und das steht bei status.php on line 26 27 28
Status.php
PHP Code:
<?PHP
$serverip = "localhost";
$ip = gethostbyname($serverip);
$portlist=array(3306,11003, 13000, 15000 ); // Den port den ihr sehen wollt
$status=array("Mysql Server: ", "Login Server: ", "Char Server: ", "World Server: "); // Bezeichnung
$i=0;
foreach ($portlist as $port){
echo "".$status[$i]."";
$online = @fsockopen($ip, $port, $errno, $errstr, 1);
if (!$online)
{
echo "<span style='color:red;'>Offline</span><br>"; #
}
else
{
echo "<span style='color:green;'>Online</span><br>";
}
@fclose($online);
$i++;
}
?>
<img src="./pictures/trennlinie.png">
<?PHP
echo "Exp Rate: "; echo $serverSettings['exp_rate']; echo "<br>";
echo "Yang Rate: "; echo $serverSettings['yang_rate']; echo "<br>";
echo "Item Drop Rate: "; echo $serverSettings['drop_rate']; echo "<br>";
?>
<img src="./pictures/trennlinie.png">
<?PHP
mysql_select_db("player");
$output = mysql_query("SELECT COUNT(*) as count FROM player WHERE DATE_SUB(NOW(), INTERVAL 5 MINUTE) < last_play;");
$online_count = mysql_fetch_object($output)->count+1;
echo "Spieler Online: $online_count <br>";
?>
<?PHP
mysql_select_db("player");
$sqlCmd = "SELECT COUNT(*) as count FROM player.player WHERE DATE_SUB(curdate(), INTERVAL 0 day) < last_play;";
$gesamt_online = mysql_query($sqlCmd,$sqlServ);
$gesamt_online = mysql_fetch_object($gesamt_online)->count+1;
echo "Heute Gesamt Online: $gesamt_online ";
?>






