ich habe hier ein Problem bei dem ich absolut nicht klar sehe.
In WBB kann man ja eigene Portalboxen erstellen für die Portalseite.
Ich habe da eine WoW Server Statusbox erstellt, allerdings wird mir dann die Portalseite nicht mehr angezeigt, stattdessen kommt eine Fehlermeldung wo ich nicht klar sehe was das Problem sein soll, daher poste ich das ganze jetzt einfach mal hier, in der Hoffnung das ihr mir dabei weiter helfen könnt.
Hier erst mal der PHP Code der Statusbox:
PHP Code:
<center>
<?php
$host = 'localhost'; // Die Host Adresse
$dbuser = 'user'; // Der Benutzername
$dbpass = 'password'; // Passwort
$db_characters = 'char'; // Character DB
$db_logon = 'login'; // Logon bzw Auth DB
$serverport ='8085'; // Port des Worldservers
$logonport ='3724'; // Port des Logon Servers
$realmname ='Realmname: '; //Worldservername
$logonname ='Login Server: '; // Logonservername
$conn = mysql_connect($host, $dbuser, $dbpass) or die ('Error connecting to mysql');
mysql_select_db($db_characters) or die(mysql_error());
$Sqlpl = 'SELECT online FROM characters WHERE online = 1';
$resultpl = mysql_query($Sqlpl);
$rowpl = mysql_num_rows($resultpl);
$sql_h = "SELECT * FROM characters WHERE
race=2 AND online =1
OR race=5 AND online =1
OR race=6 AND online =1
OR race=8 AND online =1
OR race=10 AND online =1";
$result_h = mysql_query($sql_h);
$row_h = mysql_num_rows($result_h);
$sql_a = "SELECT * FROM characters WHERE
race=1 AND online =1
OR race=3 AND online =1
OR race=4 AND online =1
OR race=7 AND online =1
OR race=11 AND online =1";
$result_a = mysql_query($sql_a);
$row_a = mysql_num_rows($result_a);
mysql_select_db("$db_logon") or die(mysql_error());
$sql_gm = "SELECT * FROM `account`, `account_access` WHERE account_access.gmlevel >='1' AND account.online ='1' AND (account.id = account_access.id)";
$result_gm = mysql_query($sql_gm);
$row_gm = mysql_num_rows($result_gm);
$uptime = mysql_query ("select max(`starttime`) from `uptime` WHERE realmid = 1");
$uptime = time()-mysql_result ($uptime,0);
$uptime = intval ($uptime/60);
$min = $uptime;
$uptime = intval ($uptime/60);
$hours = $uptime;
$uptime = intval($uptime/24);
$days = $uptime;
echo " <strong><font size=2 color=#fffff>$logonname</font></strong>";
$fp = @fsockopen ($host,$logonport,&$errno,&$errstr,2);
if ($fp)
{ print "<img src='http://bloodhoof.de/forum/wcf/icon/onlineSS.png'>"; }
else {print "<img src='http://wow-studio.net/pictures/mmoarena/off.png'>"; }
@fclose($fp);
echo '<br>';
echo "<strong><font size=2 color=#fffff>$realmname</font></strong>";
$fp = @fsockopen ($host,$serverport,&$errno,&$errstr,2);
if ($fp)
{ print "<img src='http://bloodhoof.de/forum/wcf/icon/onlineSS.png'>"; }
else {print "<img src='http://wow-studio.net/pictures/mmoarena/off.png'>"; }
@fclose($fp);
echo "<br>";
echo "<font size=2 color=#fffff>Uptime: ".floor($min/60)." Stunden</font>";
echo "<br>";
echo "<strong><font size=2 color=#fffff>Gamemaster online: $row_gm</font></strong>";
echo "<br>";
echo "<strong><font size=2 color=#fffff>Spieler online: $rowpl</font></strong>";
echo "<br>";
echo "<font color='#03418e'>Allianz</font> <font color='a70101'>Horde</font>";
echo "<br>";
echo "<img src='http://bloodhoof.de/forum/wcf/icon/icon_alliS.png'> <img src='http://bloodhoof.de/forum/wcf/icon/icon_hordeS.png'>";
echo "<br>";
echo "<font color='#03418e'>$row_a</font> <font color='a70101'>$row_h</font>";
?>
</center>
Dazu bekomme ich dann aber diese Fehlermeldung:






