<%@Language=VBSCRIPT%> <%Option Explicit%> <% Response.Buffer = True %> <% Session("Connect_ConnectionString") = "DBQ=" & Server.Mappath("../_database/fipsGbook.mdb") & ";DefaultDir=" & Server.Mappath("../_database") & ";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;ImplicitCommitSync=Yes;MaxBufferSize=512;MaxScanRows=8;PageTimeout=5;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;" Session("Connect_ConnectionTimeout") = 15 Session("Connect_CommandTimeout") = 30 Session("Connect_RuntimeUserName") = "admin" Session("Connect_RuntimePassword") = "" ' first the DIMs / Festsetzung der Variablen Dim status, password, action, page, actCount, recCount, howmany, xx status = Request.FORM("status") password = Request.FORM("password") If status = "checkAdmin" Then ' here you set the PASSWORD / hier definieren Sie das PASSWORT If password = PW_Admin THEN Session("access") = "Yes" End If End If If Session("access") <> "Yes" Then %> <% With Response .Write "
" & vbCrLf .write "" & vbCrLf .write "
"&Lang_GBTitleAdmin&"
" & vbCrLf .write "
" & vbCrLf .write "" & vbCrLf .write "" & vbCrLf .write "

" & vbCrLf .write "" & vbCrLf .write "
" & vbCrLf .write "
" & vbCrLf '.write ""&Lang_AdminGBLink&"
" End With %>

<%=Lang_AdminGBLink%>
<% Response.End End If ACTION = Request.Querystring("ACTION") PAGE = CInt(Request.Querystring("PAGE")) recCount = CInt(Request.Querystring("recCount")) If recCount = "" Then recCount = "0" End If Set rs = Server.CreateObject("ADODB.Recordset") strSQL = "select ID, Name, Email, IP, Homepage, Date, Entry, Kommentar from gb ORDER BY ID DESC" rs.Open strSQL,Session("Connect_ConnectionString"), 3 HOWMANY = ConfigPageSize rs.PageSize = HOWMANY If ACTION = "fwd" Then PAGE = PAGE + 1 recCount = recCount + HOWMANY For actCount = 1 To recCount rs.MoveNext Next End If If ACTION = "back" Then PAGE = PAGE - 1 recCount = recCount - HOWMANY If recCount <> 0 Then For actCount = 1 To recCount rs.MoveNext Next End If End If With response .Write "
" & vbCrLf .write "" & vbCrLf .write "" & vbCrLf .write "" & vbCrLf .write "
"&Lang_GBTitleAdmin&"
" End With If recCount = "0" Then PAGE = 1 If rs.RecordCount > 1 or rs.RecordCount = 0 Then response.write rs.RecordCount & " " & Lang_AdminMssgCount1 & " | " Else response.write rs.RecordCount & " " & Lang_AdminMssgCount2 & " | " End If If rs.RecordCount <> 0 And HOWMANY < rs.RecordCount Then response.write Lang_AdminShowFirst & " " & HOWMANY End If End If With response .write ""&Lang_AdminGBLink&"

" End With If rs.RecordCount = 0 Then Response.End End If xx = 0 while NOT rs.EOF With Response .Write "
" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf End With If Not RS("Kommentar") = "" then With Response .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf End With End If With Response .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf End With With Response .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf End With Dim HomepageWrite HomepageWrite = rs("Homepage") if left(rs("homepage"),7)>< "http://" then HomepageWrite = "http://" & rs("Homepage") end if if rs("Homepage") = "X" then response.write ""&Lang_Error5&"" Else response.write " "&Lang_Homepage&" »»" End If With Response .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf .Write "" & vbCrLf .Write "
" & RS("Name") & "" & rs("Date") & "
" & Zeilenumbruch(rs("Entry")) & "
" & Zeilenumbruch(rs("Kommentar")) & "
"&Lang_Email&" " & RS("eMail") & "" & vbCrLf .Write "
IP: " & rs("IP") & "  [Add to blacklist]
ID: " & rs("ID") & "" & Lang_AdminComment & "  " & Lang_AdminEdit & "  " & Lang_AdminDel & "

" & vbCrLf End With rs.MoveNext xx = xx + 1 if xx = HOWMANY then while NOT rs.EOF rs.MoveNext wend end if wend With Response .Write "" & vbCrLf .Write "
" & vbCrLf End With If recCount > 0 Then Response.Write "" & Lang_AdminPrev & "" & vbCrLf End If Response.Write "  " & vbCrLf If PAGE = rs.PageCount Then Else Response.Write "" & Lang_AdminNext & "" & vbCrLf End If Response.Write "
" & vbCrLf Response.Write "
" & vbCrLf %>

<%=Lang_AdminGBLink%>