Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > feedmelinks.com/recent-kompact.php
<%
	# $Id: recent-kompact.php,v 1.24 2005/01/19 05:29:17 hirokai Exp $
	$page = "recent-kompact";
	include_once( "modules/utils.inc.php" );
	$tok =  $authenticated = $_COOKIE["c_pass_token"];
	$u   =  $sessionUserId = $_COOKIE["c_uid"];

	$site = getSiteUrl();

	$MAX_LINKS = 12;
	$MAX_NAME_LENGTH = 35;
%>
<title> Feed Me Links : Recent </title>
<meta http-equiv=Refresh content="60; URL=<%= $site %>/recent-kompact" />
<base target="_content" />
<base href="<%= $site %>/recent-kompact" />
<% include( "$modules/header.insecure.inc.php" ); %>
<%
		$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);
		echo "<a href=\"$site\"><b>feedmelinks</b></a>: $totalNumLinks total links, ";
		echo "$totalNumUsers users.<br />";
%>

<style type="text/css">
	body { background-color: white; }
	div { padding: 3px; }
</style>

<form action="<%= $site %>/search" method="get">
	search: <input name="q" class="textField" style="font-size: 11px;" />
</form>

<br />
<center>
last <%= $MAX_LINKS %> links added:
(<a href="/recent-kompact" target="_top" >refresh</a>)
</center>
 &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; . 
<br />

<%
  $hideTimes = true;
	$limit = 30;
	$format = "2-per-line";
	include_once( "$modules/recent-with-times.inc.php" ); 
	if( $tok && $tok == md5( getPasswdForUser( $u )) ) {
%>
			<tr>
				<td <%= $bg %>><br />
				<br />&nbsp;&nbsp;
				(<a href="/link-cruiser" title="more...">cruise more recent links...</a>)<br />
 &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; .  &nbsp; . 
				</td>
			</tr>
			<form>
			<tr>
				<td <%= $bg %>><div class="header">my <%= getCatsName() %>:</div>
				<div class="funnelTD" style="width: 200px; padding: 8px;">
					<select class="textField" onChange="openFolder(this);"><% include_once( "$modules/folder-menu.inc.php" ); %></div>
					</td>
			</tr>
			</form>
			<% } %>
		</table>

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

Return current item: FeedMeLinks, Social BookmarkingSince2002