Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 link.asp is a waste of time
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 26 August 2002 :  16:40:13  Show Profile
What is the point of link.asp?

It does some pointless queries on the database and then redirects to another asp page.

I've redone link.asp so that it does not DO ANY database calls or include any other files.

<%
'#################################################################################
'## Copyright (C) 2000-02 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 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 Request.QueryString("TOPIC_ID") <> "" then
Response.Redirect "topic.asp?TOPIC_ID=" & Request.QueryString("TOPIC_ID")
elseif Request.QueryString("FORUM_ID") <> "" then
Response.Redirect "forum.asp?FORUM_ID=" & Request.QueryString("FORUM_ID")
else
Response.Redirect "default.asp"
end if
%>

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 26 August 2002 :  16:46:31  Show Profile
it was only left in because some mods still use it. It's not necessary anymore because we no longer pass as much info in the QueryString as we used to. That was the only purpose for it. To query the database and build the whole querystring from just the TOPIC_ID or FORUM_ID. (including the topic title and the forum title)
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 26 August 2002 :  19:09:45  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
Older forums (like this one...) would have some posts that utilize link.asp

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 26 August 2002 :  19:11:25  Show Profile
Yes, that is true also. So, it would probably be a good idea to leave it in, but change it as shown in the topic.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07