en fejl som jeg ikke kan fin
<?include("../checkban.php");
if(!$frame) {
?>
<title>Velkommen til NetSlottet!</title>
<script language="javascript">
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS)
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
if(EnableRightClick==1){ return true; }
else {return false; }
}
function mousehandler(e){
if(EnableRightClick==1){ return true; }
var myevent = (isNS) ? e : event;
var eventbutton = (isNS) ? myevent.which : myevent.button;
if((eventbutton==2)||(eventbutton==3)) return false;
}
function keyhandler(e) {
var myevent = (isNS) ? e : window.event;
if (myevent.keyCode==96)
EnableRightClick = 1;
return;
}
document.oncontextmenu = mischandler;
document.onkeypress = keyhandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;
</script>
<script src="js.js"></script>
<frameset rows="0%,100%" framespacing="0" border="0" frameborder="0">
<frame src="action.php?action=frame">
<frame src="chat.php?frame=true" scrolling="no">
</frameset><noframes></noframes>
<?
exit;
}
session_start();
if(!$username) {
print "
<script>
alert('Du er ikke logget ind.');
window.top.close();
</script>
";
exit;
}
include("../sql.php");
$select_info = mysql_query("SELECT onlinechat,figur,toj1,toj2,toj3,toj4,rum,vaerelse,felt,namecolor FROM users WHERE username = '$username'");
$row_info = mysql_fetch_array($select_info);
if($row_info[onlinechat]=="0") {
$select_info2 = mysql_query("SELECT id FROM rum WHERE(owner='$username')");
if(mysql_num_rows($select_info2)>0) {
$row_info2 = mysql_fetch_array($select_info2);
$rum=$row_info2[id];
} else {
$rum=1;
}
?>
<html>
<head>
<meta name="Generator" content="Stone's WebWriter 4">
<link rel="stylesheet" href="chat.css">
</head>
<body onload="myaction.document.location = 'action.php?action=skiftrum&rum=<?=$rum?>';" topmargin=0 leftmargin=0 oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<iframe id="myaction" name="myaction" class="float" style="visibility:hidden"></iframe>
<table id="loading" class="float" style="background-color:#DAECF6;z-index:1;height:100%;width:100%;font-size:30;font-weight:bold;text-align:center;vertical-align:middle">
<tr>
<td id="loadingbox">
Logger på...
</td>
</tr>
</table>
</body>
</html>
<?
exit;
} else {
$rum=$row_info[rum];
}
$select_rum = mysql_query("SELECT id,background,navn,vaerelser FROM rum WHERE(id='$rum')");
$row_rum = mysql_fetch_array($select_rum);
$select_id = mysql_query("SELECT id FROM chat ORDER BY id DESC LIMIT 1");
$row_id = mysql_fetch_array($select_id);
$vaerelser[] = "Stuen";
$vaerelser[] = "Toilet";
$vaerelser[] = "kabys";
$vaerelser[] = "Sovekammer";
if($row_info[vaerelse]) {
$row_rum[background] = strtolower($vaerelser[$row_info[vaerelse]]);
$row_rum[navn] = $vaerelser[$row_info[vaerelse]];
}
mysql_query("UPDATE users SET startfrom='$row_id[id]' WHERE(username='$username')");
?>
<html>
<head>
<link rel="stylesheet" href="chat.css">
<script>
<?
include("jscript.php");
?>
</script>
</head>
<body topmargin="0" leftmargin="0" onload="document.all['loadbar'].width='60%';init();load.location='load.php?action=init';countdown();move('<?=$row_info[felt]?>');" background="../v2/chat/design.gif" ondblclick="return false;" onselectstart="return false">
<table id="loading" class="float" style="background-color:#DAECF6;z-index:1;height:100%;width:100%;font-size:30;font-weight:bold;text-align:center;vertical-align:middle">
<tr>
<td id="loadingbox">Loading...<br>
<table cellspacing="0" cellpadding="0" style="border-style:solid;border-width:1;border-color:white;width:100">
<tr>
<td width="20%" id="loadbar" bgcolor="#F8FCFF"> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
<span class="float" style="top:22;left:3;font-size:10;font-weight:normal;width:156"><br>
- <a onclick="viewbox('Elevator');myaction.document.location='action.php?action=rumliste'">Skift Rum</a><br>
- <a onclick="window.open('changeclose.php', 'Skift_Tøj', 'scrollbars,Width=300,Height=350')">Skift Tøj</a><br>
- <a onclick="viewbox('Mine ting');myaction.document.location='action.php?action=listitems'">Mine Ting</a><br>
- <a onclick="viewbox('Venner');myaction.document.location='action.php?action=friends'">Venner</a><br>
- <a onclick="viewbox('Online brugere');myaction.document.location='action.php?action=onlinebrugere'">Online Brugere</a><br>
- <a onclick="document.all['tekstbox'].innerHTML = ''">Tøm Chatvinduet</a><br>
<?
$select_user = mysql_query("SELECT * FROM users WHERE username='$username'");
while($row = mysql_fetch_array($select_user)) {
if($row["STATUS"]=="admin") {
?>
- <a onclick="window.open('../admin.php', 'Admin', 'scrollbars,Width=300,Height=350')">Admin</a><br>
<?
}
if($row["username"]=="zenum") {
echo "
";
}
}
?>
- <a onclick="window.top.close();">Logud</a><br><br>
<div style="text-align:center"><script language="javascript" type="text/javascript">
<!--
document.write('<a href="http://www.chart.dk/ref.asp?ct=v003&id=56554" target="_blank">');
var myref; myref=document.referrer; if(top.document.referrer!=null) myref=top.document.referrer;
document.write('<img src="http://cluster.chart.dk/chart.asp?id=56554&style=0&secID=' + Math.random()*10000000 + '&ref=' + escape(myref) + '" border="0" alt="Chart.dk"><');
document.write('/a>');
//-->
</script>
<noscript>
<a href="http://www.chart.dk/ref.asp?ct=v003&id=56554" target="_blank"><img src="http://cluster.chart.dk/chart.asp?id=56554&style=0&secID=1" border="0" alt="Chart.dk"></a>
</noscript></div>
</span>
<span class="float" style="width:165;height:21;top:4;left:0;text-align:center">
<span style="color:black;filter:dropshadow(color:#DAECF6,offy:1,offx:1);width:100%;font-weight:normal">Velkommen <?=$username?></span>
</span>
<span id="rumbg" class="float" style="top:21;left:166;width:500;height:350;background-image:url('../gfx/rum/<?=$row_rum[background]?>.jpg')">
<span id="kasse" class="float" style="filter:alpha(opacity=30);width:60;height:70;top:999;left:999"><img src="../v2/chat/mark.gif"></span>
<span id="rumitems" class="float" style="width:480;height:100%"></span>
<span id="rumusers" class="float" style="width:480;height:100%">
<span id="you" class="float" style="width:60;height:70">
<img class="float" src="../gfx/figs/bodies/<?=$row_info[figur]?>.gif"><img class="float" src="../gfx/figs/toj/<?=$row_info[toj1]?>.gif"><img class="float" src="../gfx/figs/toj/<?=$row_info[toj2]?>.gif"><img class="float" src="../gfx/figs/toj/<?=$row_info[toj3]?>.gif"><img class="float" src="../gfx/figs/toj/<?=$row_info[toj4]?>.gif"><span class="names" style="color:<?=$row_info[namecolor]?>;"><?=$username?></span>
<span id="bubble<?=$username?>" class="bubble"><table cellspacing="0" cellpadding="0"><tr><td><img src="../gfx/bubble/top_left.gif"></td><td style="background-color:white;border-width:0;border-top-width:1;border-color:black;border-style:solid;font-size:1"> </td><td><img src="../gfx/bubble/top_right.gif"></td></tr><tr><td background="../gfx/bubble/left.gif" style="font-size:1"> </td><td id="bubbleb<?=$username?>" bgcolor="white" style="color:black"></td><td background="../gfx/bubble/right.gif"> </td></tr><tr><td valign="top"><img src="../gfx/bubble/bottom_left.gif"></td><td background="../gfx/bubble/bottom.gif" style="font-size:1"> </td><td><img src="../gfx/bubble/bottom_right.gif"></td></tr></table></span>
</span>
</span>
<span id="rumnavn" style="top:0;position:absolute;width:100%;text-align:center;color:yellow;font-weight:bold"><?=$row_rum[navn]?></span>
<script>document.all['loadbar'].width='40%';</script>
<?
$x=0;
$y=0;
for($i=1;$i<=72;$i++) {
$select_felt = mysql_query("SELECT id,type,value FROM felter WHERE(rum='$row_rum[id]' && felt='$i')");
$row_felt = mysql_fetch_array($select_felt);
print "<img id=\"felt$i\" src=\"../v2/chat/trans.gif\" class=\"float\" style=\"width:60;height:35;top:$y;left:".($x+10)."\""; if($row_felt[type]=="") { print " onmousedown=\"move('$i',".(10+$x).",$y)\""; } elseif($row_felt[type]=="javascript") { print " onclick=\"$row_felt[value]\""; } print " onmouseover=\"kasse('".(10+$x)."','$y')\">\n";
if($i%8==0) {$y+=35;
$x=-60;
}
$x+=60;
}
?>
<img id="felt99" src="../v2/chat/trans.gif" class="float" style="left:500;top:500";>
<span id="itemsbox" class="float" style="width:80;filter:alpha(opacity=90);visibility:hidden;z-index:2">
<table align="center" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td height="1"><img src="../v2/chat/box_top_left.gif"></td>
<td background="../v2/chat/box_top.gif">
<span id="itemsboxtitle" onmousedown="drags()" onmouseup="dragapproved=false" style="cursor:hand;padding-top:1;font-weight:bold;color:white;width:55;"></span>
<span style="color:white;text-align:right;width:15"><a onclick="document.all['itemsbox'].style.visibility='hidden'"><b>X</b></a></span>
</td>
<td><img src="../v2/chat/box_top_right.gif"></td>
</tr>
<tr>
<td background="../v2/chat/box_left.gif">
<td bgcolor="white"><span id="itemsboxtekst" style="color:black;height:100%;width:100%;text-align:center;"></span></td>
<td background="../v2/chat/box_right.gif">
</tr>
<tr>
<td height="1"><img src="../v2/chat/box_bottom_left.gif"></td>
<td background="../v2/chat/box_bottom.gif"></td>
<td><img src="../v2/chat/box_bottom_right.gif"></td>
</tr>
</table>
</span>
<span id="box" class="float" style="top:25;left:25;height:300;width:450;filter:alpha(opacity=90);visibility:hidden;z-index:2">
<table align="center" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td height="1"><img src="../v2/chat/box_top_left.gif"></td>
<td background="../v2/chat/box_top.gif">
<span id="boxtitle" style="padding-top:1;font-weight:bold;color:white;width:430;"></span>
<span style="color:white;text-align:right;width:10"><a onclick="document.all['box'].style.visibility='hidden'"><b>X</b></a></span>
</td>
<td><img src="../v2/chat/box_top_right.gif"></td>
</tr>
<tr>
<td background="../v2/chat/box_left.gif"></td>
<td bgcolor="white"><span id="boxtekst" style="color:black;height:282;width:100%;overflow:auto"></span></td>
<td background="../v2/chat/box_right.gif"></td>
</tr>
<tr>
<td height="1"><img src="../v2/chat/box_bottom_left.gif"></td>
<td background="../v2/chat/box_bottom.gif"></td>
<td><img src="../v2/chat/box_bottom_right.gif"></td>
</tr>
</table>
</span>
<?
if($row_rum[vaerelser]>($row_info[vaerelse]+1)) {
print "<span class=\"float\" style=\"z-index:2;right:5;top:5\"><a onclick=\"skiftrum($rum,($row_info[vaerelse]+1))\"><img alt=\"".$vaerelser[($row_info[vaerelse]+1)]."\" src=\"../gfx/chat/arrow_right.gif\"></a></span>";
}
if($row_info[vaerelse]!=0) {
print "<span class=\"float\" style=\"z-index:2;left:5;top:5\"><a onclick=\"skiftrum($rum,($row_info[vaerelse]-1))\"><img alt=\"".$vaerelser[($row_info[vaerelse]-1)]."\" src=\"../gfx/chat/arrow_left.gif\"></a></span>";
}
?>
<span id="discon" class="float" style="width:100%;text-align:center;color:red;font-size:18;font-weight:bold;visibility:hidden">Forbindelsen blev afbrudt<br><font size=1>Genstart chatten</span>
</span>
<span class="float" id="marquee" style="left:168;top:4;color:black">Velkommen til NetSlottet.com v2.0 - Du er i rummet: <?=$row_rum[navn]?> [<?=$row_rum[id]?>]</span>
<span id="tekstbox" class="float" style="overflow:auto;padding-left:3;padding-right:3;top:174;left:3;width:158;height:197">
</span>
<span id="status1" class="float" style="top:375;left:0;width:166;text-align:center"></span>
<span id="status2" class="float" style="top:375;left:3;width:160;filter:alpha(opacity=0)"></span>
<span id="countdown" class="float" style="bottom:5;right:5" align="right">Loading</span>
<span class="float" style="bottom:0;left:165"><form name="beskedform" action="action.php" target="myaction"><input type="hidden" name="action" value="send"><input name="mes" maxlength="100" style="border:1 solid #000000;background:transparent;width:400px;"></span>
<iframe id="myaction" name="myaction" class="float" style="visibility:hidden">
<iframe id="load" class="float" style="visibility:hidden">
</body>
</html>