<% '################################################################################# '## Copyright (C) 2000-01 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 '################################################################################# %> <% if not(strUseExtendedProfile) then %> <% else %> <% end if if Instr(1,Request.Form("refer"),"search.asp",1) > 0 then strRefer = "search.asp" elseif Instr(1,Request.Form("refer"),"register.asp",1) > 0 then strRefer = "default.asp" else strRefer = Request.Form("refer") end if if strRefer = "" then strRefer = "default.asp" if strAuthType = "nt" then if ChkAccountReg() <> "1" then %>

Note: This NT account has not been registered yet, thus the profile is not available.
If this is your account, click here to register.

<% WriteFooter Response.End end if end if select case Request.QueryString("mode") case "display" '## Display Profile '## Forum_SQL strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_NAME" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_USERNAME" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_EMAIL" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_FIRSTNAME" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_LASTNAME " strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_TITLE" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_PASSWORD" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_ICQ" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_YAHOO" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_AIM" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_COUNTRY" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_POSTS" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_CITY" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_STATE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_HIDE_EMAIL" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_DATE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_HOMEPAGE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LINK1" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_LINK2" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_AGE" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_MARSTATUS" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_SEX" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_OCCUPATION" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_HOBBIES" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_QUOTE" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_BIO" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_LNEWS" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_SIG" strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS " strSql = strSql & " WHERE MEMBER_ID=" & ChkString(Request.QueryString("id"), "SQLString") set rs = my_Conn.Execute(strSql) strMyHobbies = rs("M_HOBBIES") strMyQuote = rs("M_QUOTE") strMyLNews = rs("M_LNEWS") strMyBio = rs("M_BIO") if strUseExtendedProfile then strColspan = " colspan=""2"" " strIMURL1 = "javascript:openWindow('" strIMURL2 = "')" else strColspan = "" strIMURL1 = "" strIMURL2 = "" end if mLev = cint(chkUser(Request.Cookies(strUniqueID & "User")("Name"), Request.Cookies(strUniqueID & "User")("Pword"))) %>
>

User Profile

> <% if mLev = 4 then %> <% else %> <% end if%>
 &name=<% =ChkString(rs("M_NAME"),"urlpath") %>"><% =ChkString(rs("M_NAME"),"display") %> <% =ChkString(rs("M_NAME"),"display") %>Member Since: <% =ChkDate(rs("M_DATE")) %> 
<% if strUseExtendedProfile then %> <% end if ' UseExtendedMemberProfile %>
valign=top> <% if strPicture = "1" then %> <% end if ' strPicture %> <% if Trim(rs("M_EMAIL")) <> "" then %> <% else %> <% end if %> <% if strICQ = "1" then if Trim(rs("M_ICQ")) <> "" then %> <% end if end if if strYAHOO = "1" then if Trim(rs("M_YAHOO")) <> "" then %> <% end if end if if strAIM = "1" then if Trim(rs("M_AIM")) <> "" then %> <% end if end if if strRecentTopics = "1" then strStartDate = DateToStr(dateadd("d", -30, strForumTimeAdjust)) '## Forum_SQL - Find all records for the member strsql = "SELECT " & strTablePrefix & "FORUM.FORUM_ID" strSql = strSql & ", " & strTablePrefix & "FORUM.F_SUBJECT" strSql = strSql & ", " & strTablePrefix & "FORUM.CAT_ID" strSql = strSql & ", " & strTablePrefix & "TOPICS.TOPIC_ID" strSql = strSql & ", " & strTablePrefix & "TOPICS.T_SUBJECT" strSql = strSql & ", " & strTablePrefix & "TOPICS.T_STATUS" strSql = strSql & ", " & strTablePrefix & "TOPICS.T_LAST_POST" strSql = strSql & ", " & strTablePrefix & "TOPICS.T_REPLIES " strsql = strsql & " FROM ((" & strTablePrefix & "FORUM LEFT JOIN " & strTablePrefix & "TOPICS " strsql = strsql & " ON " & strTablePrefix & "FORUM.FORUM_ID = " & strTablePrefix & "TOPICS.FORUM_ID) LEFT JOIN " & strTablePrefix & "REPLY " strsql = strsql & " ON " & strTablePrefix & "TOPICS.TOPIC_ID = " & strTablePrefix & "REPLY.TOPIC_ID) " strsql = strsql & " WHERE (T_DATE > '" & strStartDate & "') " strsql = strsql & " AND (" & strTablePrefix & "TOPICS.T_AUTHOR = " & ChkString(Request.QueryString("id"), "SQLString") & " " strsql = strsql & " OR " & strTablePrefix & "REPLY.R_AUTHOR = " & ChkString(Request.QueryString("id"), "SQLString") & ")" strSql = strSql & " ORDER BY " & strTablePrefix & "TOPICS.T_LAST_POST DESC, " & strTablePrefix & "TOPICS.TOPIC_ID DESC" set rs2 = my_Conn.Execute(strsql) %> <% if rs2.EOF or rs2.BOF then %> <% else currTopic = 0 TopicCount = 0 %> <% end if rs2.close set rs2 = nothing elseif (strHomepage + strFavLinks) > 0 and (strRecentTopics = "0") then %> <% if strHomepage = "1" then %> <% if Trim(rs("M_HOMEPAGE")) <> "" and lcase(trim(rs("M_HOMEPAGE"))) <> "http://" and Trim(lcase(rs("M_HOMEPAGE"))) <> "https://" then %> <% else %> <% end if %> <% end if if strFavLinks = "1" then %> <% if Trim(rs("M_LINK1")) <> "" and lcase(trim(rs("M_LINK1"))) <> "http://" and Trim(lcase(rs("M_LINK1"))) <> "https://" then %> <% else %> <% if Trim(rs("M_LINK2")) <> "" and lcase(trim(rs("M_LINK2"))) <> "http://" and Trim(lcase(rs("M_LINK2"))) <> "https://" then %> <% end if end if %> <% end if end if ' strRecentTopics %>
 My Picture 
align=center colspan="2"> <% if Trim(rs("M_PHOTO_URL")) <> "" and lcase(rs("M_PHOTO_URL")) <> "http://" then %> ">" alt="<% =ChkString(rs("M_NAME"),"display") %>" width="150" height="150" border=0 hspace="2" vspace="2">
Click image for full pic <% else %> No Photo Available <% end if %>
 My Contact Info 
align=right width="10%" nowrap>Email Address: > ')"><% =ChkString(rs("M_EMAIL"), "display") %> >No address specified...
align=right nowrap>ICQ:  >&M_NAME=<% =ChkString(rs("M_NAME"), "urlpath") %><% =strIMURL2 %>">&img=5" border="0" align="absmiddle"><% =ChkString(rs("M_ICQ"), "display") %> 
align=right nowrap>YAHOO IM:  >&.src=pg<% =strIMURL2 %>">&m=g&t=2"> 
align=right nowrap>AIM:  >&M_NAME=<% =ChkString(rs("M_NAME"), "urlpath") %><% =strIMURL2 %>"><% =ChkString(rs("M_AIM"), "urlpath") %> 
Recent Topics
 
 No Matches Found...
 
valign=top colspan="2"> <% do until rs2.EOF or (TopicCount = 10) if chkDisplayForum(rs2("FORUM_ID")) then if currTopic <> rs2("TOPIC_ID") then %> <% else%> NewTopic <% end if else if rs2("T_REPLIES") >= intHotTopicNum then%> HotTopic <% else%> <% end if end if else if rs2("T_LAST_POST") > Session(strCookieURL & "last_here_date") then %> NewTopic <% else%> <% end if end if else if rs2("T_LAST_POST") > Session(strCookieURL & "last_here_date") then %> Topic Locked <% else %> Topic Locked <% end if end if %> <% TopicCount = TopicCount + 1 end if currTopic = rs2("TOPIC_ID") end if rs2.MoveNext loop %>
"> <% if rs2("T_STATUS") <> 0 then if strHotTopic = "1" then if rs2("T_LAST_POST") > Session(strCookieURL & "last_here_date") then if rs2("T_REPLIES") >= intHotTopicNum then%> HotTopic"><% =ChkString(left(rs2("T_SUBJECT"), 50),"display") %> 
Links 
align=right nowrap width="10%">Homepage: >" target="_blank"><% =rs("M_Homepage") %> >No homepage specified...
align=right nowrap width="10%">Cool Links: >" target="_Blank"><% =rs("M_LINK1") %> >No link specified...
align=right nowrap width="10%">  >" target="_Blank"><% =rs("M_LINK2") %> 
valign=top> <% if strAuthType = "nt" then %> <% end if if strFullName = "1" and (Trim(rs("M_FIRSTNAME")) <> "" or Trim(rs("M_LASTNAME")) <> "" ) then %> <% end if if (strCity = "1" and Trim(rs("M_CITY")) <> "") or (strCountry = "1" and Trim(rs("M_COUNTRY")) <> "") or (strCountry = "1" and Trim(rs("M_STATE")) <> "") then %> <% end if if (strAge = "1" and Trim(rs("M_AGE")) <> "") then %> <% end if if (strMarStatus = "1" and Trim(rs("M_MARSTATUS")) <> "") then %> <% end if if (strSex = "1" and Trim(rs("M_SEX")) <> "") then %> <% end if if (strOccupation = "1" and Trim(rs("M_OCCUPATION")) <> "") then %> <% end if%> <% if not(strUseExtendedProfile) then%> <% if Trim(rs("M_EMAIL")) <> "" then %> <% else %> <% end if %> <% if strICQ = "1" then if Trim(rs("M_ICQ")) <> "" then %> <% end if end if if strYAHOO = "1" then if Trim(rs("M_YAHOO")) <> "" then %> <% end if end if if strAIM = "1" then if Trim(rs("M_AIM")) <> "" then %> <% end if end if end if if (strBio + strHobbies + strLNews + strQuote) > 0 then %> <% if strBio = "1" then %> <% end if if strHobbies = "1" then %> <% end if if strLNews = "1" then %> <% end if if strQuote = "1" then %> <% end if end if if (strHomepage + strFavLinks) > 0 and not(strRecentTopics = "0" and strUseExtendedProfile) then if strUseExtendedProfile then %> <% end if if strHomepage = "1" then %> <% if Trim(rs("M_HOMEPAGE")) <> "" and lcase(trim(rs("M_HOMEPAGE"))) <> "http://" and Trim(lcase(rs("M_HOMEPAGE"))) <> "https://" then %> <% else %> <% end if%> <% end if if strFavLinks = "1" then if Trim(rs("M_LINK1")) <> "" and lcase(trim(rs("M_LINK1"))) <> "http://" and Trim(lcase(rs("M_LINK1"))) <> "https://" then %> <% if Trim(rs("M_LINK2")) <> "" and lcase(trim(rs("M_LINK2"))) <> "http://" and Trim(lcase(rs("M_LINK2"))) <> "https://" then %> <% end if end if end if end if %>
Basics
align=right nowrap width="10%" valign=top>User Name:  ><% =ChkString(rs("M_NAME"),"display") %> 
Your Account:  <%= ChkString(rs("M_USERNAME"),"display") %>
Real Name:  <% =ChkString(rs("M_FIRSTNAME"), "display") %> <% =ChkString(rs("M_LASTNAME"), "display") %>
Location:  <% Response.Write(rs("M_CITY")) if Trim(rs("M_CITY")) <> "" then Response.Write(" ") end if if Trim(rs("M_STATE")) <> "" then Response.Write(ChkString(rs("M_STATE"), "display") & "
") end if Response.Write(ChkString(rs("M_COUNTRY"), "display")) %>
Age:  <% =ChkString(rs("M_AGE"), "display") %>
Marital Status:  <% = ChkString(rs("M_MARSTATUS"), "display") %>
Sex:  <% = ChkString(rs("M_SEX"), "display") %>
Occupation:  <% = ChkString(rs("M_OCCUPATION"), "dislay") %>
Total Posts:  <% = ChkString(rs("M_POSTS"), "display") %>
align=right width="10%" nowrap>Email Address: >"><% =ChkString(rs("M_EMAIL"), "display") %> >No address specified...
align=right nowrap>ICQ:  >&M_NAME=<% =ChkString(rs("M_NAME"), "urlpath") %>">&img=5" border="0" align="absmiddle"><% =ChkString(rs("M_ICQ"), "display") %> 
align=right nowrap>YAHOO IM:  >&.src=pg">&m=g&t=2"> 
align=right nowrap>AIM:  >&M_NAME=<% =ChkString(rs("M_NAME"), "urlpath") %>"><% =ChkString(rs("M_AIM"), "display") %> 
More About Me
valign=top align=right nowrap width="10%"> Bio:  valign=top> <% if IsNull(strMybio) or trim(strMyBio) = "" then Response.Write("-") else Response.Write(formatStr(strMyBio)) %>
valign=top align=right nowrap width="10%"> Hobbies:  > <% if IsNull(strMyHobbies) or trim(strMyHobbies) = "" then Response.Write("-") else Response.Write(formatStr(strMyHobbies)) %>
valign=top align=right nowrap width="10%"> Latest News:  valign=top> <% if IsNull(strMyLNews) or trim(strMyLNews) = "" then Response.Write("-") else Response.Write(formatStr(strMyLNews)) %>
Favorite Quote:  valign=top> <% if IsNull(strMyQuote) or Trim(strMyQuote) = "" then Response.Write("-") else Response.Write(formatStr(strMyQuote)) %>
Links 
align=right nowrap width="10%">Homepage: >" target="_Blank"><% =ChkString(rs("M_Homepage"), "display") %> >No homepage specified...
align=right nowrap width="10%">Cool Links:  >" target="_Blank"><% =ChkString(rs("M_LINK1"), "display") %> 
align=right nowrap width="10%">  >" target="_Blank"><% =ChkString(rs("M_LINK2"), "display") %> 
<% if strUseExtendedProfile then %> <% else%>

Back to previous page

 

<% end if case "Edit" %>

User Profile

" method="post"> "> It is up to you to keep your profile up to date.
<% if strAuthType = "nt" then %> Your NT account is shown. Click Submit to carry on.

<% else if strAuthType = "db" then %> Please Fill the Form in with your details.

<% end if end if %> If you have not registered then do so here.
<% if strAuthType = "nt" then %> <% else if strAuthType = "db" then %> <% end if end if %>
Your Account: <% =Session(strCookieURL & "userid") %>
align=right nowrap>User Name: >">
align=right nowrap>Password: >">
align=center colspan=2>

<% case "goEdit" if strAuthType = "db" then if strDBNTUserName = "" then strDBNTUserName = Request.Form("Name") end if end if '## Forum_SQL strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_NAME" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_USERNAME" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_EMAIL" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_FIRSTNAME" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LASTNAME" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_LEVEL" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_TITLE" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_PASSWORD" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_ICQ" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_YAHOO" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_AIM" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_COUNTRY" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_POSTS" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_CITY" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_STATE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_HIDE_EMAIL" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_DATE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_HOMEPAGE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LINK1" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LINK2" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_AGE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_MARSTATUS" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_SEX" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_OCCUPATION" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_HOBBIES" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_QUOTE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_BIO" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LNEWS" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_SIG" strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS" strSql = strSql & " WHERE "&Strdbntsqlname&" = '" & ChkString(STRdbntUserName, "decode") & "' " if strAuthType = "db" then strSql = strSql & " AND M_PASSWORD = '" & ChkString(Request.Form("Password"),"SQLString") & "'" end if ' QuoteOk = ChkQuoteOk(STRdbntUserName) set rs = my_Conn.Execute(strSql) if rs.BOF or rs.EOF or not(ChkQuoteOk(STRdbntUserName)) or not(ChkQuoteOk(Password)) then %>

Invalid UserName or Password

Go Back To Retry

<% if strUseExtendedProfile then %>

Back To Forum

<% end if else '## Display Edit Profile Page %>

Edit User Profile

" method="Post" id=Form1 name=Form1> ">

<% end if case "Modify" %>

Modify Member

NOTE: Only Administrators can Modify a Member.

"> "> "> ">
<% if strAuthType="db" then %> <% elseif strAuthType="nt" then %> <% 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>
<% case "goModify" mLev = cint(chkUser(STRdbntUserName, Request.Form("Pass"))) if mLev > 0 then '## is Member if mLev = 4 then '## Forum_SQL strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_NAME" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_USERNAME" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_EMAIL" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_FIRSTNAME" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LASTNAME" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_LEVEL" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_TITLE" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_PASSWORD" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_ICQ" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_YAHOO" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_AIM" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_COUNTRY" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_POSTS" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_CITY" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_STATE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_HIDE_EMAIL" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_DATE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_HOMEPAGE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LINK1" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LINK2" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_AGE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_MARSTATUS" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_SEX" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_OCCUPATION" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_HOBBIES" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_QUOTE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_BIO" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LNEWS" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_SIG" strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS" strSql = strSql & " WHERE MEMBER_ID = " & ChkString(Request.Form("MEMBER_ID"), "SQLString") set rs = my_Conn.Execute(strSql) '## Display Edit Profile Page %>

Modify User Profile

" method="Post" id=Form1 name=Form1>
"> "> ">

<% else %>

No Permissions to Modify a Member

Go Back to Re-Authenticate

<% if strUseExtendedProfile then %>

Back To Forum

<% end if end if else %>

No Permissions to Modify a Member

Go Back to Re-Authenticate

<% if strUseExtendedProfile then %>

Back To Forum

<% end if end if case "EditIt" Err_Msg = "" if trim(Request.Form("Name")) = "" then Err_Msg = Err_Msg & "
  • You must choose a UserName
  • " end if if (Instr(Request.Form("Name"), ">") > 0 ) or (Instr(Request.Form("Name"), "<") > 0) then Err_Msg = Err_Msg & "
  • > and < are not allowed in the UserName, Please Choose Another
  • " end if if strAuthType = "db" then if trim(Request.Form("Password")) = "" then Err_Msg = Err_Msg & "
  • You must choose a Password
  • " end if if Len(Request.Form("Password")) > 25 then Err_Msg = Err_Msg & "
  • Your Password can not be greater than 25 characters
  • " end if if Request.Form("Password") <> Request.Form("Password2") then Err_Msg = Err_Msg & "
  • Your Passwords didn't match.
  • " end if end if if Request.Form("Email") = "" then Err_Msg = Err_Msg & "
  • You Must give an email address
  • " end if if EmailField(Request.Form("Email")) = 0 then Err_Msg = Err_Msg & "
  • You Must enter a valid email address
  • " 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 & "
  • You Must prefix your URL with http:// or https://
  • " 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 = '" & Trim(ChkString(Request.Form("Email"), "SQLString")) &"'" set rs = my_Conn.Execute (strSql) if rs.BOF and rs.EOF then '## Do Nothing - proceed else Err_Msg = Err_Msg & "
  • Email Address already in use, Please Choose Another
  • " end if rs.close set rs = nothing end if end if if Len(ChkString(Request.Form("Sig"),"message")) > 255 then Err_Msg = Err_Msg & "
  • Your signature can not be greater than 255 characters. " Err_Msg = Err_Msg & "It now is " & Len(ChkString(Request.Form("Sig"),"message")) & " characters long.
  • " end if if Err_Msg = "" then if Trim(Request.Form("Homepage")) <> "" and lcase(trim(Request.Form("Homepage"))) <> "http://" and Trim(lcase(Request.Form("Homepage"))) <> "https://" then regHomepage = ChkString(Request.Form("Homepage"),"url") else regHomepage = " " end if if Trim(Request.Form("LINK1")) <> "" and lcase(trim(Request.Form("LINK1"))) <> "http://" and Trim(lcase(Request.Form("LINK1"))) <> "https://" then regLink1 = ChkString(Request.Form("LINK1"),"url") else regLink1 = " " end if if Trim(Request.Form("LINK2")) <> "" and lcase(trim(Request.Form("LINK2"))) <> "http://" and Trim(lcase(Request.Form("LINK2"))) <> "https://" then regLink2 = ChkString(Request.Form("LINK2"),"url") else regLink2 = " " end if if Trim(Request.Form("PHOTO_URL")) <> "" and lcase(trim(Request.Form("PHOTO_URL"))) <> "http://" and Trim(lcase(Request.Form("PHOTO_URL"))) <> "https://" then regPhoto_URL = ChkString(Request.Form("Photo_URL"),"url") else regPhoto_URL = " " end if '## Forum_SQL strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS " strSql = strSql & " SET M_PASSWORD = '" & ChkString(Request.Form("Password"),"SQLString") & "', " strSql = strSql & " M_COUNTRY = '" & ChkString(Request.Form("Country"),"SQLString") & "', " if strICQ = "1" then strSql = strSql & " M_ICQ = '" & ChkString(Request.Form("ICQ"),"SQLString") & "', " end if if strYAHOO = "1" then strSql = strSql & " M_YAHOO = '" & ChkString(Request.Form("YAHOO"),"SQLString") & "', " end if if strAIM = "1" then strSql = strSql & " M_AIM = '" & ChkString(Request.Form("AIM"),"SQLString") & "', " end if if strHOMEPAGE = "1" then strSql = strSql & " M_Homepage = '" & ChkString(Trim(regHomepage),"SQLString") & "', " end if strSql = strSql & " M_SIG = '" & ChkString(Request.Form("Sig"),"message") & "', " strSql = strSql & " M_EMAIL = '" & ChkString(Request.Form("Email"),"SQLString") & "' " if strfullName = "1" then strSql = strSql & ", M_FIRSTNAME = '" & ChkString(Request.Form("FirstName"), "SQLString") & "'" strSql = strSql & ", M_LASTNAME = '" & ChkString(Request.Form("LastName"),"SQLString") & "'" end if if strCity = "1" then strsql = strsql & ", M_CITY = '" & ChkString(Request.Form("City"),"SQLString") & "'" end if if strState = "1" then strsql = strsql & ", M_STATE = '" & ChkString(Request.Form("State"),"SQLString") & "'" end if ' strsql = strsql & ", M_HIDE_EMAIL = '" & ChkString(Request.Form("HideMail"),"SQLString") & "'" if strPicture = "1" then strsql = strsql & ", M_PHOTO_URL = '" & ChkString(Request.Form("Photo_URL"),"SQLString") & "'" end if if strFavLinks = "1" then strsql = strsql & ", M_LINK1 = '" & ChkString(Request.Form("LINK1"),"SQLString") & "'" strSql = strSql & ", M_LINK2 = '" & ChkString(Request.Form("LINK2"),"SQLString") & "'" end if if strAge = "1" then strSql = strsql & ", M_AGE = '" & ChkString(Request.Form("Age"),"SQLString") & "'" end if if strMarStatus = "1" then strSql = strSql & ", M_MARSTATUS = '" & ChkString(Request.Form("MarStatus"),"SQLString") & "'" end if if strSex = "1" then strSql = strsql & ", M_SEX = '" & ChkString(Request.Form("Sex"),"SQLString") & "'" end if if strOccupation = "1" then strSql = strSql & ", M_OCCUPATION = '" & ChkString(Request.Form("Occupation"),"SQLString") & "'" end if if strBio = "1" then strSql = strSql & ", M_BIO = '" & ChkString(Request.Form("Bio"),"message") & "'" end if if strHobbies = "1" then strSql = strSql & ", M_HOBBIES = '" & ChkString(Request.Form("Hobbies"),"message") & "'" end if if strLNews = "1" then strsql = strsql & ", M_LNEWS = '" & ChkString(Request.Form("LNews"),"message") & "'" end if if strQuote = "1" then strSql = strSql & ", M_QUOTE = '" & ChkString(Request.Form("Quote"),"message") & "'" end if strSql = strSql & " WHERE M_NAME = '" & ChkString(Request.Form("Name"), "SQLString") & "' " if strAuthType = "db" then strSql = strSql & " AND M_PASSWORD = '" & ChkString(Request.Form("Password-d"), "SQLString") & "'" end if my_Conn.Execute(strSql) regHomepage = "" %>

    Profile Updated.

    <% if (strUseExtendedProfile) then%>

    Back To Forum

    <% end if else %>

    There Was A Problem With Your Details

      <% =Err_Msg %>

    Go Back To Enter Data

    <% if strUseExtendedProfile then %>

    Back To Forum

    <% end if end if case "ModifyIt" mLev = cint(chkUser(STRdbntUserName, Request.Form("Pass"))) if mLev > 0 then '## is Member if mLev = 4 then '## is Admin Err_Msg = "" if trim(Request.Form("Name")) = "" then Err_Msg = Err_Msg & "
  • You must set a UserName
  • " end if if (Instr(Request.Form("Name"), ">") > 0 ) or (Instr(Request.Form("Name"), "<") > 0) then Err_Msg = Err_Msg & "
  • > and < are not allowed in the UserName, Please Choose Another
  • " end if '## Forum_SQL strSql = "SELECT M_NAME FROM " & strMemberTablePrefix & "MEMBERS " strSql = strSql & " WHERE M_NAME = '" & Trim(ChkString(Request.Form("Name"), "SQLString")) &"' " strSql = strSql & " AND MEMBER_ID <> " & Trim(ChkString(Request.Form("Member_ID"), "SQLString")) &" " set rs = my_Conn.Execute (strSql) if rs.BOF and rs.EOF then '## Do Nothing - proceed else Err_Msg = Err_Msg & "
  • UserName is already in use,
    Please Choose Another
  • " end if rs.close set rs = nothing if strAuthType = "db" then if trim(Request.Form("Password")) = "" then Err_Msg = Err_Msg & "
  • You must set a Password
  • " end if if Len(Request.Form("Password")) > 25 then Err_Msg = Err_Msg & "
  • The Password can not be greater than 25 characters
  • " end if ' if Request.Form("Password") <> Request.Form("Password2") then ' Err_Msg = Err_Msg & "
  • The Passwords didn't match.
  • " ' end if end if if Request.Form("Email") = "" then Err_Msg = Err_Msg & "
  • You Must set an email address
  • " end if if EmailField(Request.Form("Email")) = 0 then Err_Msg = Err_Msg & "
  • You Must enter a valid email address
  • " 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 & "
  • You Must prefix the URL with http:// or https://
  • " end if if Len(Request.Form("Sig")) > 255 then Err_Msg = Err_Msg & "
  • The signature can not be greater than 255 characters. " Err_Msg = Err_Msg & "It now is " & Len(Request.Form("Sig")) & " characters long.
  • " end if if Err_Msg = "" then '## it is ok to update the profile if Trim(Request.Form("Homepage")) <> "" and lcase(trim(Request.Form("Homepage"))) <> "http://" and Trim(lcase(Request.Form("Homepage"))) <> "https://" then regHomepage = chkString(Request.Form("Homepage"),"url") else regHomepage = " " end if if Trim(Request.Form("LINK1")) <> "" and lcase(trim(Request.Form("LINK1"))) <> "http://" and Trim(lcase(Request.Form("LINK1"))) <> "https://" then regLink1 = chkString(Request.Form("LINK1"),"url") else regLink1 = " " end if if Trim(Request.Form("LINK2")) <> "" and lcase(trim(Request.Form("LINK2"))) <> "http://" and Trim(lcase(Request.Form("LINK2"))) <> "https://" then regLink2 = chkString(Request.Form("LINK2"),"url") else regLink2 = " " end if if Trim(Request.Form("PHOTO_URL")) <> "" and lcase(trim(Request.Form("PHOTO_URL"))) <> "http://" and Trim(lcase(Request.Form("PHOTO_URL"))) <> "https://" then regPhoto_URL = chkString(Request.Form("Photo_URL"),"url") else regPhoto_URL = " " end if '## Forum_SQL strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS " strSql = strSql & " SET M_NAME = '" & chkString(Request.Form("Name"),"SQLString") & "'" if strAuthType = "nt" then strSql = strSql & ", M_USERNAME = '" & chkString(Request.Form("Account"),"SQLString") & "'" else if strAuthType = "db" then strSql = strSql & ", M_PASSWORD = '" & chkString(Request.Form("password"),"SQLString") & "'" end if end if strSql = strSql & ", M_EMAIL = '" & chkString(Request.Form("Email"),"SQLString") & "'" strSql = strSql & ", M_TITLE = '" & chkString(Request.Form("Title"),"SQLString") & "'" strSql = strSql & ", M_POSTS = " & chkString(Request.Form("Posts"),"SQLString") & " " strSql = strSql & ", M_COUNTRY = '" & chkString(Request.Form("Country"),"SQLString") & "'" if strICQ = "1" then strSql = strSql & ", M_ICQ = '" & chkString(Request.Form("ICQ"),"SQLString") & "'" end if if strYAHOO = "1" then strSql = strSql & ", M_YAHOO = '" & chkString(Request.Form("YAHOO"),"SQLString") & "'" end if if strAIM = "1" then strSql = strSql & ", M_AIM = '" & chkString(Request.Form("AIM"),"SQLString") & "'" end if if strHOMEPAGE = "1" then strSql = strSql & ", M_HOMEPAGE = '" & chkString(Request.Form("Homepage"),"SQLString" ) & "'" end if strSql = strSql & ", M_SIG = '" & chkString(Request.Form("Sig"),"message") & "'" strSql = strSql & ", M_LEVEL = " & chkString(Request.Form("Level"),"SQLString") if strfullName = "1" then strSql = strSql & ", M_FIRSTNAME = '" & chkString(Request.Form("FirstName"),"SQLString") & "'" strSql = strSql & ", M_LASTNAME = '" & chkString(Request.Form("LastName"),"SQLString") & "'" end if if strCity = "1" then strsql = strsql & ", M_CITY = '" & chkString(Request.Form("City"),"SQLString") & "'" end if if strState = "1" then strsql = strsql & ", M_STATE = '" & chkString(Request.Form("State"),"SQLString") & "'" end if ' strsql = strsql & ", M_HIDE_EMAIL = '" & chkString(Request.Form("HideMail"),"SQLString") & "'" if strPicture = "1" then strsql = strsql & ", M_PHOTO_URL = '" & chkString(Request.Form("Photo_URL"),"SQLString") & "'" end if if strFavLinks = "1" then strsql = strsql & ", M_LINK1 = '" & chkString(Request.Form("LINK1"),"SQLString") & "'" strSql = strSql & ", M_LINK2 = '" & chkString(Request.Form("LINK2"),"SQLString") & "'" end if if strAge = "1" then strSql = strsql & ", M_AGE = '" & chkString(Request.Form("Age"),"SQLString") & "'" end if if strMarStatus = "1" then strSql = strSql & ", M_MARSTATUS = '" & chkString(Request.Form("MarStatus"),"SQLString") & "'" end if if strSex = "1" then strSql = strsql & ", M_SEX = '" & chkString(Request.Form("Sex"),"SQLString") & "'" end if if strOccupation = "1" then strSql = strSql & ", M_OCCUPATION = '" & chkString(Request.Form("Occupation"),"SQLString") & "'" end if if strHobbies = "1" then strSql = strSql & ", M_HOBBIES = '" & chkString(Request.Form("Hobbies"),"message") & "'" end if if strQuote = "1" then strSql = strSql & ", M_QUOTE = '" & chkString(Request.Form("Quote"),"message") & "'" end if if strBio = "1" then strSql = strSql & ", M_BIO = '" & chkString(Request.Form("Bio"),"message") & "'" end if if strLNews = "1" then strsql = strsql & ", M_LNEWS = '" & chkString(Request.Form("LNews"),"message") & "'" end if strSql = strSql & " WHERE MEMBER_ID = " & ChkString(Request.Form("MEMBER_ID"), "SQLString") my_Conn.Execute(strSql) if ChkString(Request.Form("Level"),"") = "1" then '## Forum_SQL - Remove the member from the moderator table strSql = "DELETE FROM " & strTablePrefix & "MODERATOR " strSql = strSql & " WHERE " & strTablePrefix & "MODERATOR.MEMBER_ID = " & ChkString(Request.Form("MEMBER_ID"), "SQLString") my_Conn.Execute (strSql) end if %>

    Profile Updated.

    <% if (strUseExtendedProfile) then%>

    Back To Forum

    <% end if else %>

    There Was A Problem With The Details

      <% =Err_Msg %>

    Go Back To Enter Data

    <% if strUseExtendedProfile then %>

    Back To Forum

    <% end if end if else 'Member but no Admin %>

    No Permissions to Modify a Member

    Go Back to Re-Authenticate

    <% if strUseExtendedProfile then %>

    Back To Forum

    <% end if end if else 'Not logged on or no member %>

    No Permissions to Modify a Member

    Go Back to Re-Authenticate

    <% if strUseExtendedProfile then %>

    Back To Forum

    <% end if end if end select on error resume next rs.close set rs=nothing if not(strUseExtendedProfile) then %> <% else WriteFooter end if %>