File Manager
Back to List
| Current Directory: ~/
Editing: countletin.asp
Full path: C:\ict\ICT\countletin.asp
Permissions: rwx
Write test: File appears not directly writable
Current process identity: IIS APPPOOL\DefaultAppPool
<!--#INCLUDE FILE="ConnectDB.asp"--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Untitled Document</title> </head> <body> <% id=request("id") t2=request("t2") sql="select * from letterin where id_letter='"&id&"'" set ors=server.createobject("adodb.recordset") ors.open sql,conn,1,3 if not ors.eof then ors.movelast hits=ors("hitc") if hits="" then hits=0 end if hitc=hits+1 usercreate=session("username") If usercreate="" Then usercreate=request("username") End if sqldata="update letterin set hitc='"&hitc&"',hitby='"&usercreate&"' where id_letter='"&id&"'" set orsdata=server.createobject("adodb.recordset") orsdata.open sqldata,conn,1,3 response.write sqldata If t2="1" then response.redirect "http://bsris.swu.ac.th/letinup/"&ors("filename") Else response.redirect "http://bsris.swu.ac.th/letinup/"&ors("filename2") End if end if ors.close orsdata.close conn.close %> </body> </html>