<% '''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '' Copyright 2004 by Robert Aung. '' '' All rights reserved. No part of this work may be '' reproduced, stored, or transmitted in any form, '' without prior written permission. '' '' Neither this page, nor any part of it, may be '' modified, copied, distributed, displayed, reproduced, '' published, licensed, sold, placed on a web site, '' or used to create derivitive works without the '' express written consent of the author. Any use '' of this page is subject to the terms of a license '' agreement with the author. '' '' To obtain a license for this software, contact the '' author at robert.aung@verizon.net. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Response.Buffer = True dim message dim pwd pwd = request.form("pwd") if len(pwd) > 0 then dim cn, rs, cmd set cn = server.CreateObject("ADODB.Connection") set rs = server.CreateObject("ADODB.Recordset") set cmd = server.CreateObject("ADODB.Command") cn.ConnectionString = connectstring cn.Open if cn.State = 1 then cmd.activeconnection = cn cmd.CommandText = _ "select count(*) cnt from file_upload_general " & _ "where password = ? and status = 'Approved'" cmd(0) = pwd set rs.source = cmd rs.open if not (rs.eof and rs.bof) then if rs("cnt") > 0 then response.cookies("revpwdgen") = pwd response.redirect "filelist-3.asp" else message = "
Invalid password." end if else message = "
Invalid password." end if else message = "
There was an error connecting to the database server.

Please back up your browser and try again.
" end if rs.Close Set rs = Nothing else message = "
No password specified.

Please back up your browser and try again.
" end if %> <%=message%>