<%
# $Id: t.php,v 1.6 2004/11/07 06:19:23 hirokai Exp $
include_once( "modules/utils.inc.php" );
$tok = $authenticated = $_COOKIE["c_pass_token"];
$u = $sessionUserId = $_COOKIE["c_uid"];
$linkID = substr( $PATH_INFO, 1);
$u = $u ? $u : "anonymous";
$con_t = mysql_connect();
mysql_selectdb( getDBName() );
$qs = getQuery( "track_hit", $linkID, $u );
$q = mysql_query( $qs );
conClose( $con_t);
header("Location: " . urldecode( getURLForLink( $linkID )) );
%>
<meta http-equiv=Refresh content="2; URL=<%= urldecode( getURLForLink( $linkID )) %>" />
<h1><a href="<%= urldecode( getURLForLink( $linkID )) %>">CLICK TO LOAD</a></h1>