<% '################################################################################# '## 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 '################################################################################# '## Part of the Avatar Mod by: Richard Kinser ## '## This is a modified version of the pop_delete.asp that is included with ## '## Snitz Forums 2000 ## '################################################################################# %> <% if strAuthType = "db" then strDBNTUserName = Request.Form("User") end if if Request.QueryString("mode") = "DeleteAvatar" then mLev = cint(ChkUser2(strDBNTUserName, Request.Form("Pass"))) if mLev > 0 then '## is Member if mLev = 4 then '## Forum_SQL - Delete all replys related to the topics strSql = "DELETE FROM " & strTablePrefix & "AVATAR " strSql = strSql & " WHERE " & strTablePrefix & "AVATAR.A_ID = " & Request.Form("A_ID") my_Conn.Execute strSql '## Forum_SQL - Update Members who had this Avatar to noavatar.gif strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS " strSql = strSql & "SET M_AVATAR_URL = 'noavatar.gif'" strSql = strSql & "WHERE M_AVATAR_URL = '" & Request.Form("A_URL") & "'" my_Conn.Execute strSql %>

Avatar Deleted!

(Remember to Refresh your browser.)

<% else %>

No Permissions to Delete Avatars

Go Back to Re-Authenticate

<% end if %> <% else %>

No Permissions to Delete Avatars

Go Back to Re-Authenticate

<% end if else %>

Delete Avatar

NOTE: Only Administrators can delete Avatars.

" method=post id=Form1 name=Form1> "> ">
<% if strAuthType="db" then %> <% else %> <% if strAuthType="nt" then %> <% end if %> <% end if %>
align=right nowrap>User Name: >" size=20>
align=right nowrap>Password: >" size=20>
align=right nowrap>NT Account: ><%=Session(strCookieURL & "userid")%>
colspan=2 align=center>
<% end if %>