%@LANGUAGE="VBSCRIPT"%>
<%
' *** Logout the current user.
MM_Logout = CStr(Request.ServerVariables("URL")) & "?MM_Logoutnow=1"
If (CStr(Request("MM_Logoutnow")) = "1") Then
Session.Contents.Remove("MM_Username")
Session.Contents.Remove("MM_UserAuthorization")
MM_logoutRedirectPage = "../../mboard/primapagina.asp"
' redirect with URL parameters (remove the "MM_Logoutnow" query param).
if (MM_logoutRedirectPage = "../../mboard/%22)%20Then%20MM_logoutRedirectPage%20=%20CStr(Request.ServerVariables(%22URL"))
If (InStr(1, UC_redirectPage, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
MM_newQS = "?"
For Each Item In Request.QueryString
If (Item <> "MM_Logoutnow") Then
If (Len(MM_newQS) > 1) Then MM_newQS = MM_newQS & "&"
MM_newQS = MM_newQS & Item & "=" & Server.URLencode(Request.QueryString(Item))
End If
Next
if (Len(MM_newQS) > 1) Then MM_logoutRedirectPage = MM_logoutRedirectPage & MM_newQS
End If
Response.Redirect(MM_logoutRedirectPage)
End If
%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="admin,supervisor"
MM_authFailedURL="/rotaract/error.asp"
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 rsComple__MMColParam
rsComple__MMColParam = month(now)
if (Request("MM_EmptyValue") <> "") then rsComple__MMColParam = Request("MM_EmptyValue")
%>
<%
set rsComple = Server.CreateObject("ADODB.Recordset")
rsComple.ActiveConnection = MM_connRTC_STRING
rsComple.Source = "SELECT nome, cognome, GiornoNascita, MeseNascita, Annonascita FROM tabSoci WHERE MeseNascita =" & month(now) & " ORDER BY GiornoNascita ASC"
rsComple.CursorType = 0
rsComple.CursorLocation = 2
rsComple.LockType = 3
rsComple.Open()
rsComple_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
rsComple_numRows = rsComple_numRows + Repeat1__numRows
%>
<%
set rsBoard = Server.CreateObject("ADODB.Recordset")
rsBoard.ActiveConnection = "Driver={Microsoft Access Driver (*.mdb)};Dbq=" & Server.MapPath("/_db/rtcBoard.mdb")
rsBoard.Source = "Select * from TabMessaggi WHERE Pubblica = 'no' ORDER BY ID desc"
rsBoard.Open()
%>
<%
While not rsBoard.EOF
if Session("MM_UserAuthorization") = "admin" or Session("MM_UserAuthorization") = "supervisor" or Session("MM_UserAuthorization") = "supervisor" then
%>
" class="soci">Cancella
commento|" class="soci">Modifica
Commento
<% end if %>
Messaggio da <% = rsBoard("Autore") %>
inviato il <% = rsBoard("DataOra") %>
<% = rsBoard.Fields.Item("Testo").Value %>
<%
rsBoard.movenext
Wend
rsBoard.close
set rsBoard = nothing
%>
<% if Session("MM_UserName") >< "" then %>
Logout
<% else
end if %>
<% If Not rsComple.EOF Or Not rsComple.BOF Then %>
Questo mese facciamo gli auguri di compleanno
a:
<%
While ((Repeat1__numRows <> 0) AND (NOT rsComple.EOF))
%>
<% =rsComple.Fields.Item("Nome").Value %>
<% =rsComple.Fields.Item("Cognome").Value %> (<% =rsComple.Fields.Item("GiornoNascita").Value %><% =mesi(rsComple.Fields.Item("MeseNascita").Value) %>
)
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsComple.MoveNext()
Wend
%>
<% End If ' end Not rsComple.EOF Or NOT rsComple.BOF %>