det var den... iaf ASP kodningen av den... här är hela filkoden:
<!--#Include file="settings.asp"-->
<%Function Tecken(str)
Tecken = Replace(Trim(str),"'","''")
End function
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("db/chatten.mdb")
Set ReS = Conn.Execute("Delete * From mess Where datum < #" & DateAdd("h",-4,Date()) & "#")
If Request.QueryString("do") = "add" Then
Set RS = Conn.Execute("Select * From online Where namn='" & Session("namn") & "'")
If Not RS.EOF Then
Inlagg = Tecken(Request.Form("mess"))
Fran = Request.Form("fran")
Ip = Request.Servervariables("REMOTE_ADDR")
If Inlagg <> "" Then
Conn.Execute("Insert Into mess(inlagg,fran,ip) Values('" & Inlagg & "','" & Fran & "','" & Ip & "')")
Response.Redirect "mess.asp"
Else
Response.Redirect "mess.asp"
End If
ELSE%>
<script language="JavaScript">
<!--
top.location.href="index.asp";
//-->
</script>
<%End If
End If%>
<html>
<head>
<title><%=Chatnamn%></title>
<%If Request.QueryString("type") = "on" Then
Session("type") = "on"%>
<%End If
If Session("type") = "on" Then%>
<%End If
If Request.QueryString("type") = "off" Then
Session("type") = ""%>
<%End If
If Session("type") = "" Then%>
<%End If%>
<link rel="stylesheet" href="stil.css" type="text/css">
<meta http-equiv="refresh" content="10">
</head>
<body bgcolor="<%=Messbgfarg%>">
<table width="100%" cellpadding="0" cellspacing="0">
<%Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("db/chatten.mdb")
Set RS = Conn.Execute("Select * From mess order by id desc")
Do Until RS.EOF%>
<tr><td>
<%=FormatDateTime(RS("datum"),4)%> | <b><%=RS("fran")%> »</b>
<%Fixa = Server.HTMLEncode(RS("Inlagg"))%> <!--#Include file="fixa.asp"--><%Response.Write Fixa%>
</td></tr>
<%RS.MoveNext
Loop
RS.Close
Set RS = Nothing
Conn.Close
Set Conn= Nothing%>
</table>
</body>
</html>