Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > feedmelinks.com/urls-like.php
<%
	include_once( "modules/utils.inc.php" );
	include( "$modules/header.insecure.inc.php" );

$tok =  $_COOKIE["c_pass_token"];
$u   =  $_COOKIE["c_uid"];
$sessionUserId = $u;
%>
<% include( "$modules/header.inc.php" ); %>
<p />
<%

if( $tok && $tok == md5( getPasswdForUser( $u ))) {

	if( $id ) {
		echo "Links similar to $id:<br />";
		showSimilarUrls( getURLForLink( $id ), $id,  0 );
	} else if( $url )
		showSimilarUrls( $url, $id, 0 );
	else {
%>

enter a URL:
<form action="/urls-like">
<input type="text" name="url" maxlength="255" size="50" />
</form>

<%
	}

} %>
<% include( "$modules/footer.inc.php" ); %>

Return current item: FeedMeLinks, Social BookmarkingSince2002