% '################################################################################# '## Copyright (C) 2000-01 Michael Anderson, Pierre Gorissen '## Huw Reddick and Richard Kinser '## '## 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 '################################################################################# '## Part of the Private Messages MOD for Snitz Forums 2000 v3.4.04 ## '################################################################################# %> <% if strDBNTUserName = "" then Response.Redirect "default.asp" Response.End else if trim(chkString(Request("method"),"SQLString")) <> "" then SortMethod = trim(chkString(Request("method"),"SQLString")) end if strSortIconOn = getCurrentIcon(strIconPmSortASC,"Sort Messages","hspace=""4"" align=""absmiddle""") strSortIconOff = getCurrentIcon(strIconPmSortDESC,"Sort Messages","hspace=""4"" align=""absmiddle""") select case SortMethod case "subjectinasc" strSql4 = " ORDER BY P.M_SUBJECT ASC, P.M_FROM DESC" case "subjectindesc" strSql4 = " ORDER BY P.M_SUBJECT DESC, P.M_FROM DESC" case "subjectoutasc" strSql4 = " ORDER BY P.M_SUBJECT ASC, P.M_TO DESC" case "subjectoutdesc" strSql4 = " ORDER BY P.M_SUBJECT DESC, P.M_TO DESC" case "frominasc" strSql4 = " ORDER BY P.M_FROM ASC, P.M_SENT DESC" case "fromindesc" strSql4 = " ORDER BY P.M_FROM DESC, P.M_SENT DESC" case "tooutasc" strSql4 = " ORDER BY P.M_TO ASC, P.M_SUBJECT ASC, P.M_SENT DESC" case "tooutdesc" strSql4 = " ORDER BY P.M_TO DESC, P.M_SUBJECT DESC, P.M_SENT DESC" case "sentinasc" strSql4 = " ORDER BY P.M_SENT ASC, P.M_SUBJECT ASC, P.M_TO DESC" case "sentindesc" strSql4 = " ORDER BY P.M_SENT DESC, P.M_SUBJECT DESC, P.M_TO DESC" case "sentoutasc" strSql4 = " ORDER BY P.M_SENT ASC, P.M_FROM DESC" case "sentoutdesc" strSql4 = " ORDER BY P.M_SENT DESC, P.M_FROM DESC" case else strSql4 = " ORDER BY P.M_SENT DESC" end select if Request.Cookies(strCookieURL & "paging")("outbox") = "" then if strSetCookieToForum = 1 then Response.Cookies(strCookieURL & "paging").Path = strCookieURL end if '####################################################################### '####### Right now if a user doesn't have an OUTBOX preference ####### '####### set in their cookie it will default to double ####### '####### ####### '####### If you want to change it, just change "double" below ####### '####### to either "single" or "none" ####### '####################################################################### Response.Cookies(strCookieURL & "paging")("outbox") = "double" Response.Cookies(strCookieURL & "paging").Expires = dateAdd("d", 360, strForumTimeAdjust) end if Response.Write "