Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 05:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Problem bei WBB Portal

Discussion on Problem bei WBB Portal within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2013
Posts: 11
Received Thanks: 0
Problem bei WBB Portal

Hallo zusammen,

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 
"&nbsp; &nbsp;<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> &nbsp; &nbsp; &nbsp; &nbsp; <font color='a70101'>Horde</font>";
echo 
"<br>";
echo 
"<img src='http://bloodhoof.de/forum/wcf/icon/icon_alliS.png'> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src='http://bloodhoof.de/forum/wcf/icon/icon_hordeS.png'>"
echo 
"<br>";
echo 
"<font color='#03418e'>$row_a</font> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <font color='a70101'>$row_h</font>";
?>
</center>

Dazu bekomme ich dann aber diese Fehlermeldung:
Bloodhoof-WoW is offline  
Old 03/14/2013, 16:29   #2
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87
Quote:
Fatal Error: "Hier kommt die Pfadangabe zur Datei die den Fehler ausgelöst hat" (Hier steht die Zeilennummer) : "Hier steht die Erklärung des Fehlers"
d.h. der gepostete Quellcode hat nix mit der Fehlermeldung im Screenshot zutun.
kissein is offline  
Old 03/14/2013, 16:33   #3
 
elite*gold: 0
Join Date: Feb 2013
Posts: 11
Received Thanks: 0
das ist ja eben der code aus dieser datei

in zeile 56 steht:
$fp = @fsockopen ($host,$logonport,&$errno,&$errstr,2);

OK hat sich erledigt, der Fehler war das &
keine ahnung wie sich das da rein geschmuckelt hat ^^
Bloodhoof-WoW is offline  
Reply


Similar Threads Similar Threads
Portal 2 Problem
06/08/2011 - Technical Support - 7 Replies
Wenn ich bei Portal2 auf Coop-Modus drücke ladet es kurz und beendet sich. HilfE?
Portal Problem
01/29/2011 - Metin2 Private Server - 7 Replies
Hey Leute. Ich arbeit jetzt seit schon zum 20 mal an einem P-Server mit und bis jetzt ist mir das Problem noch nicht untergekommen: -> Beispiel: Ich bin im Ot und will wieder ins gelbe Reich zurück über das normale Portal. Nunja. Ich kann mich hinstellen wo ich will, ich werde nicht teleportiert. Woran könnte das liegen? Das gleiche problem hab ich bei Map1 Gelb auf Map2 Gelb. Funktioniert ebenfalls nicht.
Portal Problem
05/02/2010 - Metin2 Private Server - 2 Replies
Hi Leute, ich weiss zwar nicht ob ich hier richtig bin aber ich denke schon xD Und zwar hab ich ein Portal problem, Ich hab mir paar neue Quests eingefügt, dannach halt rebootet usw. (was man halt da so macht). Alles schön und gut ging auch aber als ich ot ging und durch das portal zurück wollte ging es nix es steht zwar da ((Gebiet_Yongan)) aber das portal ist einfach weg.Jetzt weiss ich nicht ob das an den Quests liegt oder nicht. Aufjedenfall geht der normale Teleporter noch. Thx für...
Portal Problem :(
06/19/2009 - Metin2 Private Server - 8 Replies
Hallo, also ich hab das Problem wenn ich durch Portal gehen dann wird alles Schwarz, und ich sehe nix mehr aber ich kann bzw aura an machen und höre auch sein schrei ^^. würde mich sehr Freuen wenn ihr mir Helfen könnte :) mfg LiL
[Help]Portal Problem
09/24/2008 - CO2 Private Server - 10 Replies
Hi to all, I have a problem with my server, sometimes player go to portals and get stuck in it, anybody knows how to fix it, i can't figure it out. thanks!



All times are GMT +1. The time now is 05:21.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.