Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > recent.php
<%
	# $Id: recent.php,v 1.14 2005/01/01 01:40:38 hirokai Exp $
	include_once( "modules/utils.inc.php" );
	Header( "Content-type: text/plain");
	$tok =  $authenticated = ($token ? $token : $_COOKIE["c_pass_token"]);
	$u   =  $sessionUserId = ($user ? $user : $_COOKIE["c_uid"]);

	$site = getSiteUrl();

	$links_per_page = 16;
	$MAX_NAME_LENGTH = 35;

	# this is passed in, along with id
	$start = $start ? $start : 0;

	$con_recentKompact = mysql_connect();
	mysql_selectdb( getDBName() );

	$qs2 = "SELECT count(*) FROM links;";
	$q2 = mysql_query( $qs2 );
	if( $q2 ) $totalNumLinks = mysql_result($q2,0);
	$qs2 = "SELECT count(*) FROM linksUsers;";
	$q2 = mysql_query( $qs2 );
	if( $q2 ) $totalNumUsers = mysql_result($q2,0);

	$range = "JUNK";
	echo "user=$u&\n";
	echo "&tok=$tok&\n";
	echo "&total_links=$totalNumLinks&\n";
	echo "&total_users=$totalNumUsers&\n";
	echo "&returning_recent=$links_per_page&\n";
	echo "&first_db_row=$start&\n\n";

  $hideTimes = true;
	$limit = 30;
	$format = "nvp";
	include_once( "$modules/recent-with-times.inc.php" ); 
%>
Return current item: FeedMeLinks, Social BookmarkingSince2002