<% '################################################################################# '## Snitz Forums 2000 v3.4.06 '################################################################################# '## Copyright (C) 2000-06 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 Session(strCookieURL & "Approval") <> "15916941253" then scriptname = split(request.servervariables("SCRIPT_NAME"),"/") Response.Redirect "admin_login.asp?target=" & scriptname(ubound(scriptname)) end if '## Forum_SQL - Get membercount from DB strSql = "SELECT COUNT(MEMBER_ID) AS U_COUNT FROM " & strMemberTablePrefix & "MEMBERS_PENDING" Set rs = Server.CreateObject("ADODB.Recordset") rs.open strSql, my_Conn if not rs.EOF then User_Count = rs("U_COUNT") else User_Count = 0 end if rs.close set rs = nothing select case strDBType case "access" if instr(lcase(strConnString), lcase(Server.MapPath("snitz_forums_2000.mdb")))> 0 then Response.Write "
" & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ "
" & _ "WARNING: The location of your access database may not be secure.

" & _ "You should consider moving the database from " & Server.MapPath("snitz_forums_2000.mdb") & " to a directory not directly accessible via a URL" & _ " and/or renaming the database to another name." & _ "

(After moving or renaming your database, remember to change the strConnString setting in config.asp.)" & _ "

" & vbNewLine end if case "sqlserver" if instr(lcase(strConnString), ";uid=sa;")> 0 then Response.Write "
" & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ "
" & _ "WARNING: You are connecting to your MS SQL Server database with the sa user.

" & _ "After you have completed your installation, consider creating a new user with lower privileges" & _ " and use that to connect to the database instead." & _ "

" & vbNewLine end if case "mysql" if instr(lcase(strConnString), ";uid=root;")> 0 then Response.Write "
" & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ "
" & _ "WARNING: You are connecting to your MySQL Server database with the root user.

" & _ "After you have completed your installation, consider creating a new user with lower privileges" & _ " and use that to connect to the database instead." & _ "

" & vbNewLine end if end select Response.Write " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ "
" & vbNewLine & _ " " & getCurrentIcon(strIconFolderOpen,"","align=""absmiddle""") & " All Forums
" & vbNewLine & _ " " & getCurrentIcon(strIconBar,"","align=""absmiddle""") & getCurrentIcon(strIconFolderOpenTopic,"","align=""absmiddle""") & " Admin Section
" & vbNewLine & _ "
" & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ "
" & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine 'Response.Write " " & vbNewLine & _ '" " & vbNewLine & _ '" " & vbNewLine Response.Write "
Administrative Functions
" & vbNewLine & _ "

Forum Feature Configuration:" & vbNewLine & _ "

" & vbNewLine & _ "
" & vbNewLine & _ "

Other Configuration Options and Features:" & vbNewLine & _ "

" & vbNewLine & _ "
" & vbNewLine & _ '"

Important Information from Snitz Forums 2000:" & vbNewLine & _ '"

" & vbNewLine & _ "
" & vbNewLine & _ "
" & vbNewLine WriteFooter Response.End %>