Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > feedmelinks.com/testing/isprivatelink.php
<%
	include_once( "../modules/utils.inc.php" );
	$page = "index";
	$tok =  $_COOKIE["c_pass_token"];
	$u   =  $sessionUserId = $_COOKIE["c_uid"];
	if( (! $tok || $tok != md5( getPasswdForUser( $u )) ) && ! $l ) {
%>
log in first, doofus.
<%
	} else {
		# first, set up options and defaults.
		$MAX_URL_LENGTH = 40;
		$MAX_NAME_LENGTH = 40;
		$USE_LONG_URLS = 0;
	}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<title> FML | TEST HARNESS </title>

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

	$l0 = 17803;
	$l1 = 17810;
	$l2 = 17811;
	$l3 = 17812;
	$l4 = 17813;
%>
<h1>Is-Private-Link test:</h1>
<h2>
<%
	echo " PUBLIC SINGLE CAT TEST , ($l0)<Br />";
	echo "isPrivateLink( $l0 ): " . isPrivateLink( $l0 ) . "<p />" ;
	echo " PRIVATE SINGLE CAT TEST , (17810)<Br />";
	echo "isPrivateLink( $l1 ): " . isPrivateLink( $l1 ) . "<p />" ;
	echo " private multi cat test , (17811)<Br />";
	echo "isPrivateLink( $l2 ): " . isPrivateLink( $l2 ) . "<p />" ;
	echo " private by link test added by jm3, (17812)<Br />";
	echo "isPrivateLink( $l3 ): " . isPrivateLink( $l3 ) . "<p />" ;
	echo "  private unfiled by link test , (17813)<Br />";
	echo "isPrivateLink( <a href=\"/$l4\">$l4</a> ): " . isPrivateLink( $l4 ) . "<p />" ;
%>
</h2>

<div>
	
</div>

Return current item: FeedMeLinks, Social BookmarkingSince2002