<% '**************************************************************************************** '** Copyright Notice '** Copyright 2003 DUware All Rights Reserved. '** This program is free software; you can modify (at your own risk) any part of it '** under the terms of the License that accompanies this software and use it both '** privately and commercially. '** All copyright notices must remain in tacked in the scripts and the '** outputted HTML. '** You may use parts of this program in your own private work, but you may NOT '** redistribute, repackage, or sell the whole or any part of this program even '** if it is modified or reverse engineered in whole or in part without express '** permission from the author. '** You may not pass the whole or any part of this application off as your own work. '** All links to DUware and powered by logo's must remain unchanged and in place '** and must remain visible when the pages are viewed unless permission is first granted '** by the copyright holder. '** This program is distributed in the hope that it will be useful, '** but WITHOUT ANY WARRANTY; without even the implied warranty of '** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER '** WARRANTIES WHETHER EXPRESSED OR IMPLIED. '** No official support is available for this program but you may post support questions at: - '** http://www.duware.com/support '**************************************************************************************** %> <% if(Request.QueryString("iLink") <> "") then cmdHits__varLink = Request.QueryString("iLink") %> <% set cmdHits = Server.CreateObject("ADODB.Command") cmdHits.ActiveConnection = MM_connDUdirectory_STRING cmdHits.CommandText = "UPDATE LINKS SET LINK_HITS = LINK_HITS + 1 WHERE LINK_ID = " + Replace(cmdHits__varLink, "'", "''") + "" cmdHits.CommandType = 1 cmdHits.CommandTimeout = 0 cmdHits.Prepared = true cmdHits.Execute() %> <% Dim rsDetail__MMColParam rsDetail__MMColParam = "1" If (Request.QueryString("iLink") <> "") Then rsDetail__MMColParam = Request.QueryString("iLink") End If %> <% set rsDetail = Server.CreateObject("ADODB.Recordset") rsDetail.ActiveConnection = MM_connDUdirectory_STRING rsDetail.Source = "SELECT LINK_URL FROM LINKS WHERE LINK_ID = " + Replace(rsDetail__MMColParam, "'", "''") + "" rsDetail.CursorType = 0 rsDetail.CursorLocation = 2 rsDetail.LockType = 3 rsDetail.Open() rsDetail_numRows = 0 Response.Redirect(rsDetail.Fields.Item("LINK_URL").Value) rsDetail.Close() %>