%@LANGUAGE="VBSCRIPT"%> <% ' *** Restrict Access To Page: Grant or deny access to this page MM_authorizedUsers="sim" MM_authFailedURL="../../../login.htm" MM_grantAccess=false If Session("MM_Username") <> "" Then If (false Or CStr(Session("MM_UserAuthorization"))="") Or _ (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then MM_grantAccess = true End If End If If Not MM_grantAccess Then MM_qsChar = "?" If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&" MM_referrer = Request.ServerVariables("URL") if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString() MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer) Response.Redirect(MM_authFailedURL) End If %> <% Dim consulta_senha Dim consulta_senha_cmd Dim consulta_senha_numRows Set consulta_senha_cmd = Server.CreateObject ("ADODB.Command") consulta_senha_cmd.ActiveConnection = MM_conexao_asp_STRING consulta_senha_cmd.CommandText = "SELECT * FROM cadastro" consulta_senha_cmd.Prepared = true Set consulta_senha = consulta_senha_cmd.Execute consulta_senha_numRows = 0 %>
|