% '################################################################################# '## Snitz Forums 2000 v3.4.05 '################################################################################# '## Copyright (C) 2000-05 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 (at your option) 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 our support forums at: '## http://forum.snitz.com '## '## Correspondence and Marketing Questions can be sent to: '## manderson@snitz.com '## '################################################################################# %> <% if Request("CAT_ID") <> "" then if IsNumeric(Request("CAT_ID")) = True then Cat_ID = cLng(Request("CAT_ID")) else Cat_ID = 0 end if if Request("FORUM_ID") <> "" then if IsNumeric(Request("FORUM_ID")) = True then Forum_ID = cLng(Request("FORUM_ID")) else Forum_ID = 0 end if if Request("TOPIC_ID") <> "" then if IsNumeric(Request("TOPIC_ID")) = True then Topic_ID = cLng(Request("TOPIC_ID")) else Topic_ID = 0 end if if Request("REPLY_ID") <> "" then if IsNumeric(Request("REPLY_ID")) = True then Reply_ID = cLng(Request("REPLY_ID")) else Reply_ID = 0 end if if Request("MEMBER_ID") <> "" then if IsNumeric(Request("MEMBER_ID")) = True then Member_ID = cLng(Request("MEMBER_ID")) else Member_ID = 0 end if if (Cat_ID + Forum_ID + Topic_ID + Reply_ID + Member_ID) < 1 then Response.Write "
כתובת הרשת שונתה!
" & vbNewLine & _ "ייתכן שהיה נסיון פריצה!
" & vbNewLine WriteFooterShort Response.End end if Mode_Type = ChkString(Request("mode"), "SQLString") strPassword = trim(Request.Form("pass")) Select case Mode_Type case "OpenTopic" strEncodedPassword = sha256("" & strPassword) mLev = cLng(ChkUser(strDBNTFUserName, strEncodedPassword,-1)) if mLev > 0 then '## is Member if (chkForumModerator(Forum_ID, strDBNTFUserName) = "1") or (mLev = 4) then '## Forum_SQL strSql = "UPDATE " & strTablePrefix & "TOPICS " strSql = strSql & " SET T_STATUS = 1 " strSQL = strSql & ", T_ARCHIVE_FLAG = 1" strSql = strSql & " WHERE TOPIC_ID = " & Topic_ID my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords Response.Write "נעילת הנושא בוטלה!
" & vbNewLine & _ " " & vbNewLine else Response.Write "אין הרשאות לביטול נעילת הנושא
" & _
"
חזור לאימות זהותך מחדש
אין הרשאות לביטול נעילת הנושא
" & _
"
חזור לאימות זהותך מחדש
נעילת הפורום בוטלה!
" & vbNewLine & _ " " & vbNewLine else Response.Write "אין הרשאות לביטול נעילת הפורום
" & _
"
חזור לאימות זהותך מחדש
אין הרשאות לביטול נעילת הפורום
" & _
"
חזור לאימות זהותך מחדש
נעילת הקטגוריה בוטלה!
" & vbNewLine & _ " " & vbNewLine else Response.Write "אין הרשאות לביטול נעילת הקטגוריה
" & _
"
חזור לאימות זהותך מחדש
אין הרשאות לביטול נעילת הקטגוריה
" & _
"
חזור לאימות זהותך מחדש
נעילת החבר בוטלה!
" & vbNewLine & _ " " & vbNewLine else Response.Write "אין הרשאות לביטול נעילת חברים
" & _
"
חזור לאימות זהותך מחדש
אין הרשאות לביטול נעילת חברים
" & _
"
חזור לאימות זהותך מחדש
הפכת את הנושא ללא-דביק!
" & vbNewLine & _ " " & vbNewLine else Response.Write "אין הרשאות להפיכת הנושא ללא-דביק!
" & _
"
חזור לאימות זהותך מחדש
אין הרשאות להפיכת הנושא ללא-דביק!
" & _
"
חזור לאימות זהותך מחדש
" select case Mode_Type case "Topic" Response.Write("בטל נעילת נושא") case "Forum" Response.Write("בטל נעילת פורום") case "Category" Response.Write("בטל נעילת קטגוריה") case "Member" Response.Write("בטל נעילת חבר") case "STopic" Response.Write("הפוך נושא ללא-דביק") end select Response.Write "
" & vbNewLine & _ "הערה: "
select case Mode_Type
case "STopic"
Response.Write("רק מנהל פורום או מנהל ראשי
יכולים להפוך נושא ללא-דביק.")
case "Member"
Response.Write("רק מנהל ראשי יכול לבטל נעילת חבר.")
case "Category"
Response.Write("רק מנהל ראשי יכול לבטל נעילת קטגוריה.")
case "Forum"
Response.Write("רק מנהל ראשי יכול לבטל נעילת פורום.")
case "Topic"
Response.Write("רק מנהל פורום או מנהל ראשי
יכולים לבטל נעילת נושא.")
end select
Response.Write("