%
'***********************************************************************
'** Copyright (C) 2001 - 2004 Max Yuan All Rights Reserved
'**
'** By using this program, you are agreeing to the terms of the
'** GNU General Public License.
'**
'** 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 MaxWebPortal must remain intact
'** in the scripts and in the outputted HTML.
'** The "powered by" text/logo with a link back to
'** http://www.maxwebportal.com in the footer of the pages MUST
'** remain visible when the pages are viewed on the internet or intranet.
'**
'** Support can be obtained from support forums at:
'** http://www.maxwebportal.com
'**
'** Email: maxwebportal@hotmail.com
'** ICQ: 148111300
'***********************************************************************
'** This Page Contains source code of Snitz Forums 2000
'***********************************************************************
'#################################################################################
'## 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
'#################################################################################
CurPageInfoChk = "1"
function CurPageInfo ()
If Request.QueryString("mode") = "display" Then
strOnlineQueryString = ChkActUsrUrl(Request.QueryString)
PageName = "Member Profile"
PageAction = "Viewing
"
PageLocation = "pop_profile.asp?" & strOnlineQueryString & ""
CurPageInfo = PageAction & " " & "" & PageName & ""
else
CurPageInfo = "Editing
Member Profile"
end if
end function
%>
<%
if not(strUseExtendedProfile) and Request.QueryString("verkey") = "" then %>
<%
else
%>
<% end if
if strDBNTUserName = "" then
doNotLoggedInForm
else
%>
<%
if Request.QueryString("mode") = "Moderator" and mLev = 4 then
select case Request.QueryString("action")
case "del"
strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " SET M_LEVEL = 1 "
strSql = strSql & " WHERE M_LEVEL = 2 AND MEMBER_ID = " & cLng(Request.QueryString("id"))
my_Conn.Execute(strsql)
case "add"
strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " SET M_LEVEL = 2 "
strSql = strSql & " WHERE M_LEVEL = 1 AND MEMBER_ID = " & cLng(Request.QueryString("id"))
my_Conn.Execute(strsql)
end select %>
Note: This NT account has not been registered yet, thus the profile is not available.
If this is your account, click here to register.
There is a Problem!
>Your verification key did not match the one that we have in our database. Please try changing your email address again by clicking the Profile link at the top right hand corner. If this problem persists, please contact the Administator of the site.
<% Response.End elseif rsKey("M_EMAIL") = rsKey("M_NEWEMAIL") then %>Email Already Verified!
>Your email address has already been updated in our database. If this problem persists, please contact the Administator of the site.
<% Response.End else userID = rsKey("MEMBER_ID") 'Update the user email strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS " strSql = strSql & " SET M_EMAIL = '" & chkString(rsKey("M_NEWEMAIL"),"SQLString") & "'" strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & userID my_Conn.Execute (strSql) %>Your Email Address Has Been Upated!
>Your new email address has been succesfully updated in our database.
<% Response.End end if rsKey.close set rsKey = nothing end if %> <% select case Request.QueryString("mode") case "display" '## Display Profile if strUserMemberID <> cint(cLng(Request.QueryString("id"))) and mlev > 0 then lastviewid = Request.Cookies(strCookieURL & "lastviewid") if lastviewid = "" then lastviewid = -1 if cint(lastviewid) <> cint(cLng(Request.QueryString("id"))) then 'update page views strSql = "Update " & strMemberTablePrefix & "MEMBERS" strSql = strSql & " Set M_PAGE_VIEWS = M_PAGE_VIEWS + 1" strSql = strSql & " WHERE MEMBER_ID=" & cLng(Request.QueryString("id")) my_Conn.Execute(strSql) Response.Cookies(strCookieURL & "lastviewid") = cint(cLng(Request.QueryString("id"))) Response.Cookies(strCookieURL & "lastviewid").Expires = dateadd("d",1,now()) end if end if '## Forum_SQL strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID, " & strMemberTablePrefix & "MEMBERS.M_NAME " strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_USERNAME, " & strMemberTablePrefix & "MEMBERS.M_EMAIL " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_FIRSTNAME, " & 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_GOLD" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_REP" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_GTOTAL" strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_RTOTAL" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_CITY " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_STATE " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_COUNTRY " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_POSTS " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_HIDE_EMAIL " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_DATE " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LEVEL " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL " strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_HOMEPAGE" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_LINK1, " & strMemberTablePrefix & "MEMBERS.M_LINK2 " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_AGE, " & strMemberTablePrefix & "MEMBERS.M_MARSTATUS " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_SEX, " & strMemberTablePrefix & "MEMBERS.M_OCCUPATION " strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_SIG" strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_HOBBIES, " & strMemberTablePrefix & "MEMBERS.M_LNEWS " strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_QUOTE, " & strMemberTablePrefix & "MEMBERS.M_BIO " strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_PAGE_VIEWS" strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS " strSql = strSql & " WHERE MEMBER_ID=" & cLng(Request.QueryString("id")) set rs = my_Conn.Execute(strSql) strMyHobbies = rs("M_HOBBIES") strMyLNews = rs("M_LNEWS") strMyQuote = rs("M_QUOTE") strMyBio = rs("M_BIO") if strUseExtendedProfile then strColspan = " colspan=""2"" " strIMURL1 = "javascript:openWindow('" strIMURL2 = "')" else strColspan = "" strIMURL1 = "" strIMURL2 = "" end if mLev = cint(ChkUser2(Request.Cookies(strUniqueID & "User")("Name"), Request.Cookies(strUniqueID & "User")("Pword"))) strMemberDays = DateDiff("d", strToDate(rs("M_DATE")), strToDate(strForumTimeAdjust)) if strMemberDays = 0 then strMemberDays = 1 strMemberPostsperDay = round(rs("M_POSTS")/strMemberDays,2) set rsposts = my_Conn.Execute("SELECT P_COUNT FROM " & strTablePrefix & "TOTALS") if (rsposts("P_COUNT")) <> 0 then strMemberPercentPosts = (round(rs("M_POSTS")/(rsposts("P_COUNT")),2)*100) else strMemberPercentPosts = 0 end if set rsposts = nothing %>| > &name=<% =ChkString(rs("M_NAME"),"urlpath") %>"><% =ChkString(rs("M_NAME"),"display") %> | <% else %>> <% =ChkString(rs("M_NAME"),"display") %> | <% end if%>> חבר מתאריך: <% =ChkDate(rs("M_DATE")) %> |
valign=top>
|
> | <% end if ' UseExtendedMemberProfile %> valign=top width="50%">
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
חזרה לעמוד קודם
|
|
|
<% end if%>
<% case "Edit" %>
פרופיל משתמש <% mwpThemeTableCustomCode = "align=""center"" width=""30%""" mwpThemeBlock_open() if strAuthType = "nt" then %> | |
| Your Account: | <% =Session(strCookieURL & "userid") %> |
| align=right nowrap>שם משתמש: | >"> |
| align=right nowrap>סיסמה: | > |
| align=center colspan=2> |
|
0 then Response.Write("default.asp") else Response.Write(Request.Form("refer")) end if %>">Back
<% end if end if case "ModifyIt" mLev = cint(ChkUser2(STRdbntUserName, pEncrypt(pEnPrefix & Request.Form("Pass")))) if mLev > 0 then '## is Member if mLev = 4 then '## is Admin Err_Msg = "" if Request.Form("Name") = "" then Err_Msg = Err_Msg & "Profile Updated.
<% if lcase(Request.Form("Email")) <> lcase(Request.Form("Email2")) and lcase(strEmail) = "1" and strEmailVal = "1" then if (strUseExtendedProfile) then %>The email address has been changed. A confirmation has been sent to the new email address. The email address has been changed. A confirmation has been sent to the new email address. 0 then Response.Write("default.asp") else Response.Write(Request.Form("refer")) end if %>">Back There Was A Problem With The Details 0 then Response.Write("default.asp") else Response.Write(Request.Form("refer")) end if %>">Back No Permissions to Modify a Member 0 then Response.Write("default.asp") else Response.Write(Request.Form("refer")) end if %>">Back No Permissions to Modify a Member 0 then Response.Write("default.asp") else Response.Write(Request.Form("refer")) end if %>">Back
0 then Response.Write("default.asp") else Response.Write(Request.Form("refer")) end if %>">Back To Home
<%
else
%>
<% if strUseExtendedProfile then %>
<% =Err_Msg %>
Go Back to Re-Authenticate
Go Back to Re-Authenticate