Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > feedmelinks.com/contribute/features/show-feature.php
<% # $Id: show-feature.php,v 1.4 2004/05/13 18:19:32 hirokai Exp $ %>
<% 
	include_once( "../../modules/utils.inc.php" ); 
	$tok =  $authenticated = $_COOKIE["c_pass_token"];
	$u   =  $sessionUserId = $_COOKIE["c_uid"];

	if( $u ) 
		include( "$modules/header.inc.php" ); 
	else {
		include( "$modules/header.insecure.inc.php" ); 
		include( "$modules/menu-insecure.inc.php" ); 
	}
%>
<base href="http://dev.feedmelinks.com/contribute/features/edit" />
<%
		if( $id && $tok && $tok == md5( getPasswdForUser( $u ))) {
			mysql_connect( );
			mysql_selectdb( getDBName() );
			$qs = "SELECT * FROM linksFeatures WHERE ID = $id";
			$q = mysql_query( $qs );
			if( $q ) {
				$id = mysql_result($q,0,"ID");
				$name = urldecode( mysql_result($q,0,"name"));
				$type = urldecode( mysql_result($q,0,"type"));
				$desc = urldecode( mysql_result($q,0,"description"));
			}
			mysql_close();
			$op = "edit";
%>

<br />
<h2>Feature Request <%= $id %>: <%= $name %> </h2>
<!-- (type: <%= $type %>) -->

<div>
<div style="width: 500px; border: 1px solid white;" class="ta field"><%= $desc %></div>
</div>
<br /> 
<%

	} else {
		echo "ERROR: no auth or no feature request id ($id)";
	}
%>

<div class="attention">
<a href="http://dev.feedmelinks.com/contribute/features/?showCat=">show all feature requests</a>
</div>

<% include( "$modules/footer.inc.php" ); %>
Return current item: FeedMeLinks, Social BookmarkingSince2002