Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > feedmelinks.com/testing/test.php
<%
	# $Id: test.php,v 1.1 2004/11/20 06:09:34 hirokai Exp $
	include_once( "modules/utils.inc.php" );

	$tok = $_COOKIE["c_pass_token"];
	$user = $who ? $who : $_COOKIE["c_uid"];
	if( true || $tok && $tok == md5( getPasswdForUser( $user ))) {
%>

<title> feed me links test page </title>

<% 
	include( "$modules/header.inc.php" ); 
%>
<br/>
<p/>

trackReferer( $argLinkId, $argUserId, <%= $HTTP_REFERER %>): <% trackReferer( 15495, "jm3", $HTTP_REFERER ); %>
<br />

<form>
<input name="id" value="<%= $id%>">
<input type="submit" value="evaluate">
</form>

<p/>

getCommentersForLink( <%= $id %> ) : <%= getCommentersForLink( $id ) %>

<p/>

you are:  <%= $user %>
<p/>

you are:  <%= $tok ? "logged in" : "not logged in" %>
<p/>

<%
	$ts = getFieldForLink( $id, "createDate" );
%>
formatAsDCDate( <%= $ts %> ) : <%= formatAsDCDate( $ts ) %>
<p/>

formatTS( <%= $ts %> ) : <%= formatTS( $ts ) %>
<p/>

isPublic( getNameForFolder( getFolderForLink( 3175 ))) : <%= isPublic( getNameForFolder( getFolderForLink( 3175 ))) %><br />
isPublic( getNameForFolder( getFolderForLink( 10884 ))) : <%= isPublic( getNameForFolder( getFolderForLink( 10884 ))) %><br />

<br />
<div width="650">
<% include( "$modules/footer.inc.php" ); %>
</div>

<% } else {  %>
LOCKED OUT!
<meta http-equiv="refresh" content="0; URL=http://feedmelinks.com/login?bounceToPage=<%= urlencode( "test" ) %>" />
<% } %>

Return current item: FeedMeLinks, Social BookmarkingSince2002