MortenFN - Det kan da ikke kun være LoginScriptet der fejler noget, det må vel også være scriptet efter man logger på - anyway her er scriptet til login!
</SCRIPT>
<TITLE>Web-Zone.dk</TITLE>
<?
require(\"functions.inc\");
CheckTime();
if ($action == \"login\") {
$nick = parsenick($nick);
$sesid = findSesID();
$id = findID();
$color = CheckColor($color);
if (!$color) { $color = \"FFFFFF\"; }
chatlogin($nick,$id,$sesid,$pass,$color);
print \"<html><head><title> - Chat - </title></head>\\n\";
print \"<frameset rows=\\\"20, 115, 60\\\" border=\\\"0\\\" frameborder=\\\"3\\\">\\n\";
print \"<frame src=\\\"topic.php3?sesid=\".$sesid.\"&id=\".$id.\"\\\" name=\\\"topic\\\" marginwidth=\\\"1\\\" marginheight=\\\"1\\\" scrolling=\\\"no\\\" frameborder=\\\"1\\\" border=\\\"1\\\" noresize>\\n\";
print \"<frame src=\\\"top.php3?sesid=\".$sesid.\"&id=\".$id.\"\\\" name=\\\"top\\\" marginwidth=\\\"1\\\" marginheight=\\\"1\\\" scrolling=\\\"auto\\\" frameborder=\\\"1\\\" border=\\\"1\\\" noresize>\\n\";
print \"<frame src=\\\"bottom.php3?sesid=\".$sesid.\"&id=\".$id.\"&nick=\".rawurlencode($nick).\"&color=\".$color.\"\\\" name=\\\"bottom\\\" marginwidth=\\\"1\\\" marginheight=\\\"1\\\" scrolling=\\\"auto\\\" frameborder=\\\"1\\\" border=\\\"1\\\" noresize>\\n\";
print \"</frameset>\\n\";
print \"</html>\\n\";
}
Else {
print \"<html><head><title>Web-Zone.dk chatten</title></head>\\n\";
print \"<body bgcolor=\\\"153580\\\" text=\\\"FFFFFF\\\" link=\\\"#66CC33\\\" alink=\\\"#66CC33\\\" vlink=\\\"#66CC33\\\">\\n\";
print \"<FONT face=arial color=red size=4>Velkommen til vores Chat Login Side !!</FONT><br><br>\";
print \"<font face=\\\"arial\\\" size=\\\"2\\\">\\n\";
print \"<font size=\\\"+1\\\" color=#0099ff><b>Login:</b> </font><br>\";
print \"<form method=\\\"post\\\" action=\\\"index.php3\\\">\\n\";
print \"<input type=\\\"hidden\\\" name=\\\"action\\\" value=\\\"login\\\">\\n\";
print \"<table>\";
print \"<tr>\";
print \"<td><font face=\\\"arial\\\" size=\\\"2\\\" color=#0099ff>Navn:</font></td>\";
print \"<td><input type=\\\"text\\\" name=\\\"nick\\\"></td>\\n\";
print \"</tr>\";
print \"<tr>\";
print \"<td><font face=\\\"arial\\\" size=\\\"2\\\" color=#0099ff>Password:</font></td>\";
print \"<td><input type=\\\"password\\\" name=\\\"pass\\\">\\n\";
print \" <input type=\\\"submit\\\" value=\\\"Login\\\"></td>\\n\";
print \"</tr>\";
print \"</form>\\n\";
print \"</table>\";
print \"<br><b><font color=#0099ff> X-Zone ( \".FindRoomUserNumber().\" / 20 ) :</b><br></font>\\n\";
$i = 0;
$handle=opendir(\"./users/\");
while ($file = readdir($handle)) {
if (eregi(\"^info\",$file)) {
$line=file(\"./users/\".$file);
if ($i != 0) { print \", \"; }
print \"<font color=\\\"\".chop($line[6]).\"\\\">\".chop($line[0]).\"</font>\";
$i++;
}
}
closedir($handle);
if ($i == 0) { print \"Ingen brugere logget ind lige nu\"; }
print \".\";
}
?>
<!-- Jeg har nakket dine sko. -->
<!-- Hvis din hund har skidt på dem gider jeg ikke have dem. -->
<!-- Hvorfor læser du stadig det her? -->
<!-- ................ OverWind -->
</body></html>
<style type=\"text/css\">
<!--
a:active { color: #466C9D; text-decoration: none;}
a:link { color: #466C9D; text-decoration: none}
a:visited { color: #466C9D; text-decoration: none}
a:hover { color: #FF0000; text-decoration: none;}
-->
</style>
<STYLE>
BODY
{scrollbar-face-color: #f9f9f9; scrollbar-shadow-color: #003366;
scrollbar-highlight-color: #003366; scrollbar-3dlight-color: #f9f9f9;
scrollbar-darkshadow-color: #f9f9f9; scrollbar-track-color: #f9f9f9;
scrollbar-arrow-color: #003366}
</STYLE>
</HEAD>
<script>
if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up event
function nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
</script>
<body topmargin=\"0\">
<div align=\"center\">
<center>
</center>
</div>
</body>
</html><noframes><script>
<IMG SRC=\"
http://geo.yahoo.com/serv?s=76000424&t=974925793\" ALT=1 WIDTH=1 HEIGHT=1>
<!-- Yahoo! Menu service --></table></noscript></script><script language=\"JavaScript\" src=\"
http://a372.g.a.yimg.com/f/372/27/1d/us.geocities.com/js_source/ygIELib6.js\"></script><script language=\"JavaScript\">var yvContents=\'
http://us.toto.geo.yahoo.com/toto?s=76001064&l=NE&b=1&t=974925793\';yfEA(0);</script><!-- END Yahoo! Menu Service --><script language=\"JavaScript\" src=\"
http://a372.g.a.yimg.com/f/372/27/1d/www.geocities.com/js_source/geov2.js\"></script><script language=\"javascript\">geovisit();</script><noscript></noframes>
Håber at du kan hjælpe
Tak på forhånd
- Thomas