<%
'#################################################################################
'## Copyright (C) 2000  Michael Anderson
'## 
'## 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.
'## 
'## 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.
'## 
'## Correspondence and Questions can be sent to:
'## reinhold@bigfoot.com
'## 
'## or
'## 
'## Snitz Communications 
'## C/O: Michael Anderson
'## PO Box 200
'## Harpswell, ME 04079
'##
'## Version 08/14/2000
'##
'#################################################################################
%>
<!--#INCLUDE FILE="config.asp" --> 
<!--#INCLUDE FILE="inc_functions.asp" -->
<!--#INCLUDE FILE="inc_top_short.asp" -->
<%
if strAuthType = "nt" then
	if ChkAccountReg() <> "1" then %>
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
<b>Note:</b> This NT account has not been registered yet, thus the profile is not available.<br>
If this is your account, <a href="register.asp?mode=Register">click here</a> to register.
</font></p>		
<!--#INCLUDE FILE="inc_footer_short.asp" -->
<% 
		Response.End 
	end if
end if
%>
<%
select case Request.QueryString("mode") 

	case "display" '## Display Profile

		'## Forum_SQL
		strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID, " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strMemberTablePrefix & "MEMBERS.M_USERNAME, " & strMemberTablePrefix & "MEMBERS.M_EMAIL "
		if strICQ = "1" then
			strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_ICQ"
		end if
		if strYAHOO = "1" then
			strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_YAHOO"
		end if
		if strAIM = "1" then
			strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_AIM"
		end if
		if strHomepage = "1" then
			strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_HOMEPAGE"
		end if
		strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_COUNTRY, " & strMemberTablePrefix & "MEMBERS.M_POSTS"
		strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
		strSql = strSql & " WHERE MEMBER_ID=" & Request.QueryString("id")

		set rs = my_Conn.Execute(strSql)
%>
	<p><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">User Profile</font></p>

	<table border="0" width="90%" cellspacing="0" cellpadding="0">
	  <tr>
	    <td bgcolor="<% =strPopUpBorderColor %>">
	<table border="0" width="100%" cellspacing="1" cellpadding="1">
		<TR>
			<TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">User Name:</font></b></td>
			<TD bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =rs("M_NAME") %>&nbsp;</font></td>
		</tr>
<%		if strAuthType = "nt" then %>
		<TR>
			<TD bgColor="<% =strPopUpTableColor %>" align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Your Account:</font></b></td>
			<TD bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSizederFontSize %>"><%=rs("M_USERNAME")%></FONT></td>
		</TR>
<%		end if %>		
		<TR>
			<TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Email Address:</FONT></b></td>
			<TD bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="pop_mail.asp?id=<% =rs("MEMBER_ID") %>"><% =rs("M_EMAIL") %></a>&nbsp;</font></td>
		</tr>
<%		if strICQ = "1" then %>
<%			if rs("M_ICQ") <> " " then %>
		<TR>
			<TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">ICQ:</font></b></td>
			<TD bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="pop_messengers.asp?mode=ICQ&ICQ=<% =rs("M_ICQ") %>&M_NAME=<% =rs("M_NAME") %>"><img src="http://online.mirabilis.com/scripts/online.dll?icq=<% =rs("M_ICQ") %>&img=5" border="0" align="absmiddle"><% =rs("M_ICQ") %></a>&nbsp;</font></TD>
		</TR>
<%			end if %>
<%		end if %>
<%		if strYAHOO = "1" then %>
<%			if rs("M_YAHOO") <> " " then %>
		<TR>
			<TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">YAHOO IM:</font></b></td>
			<TD bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="http://edit.yahoo.com/config/send_webmesg?.target=<% =rs("M_YAHOO") %>&.src=pg"><img border=0 src="http://opi.yahoo.com/online?u=<% =rs("M_YAHOO") %>&m=g&t=2"></a>&nbsp;</font></TD>
		</TR>
<%			end if %>
<%		end if %>
<%		if strAIM = "1" then %>
<%			if rs("M_AIM") <> " " then %>
		<TR>
			<TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">AIM:</font></b></td>
			<TD bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="pop_messengers.asp?mode=AIM&AIM=<% =rs("M_AIM") %>&M_NAME=<% =rs("M_NAME") %>"><% =rs("M_AIM") %></a>&nbsp;</font></TD>
		</TR>
<%			end if %>
<%		end if %>
<%		if strHomepage = "1" then %>
<%			if rs("M_HOMEPAGE") <> " " then %>
		<TR>
			<TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Home Page:</font></b></td>
			<TD bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="<% =rs("M_Homepage") %>" target="_Blank"><% =rs("M_Homepage") %></a>&nbsp;</font></td>
<%			end if %>
<%		end if %>
<%		if rs("M_COUNTRY") <> " " then %>
		<TR>
			<TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Country:</font></b></td>
			<TD bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =rs("M_COUNTRY") %>&nbsp;</font></TD>
		</TR>
<%		end if %>
		<TR>
			<TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Total Posts:</font></b></td>
			<TD bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =rs("M_POSTS") %>&nbsp;</font></TD>
		</TR>
	</TABLE>
	    </td>
	  </tr>
	</table>

<% case "Edit" %>
	<p><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">User Profile</font></p>
	<p><form action="pop_profile.asp?mode=goEdit&id=<% =Request.QueryString("id")%>" method="post">
	<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">It is up to you to keep your profile up to date.<br>
<%		if strAuthType = "nt" then %>
Your NT account is shown. Click Submit to carry on.<br><br>
<%		else %>
<%			if strAuthType = "db" then %>
Please Fill the Form in with your details.<br><br>
<%			end if %>	
<%		end if %>	
	If you have not registered then <a href="register.asp?mode=Register">do so here</a>.

	<table border="0" width="75%" cellspacing="0" cellpadding="0">
		<tr>
			<td bgcolor="<% =strPopUpBorderColor %>">
	<table border="0" width="100%" cellspacing="1" cellpadding="1">
<%		if strAuthType = "nt" then %>
		<TR>
			<TD bgColor="<% =strPopUpTableColor %>" align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Your Account:</font></b></td>
			<TD bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>"><% =Session("userid") %></font></b></td>
		</TR>
<%		else %>	
<%			if strAuthType = "db" then %>
	 	<TR>
	 	    <TD  bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">User Name:</font></b></td>
	 	    <TD  bgColor=<% =strPopUpTableColor %>><input name="Name" size="25" value="<% =Request.Cookies("User")("Name")%>"></td>
	 	</TR>
	 	<TR>
	 	    <TD  bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Password:</font></b></td>
	 	    <TD  bgColor=<% =strPopUpTableColor %>><input name="Password" type=Password size="25" value="<% =Request.Cookies("User")("Pword")%>"></td>
	 	</TR>
<%			end if %>
<%		end if %>
	 	<TR>
	 		<TD  bgColor=<% =strPopUpTableColor %> align=center colspan=2><input type=submit value=Submit></td>
	 	</TR>    
	</table>
			</td>
		</tr>
	</table>
	
	</form></p>
<%
	case "goEdit"

		'## Forum_SQL
		'strSql = "SELECT * FROM " & strMemberTablePrefix & "MEMBERS "
		strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID, " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strMemberTablePrefix & "MEMBERS.M_PASSWORD, " 
		strSql = strSql & strMemberTablePrefix & "MEMBERS.M_EMAIL, " & strMemberTablePrefix & "MEMBERS.M_ICQ, " & strMemberTablePrefix & "MEMBERS.M_YAHOO, " & strMemberTablePrefix & "MEMBERS.M_AIM, " 
		strSql = strSql & strMemberTablePrefix & "MEMBERS.M_HOMEPAGE, " & strMemberTablePrefix & "MEMBERS.M_COUNTRY, " & strMemberTablePrefix & "MEMBERS.M_SIG " 
		strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
		
		if strAuthType = "nt" then
			strSql = strSql & " WHERE M_USERNAME = '" & session("userid") & "'"
			QuoteOk = ChkQuoteOk(session("userid"))
		else
			if strAuthType = "db" then
				strSql = strSql & " WHERE M_NAME = '" & ChkString(Request.Form("Name"),"name") & "' "
				strSql = strSql & " AND   M_PASSWORD = '" & ChkString(Request.Form("Password"),"password") & "'"
				QuoteOk = (ChkQuoteOk(Request.Form("UserName")) and ChkQuoteOk(Request.Form("Password")))
			end if
		end if

		set rs = my_Conn.Execute(strSql)

		if rs.BOF and rs.EOF and QuoteOk  then 
%>
	<p><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Invalid UserName or Password</font></p>
	
	<p><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="JavaScript:history.go(-1)">Go Back To Retry</a></font></p>
	
    <!--#INCLUDE FILE="inc_footer_short.asp" -->

<%
			Response.End
		else
			'## Display Edit Profile Page
%>
	<p><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Edit User Profile</font></p>
	<p><form action="pop_profile.asp?mode=EditIt&id=<% =Request.QueryString("id")%>" method="Post" id=Form1 name=Form1>
	<!-- #include file="inc_profile.asp" -->
	</form></p>
<%
		end if 

	case "Modify"
%>

<P><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Modify Member</font></p>

<p><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><b><font color=red>NOTE:</font></b> Only Administrators can Modify a Member.</font></p>

<form action="pop_profile.asp?mode=goModify" method=post id=Form1 name=Form1>
<input type=hidden name="Method_Type" value="<% =Request.QueryString("mode") %>">
<input type=hidden name="MEMBER_ID" value="<% =Request.QueryString("ID") %>">
<input type=hidden name="Name" value="<% =Request.QueryString("name") %>">

<table border="0" width="75%" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="<% =strPopUpBorderColor %>">
    <table border="0" width="100%" cellspacing="1" cellpadding="1">
      <TR>
        <TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">User Name:</font></b></td>
        <TD bgColor=<% =strPopUpTableColor %>><input type=text name="User" value="<% =Request.Cookies("User")("Name")%>" size=20></td>
      <TR>
        <TD bgColor=<% =strPopUpTableColor %> align=right nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Password:</FONT></b></td>
        <TD bgColor=<% =strPopUpTableColor %>><input type=Password name="Pass" value="<% =Request.Cookies("User")("Pword")%>" size=20></td>
      <TR>
        <TD bgColor=<% =strPopUpTableColor %> colspan=2 align=center><Input type=Submit value="Send" id=Submit1 name=Submit1></td>
      </TR>
    </TABLE>
    </td>
  </tr>
</table>
</form>
<%
	case "goModify"

		mLev = cint(ChkUser2(Request.Form("User"), Request.Form("Pass"))) 
						
		if mLev > 0 then  '## is Member
			if mLev = 4 then

			'## Forum_SQL
			strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID, " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strMemberTablePrefix & "MEMBERS.M_PASSWORD, " & strMemberTablePrefix & "MEMBERS.M_EMAIL, " & strMemberTablePrefix & "MEMBERS.M_TITLE, " 
			strSql = strSQL & strMemberTablePrefix & "MEMBERS.M_POSTS, " & strMemberTablePrefix & "MEMBERS.M_ICQ, " & strMemberTablePrefix & "MEMBERS.M_YAHOO, " & strMemberTablePrefix & "MEMBERS.M_AIM, " & strMemberTablePrefix & "MEMBERS.M_HOMEPAGE, " 
			strSql = strSQL & strMemberTablePrefix & "MEMBERS.M_COUNTRY, " & strMemberTablePrefix & "MEMBERS.M_SIG, " & strMemberTablePrefix & "MEMBERS.M_LEVEL"
			strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
			strSql = strSql & " WHERE MEMBER_ID = " & Request.Form("MEMBER_ID")

			'strSql = "SELECT * FROM " & strMemberTablePrefix & "MEMBERS "
			'strSql = strSql & " WHERE MEMBER_ID = " & Request.Form("MEMBER_ID")

			set rs = my_Conn.Execute(strSql)

			'## Display Edit Profile Page
%>
	<p><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Modify User Profile</font></p>
	<p><form action="pop_profile.asp?mode=ModifyIt&id=<% =Request.Form("MEMBER_ID")%>" method="Post" id=Form1 name=Form1>
	<input type=hidden name="User" value="<% =Request.Form("User") %>">
	<input type=hidden name="Pass" value="<% =Request.Form("Pass") %>">
	<!-- #include file="inc_profile.asp" -->
	</form></p>
<%			else %>
<P align=center><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>"><b>No Permissions to Modify a Member</font><br>
<br>
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="JavaScript: onClick= history.go(-1) ">Go Back to Re-Authenticate</a></font></p>
<%			end if %>
<%		else %>
<P align=center><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>"><b>No Permissions to Modify a Member</font><br>
<br>
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="JavaScript: onClick= history.go(-1) ">Go Back to Re-Authenticate</a></font></p>
<%		end if %>
<%
	case "EditIt"

		Err_Msg = ""
		if Request.Form("Name") = "" then 
			Err_Msg = Err_Msg & "<li>You must choose a UserName</li>"
		end if
		if strAuthType = "db" then
			if Request.Form("Password") = "" then 
				Err_Msg = Err_Msg &  "<li>You must choose a Password</li>"
			end if
			if Len(Request.Form("Password")) > 25 then 
				Err_Msg = Err_Msg & "<li>Your Password can not be greater than 25 characters</li>" 
			end if
			if Request.Form("Password") <>  Request.Form("Password2") then 
				Err_Msg = Err_Msg & "<li>Your Passwords didn't match.</li>"
			end if
		end if
		if Request.Form("Email") = "" then 
			Err_Msg = Err_Msg & "<li>You Must give an email address</li>"
		end if
		if EmailField(Request.Form("Email")) = 0 then 
			Err_Msg = Err_Msg & "<li>You Must enter a valid email address</li>"
		end if
		if (lcase(left(Request.Form("Homepage"), 7)) <> "http://") and (lcase(left(Request.Form("Homepage"), 8)) <> "https://") and (Request.Form("Homepage") <> "") then
			Err_Msg = Err_Msg & "<li>You Must prefix your URL with <b>http://</b> or <b>https://</b></li>"
		end if
		if strUniqueEmail = "1" then
			if lcase(Request.Form("Email")) <> lcase(Request.Form("Email2")) then
				'## Forum_SQL
				strSql = "SELECT M_EMAIL FROM " & strMemberTablePrefix & "MEMBERS "
				strSql = strSql & " WHERE M_EMAIL = '" & Request.Form("Email") &"'"

				set rs = my_Conn.Execute (strSql)

				if rs.BOF and rs.EOF then 
					'## Do Nothing - proceed
				Else 
					Err_Msg = Err_Msg & "<li>Email Address already in use, Please Choose Another</li>"
				end if
				rs.close
				set rs = nothing
			end if
		end if
		if Len(Request.Form("Sig")) > 255 then
				Err_Msg = Err_Msg & "<li>Your signature can not be greater than 255 characters</li>"
		end if
		if Err_Msg = "" then
		
			if Request.Form("Homepage") <> "" and lcase(Request.Form("Homepage")) <> "http://" and lcase(Request.Form("Homepage")) <> "https://" then
				regHomepage = ChkString(Request.Form("Homepage"),"url")
			else
				regHomepage = " "
			end if

			'## Forum_SQL
			strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
			strSql = strSql & " SET M_PASSWORD = '" & ChkString(Request.Form("Password"),"") & "', "
			strSql = strSql & "     M_COUNTRY  = '" & ChkString(Request.Form("Country"),"")  & "', "
			if strICQ = "1" then
				strSql = strSql & "     M_ICQ = '" & ChkString(Request.Form("ICQ"),"") & "', "
			end if
			if strYAHOO = "1" then
				strSql = strSql & "     M_YAHOO = '" & ChkString(Request.Form("YAHOO"),"") & "', "
			end if
			if strAIM = "1" then
				strSql = strSql & "     M_AIM = '" & ChkString(Request.Form("AIM"),"") & "', "
			end if
			if strHOMEPAGE = "1" then
				strSql = strSql & "     M_Homepage = '" & ChkString(Trim(regHomepage),"") & "', "
			end if
			strSql = strSql & "     M_SIG = '" & ChkString(Request.Form("Sig"),"message") & "', "
			strSql = strSql & "     M_EMAIL = '" & ChkString(Request.Form("Email"),"") & "' "
			strSql = strSql & " WHERE M_NAME = '" & Request.Form("Name") & "' "
			strSql = strSql & " AND   M_PASSWORD = '" & Request.Form("Password-d") & "'"

			my_Conn.Execute(strSql)
			
			regHomepage = ""
%>
	<p><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Profile Updated.</font></p>
<%
		else

%>
	<p><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">There Was A Problem With Your Details</font></p>

	<table>
	  <tr>
	    <td>
		<ul>
		<% =Err_Msg %>
		</ul>
	    </td>
	  </tr>
	</table>

	<p><font size="<% =strDefaultFontSize %>"><a href="JavaScript:history.go(-1)">Go Back To Enter Data</a></font></p>

	<p><font size="<% =strDefaultFontSize %>"><a href="JavaScript:onClick= window.close()">Close Window</A></font></p>
<%
			Response.End 
		end if

	case "ModifyIt"

		mLev = cint(ChkUser2(Request.Form("User"), Request.Form("Pass"))) 
						
		if mLev > 0 then  '## is Member
			if mLev = 4 then

				'## Forum_SQL
				strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
				strSql = strSql & " SET M_NAME = '" & ChkString(Request.Form("Name"),"name") & "'"
				if strAuthType = "nt" then
					strSql = strSql & ",    M_USERNAME = '" & ChkString(Request.Form("Account"),"") & "'"
				else
					if strAuthType = "db" then
						strSql = strSql & ",    M_PASSWORD = '" & ChkString(Request.Form("Password"),"") & "'"
					end if
				end if
				strSql = strSql & ",    M_EMAIL = '" & ChkString(Request.Form("Email"),"") & "'"
				strSql = strSql & ",    M_TITLE = '" & ChkString(Request.Form("Title"),"") & "'"
				strSql = strSql & ",    M_POSTS = '" & ChkString(Request.Form("Posts"),"") & "'"
				strSql = strSql & ",    M_COUNTRY = '" & ChkString(Request.Form("Country"),"") & "'"
				if strICQ = "1" then
					strSql = strSql & ",    M_ICQ = '" & ChkString(Request.Form("ICQ"),"") & "'"
				end if
				if strYAHOO = "1" then
					strSql = strSql & ",    M_YAHOO = '" & ChkString(Request.Form("YAHOO"),"") & "'"
				end if
				if strAIM = "1" then
					strSql = strSql & ",    M_AIM = '" & ChkString(Request.Form("AIM"),"name") & "'"
				end if
				if strHOMEPAGE = "1" then
					strSql = strSql & ",    M_Homepage = '" & ChkString(Request.Form("Homepage"),"" ) & "'"
				end if
				strSql = strSql & ",    M_SIG = '" & ChkString(Request.Form("Sig"),"message") & "'"
				strSql = strSql & ",    M_LEVEL = " & ChkString(Request.Form("Level"),"")
				strSql = strSql & " WHERE MEMBER_ID = " & Request.Form("MEMBER_ID")	

				my_Conn.Execute(strSql)
%>
	<p><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Profile Updated.</font></p>
	
<%				else %>
<P align=center><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>"><b>No Permissions to Modify a Member</font><br>
<br>
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="JavaScript: onClick= history.go(-1) ">Go Back to Re-Authenticate</a></font></p>
<%			end if %>
<%		else %>
<P align=center><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>"><b>No Permissions to Modify a Member</font><br>
<br>
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="JavaScript: onClick= history.go(-1) ">Go Back to Re-Authenticate</a></font></p>
<%		end if %>
	
<% end select %>
<% on error resume next %>
<% rs.close %>
<% set rs=nothing %>
<!--#INCLUDE FILE="inc_footer_short.asp" -->