<% '################################################################################# '## Copyright (C) 2000 Michael Anderson and Pierre Gorissen '## '## This program is free software; you can redistribute it and/or '## modify it under the terms of the GNU General Public License '## as published by the Free Software Foundation; either version 2 '## of the License, or any later version. '## '## All copyright notices regarding Snitz Forums 2000 '## must remain intact in the scripts and in the outputted HTML '## The "powered by" text/logo with a link back to '## http://forum.snitz.com in the footer of the pages MUST '## remain visible when the pages are viewed on the internet or intranet. '## '## This program is distributed in the hope that it will be useful, '## but WITHOUT ANY WARRANTY; without even the implied warranty of '## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the '## GNU General Public License for more details. '## '## You should have received a copy of the GNU General Public License '## along with this program; if not, write to the Free Software '## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. '## '## Support can be obtained from support forums at: '## http://forum.snitz.com '## '## Correspondence and Marketing Questions can be sent to: '## reinhold@bigfoot.com '## '## or '## '## Snitz Communications '## C/O: Michael Anderson '## PO Box 200 '## Harpswell, ME 04079 '################################################################################# %> <% HidePM = "HidePM" If Request.QueryString(HidePM) = "Y" then Response.Cookies(HidePM) = "Y" Response.Cookies(HidePM).Expires = dateAdd("d", 30, strForumTimeAdjust) Else If Request.QueryString(HidePM) = "N" then Response.Cookies(HidePM) = "N" Response.Cookies(HidePM).Expires = dateAdd("d", 30, strForumTimeAdjust) End If End If ' Get Private Message count for display on Default.asp if strDBType = "access" then strSqL = "SELECT count(M_TO) as [pmcount] " else strSQL = "SELECT count(FORUM_ID) as forums " end if strSql = strSql & " FROM " & strTablePrefix & "MEMBERS , " & strTablePrefix & "PM " strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.M_NAME = '" & strDBNTUserName & "'" strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "PM.M_TO " strSql = strSql & " AND " & strTablePrefix & "PM.M_READ = 0 " Set rsPM = my_Conn.Execute(strSql) pmcount = rsPM("pmcount") %> "> <% ' This code will specify whether or not to show the forums under a category HidePM = "HidePM" If Request.Cookies(HidePM) = "Y" then %> <% =HidePM & "=N" %>">Expand Private Messages <% Else %> <% =HidePM & "=Y" %>">Collapse Private Messages <% End If %> Private Messages <% if Request.Cookies(HidePM) <> "Y" then %> <% if strDBNTUserName = "" Then %> <% else if pmcount = 0 then %> <% end if if pmcount >= 1 then %> <% end if %> <% end if %> ">Inbox
<% if strDBNTUserName = "" Then %> - Log in to check your private messages. <% else %> <% if strAuthType="nt" then %> <% =strDBNTUserName %> (<% =strDBNTUserName %>) <% else %> <% if strAuthType = "db" then %> <% =strDBNTUserName %><% end if %><% end if %> - You have <% if pmcount >=1 then %><% =pmcount %><% else %><% =pmcount %><% end if %> new private messages. <% end if end if %>