Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > contribute/features/do-delete.php
<% # $Id: do-delete.php,v 1.1 2004/04/07 04:05:07 hirokai Exp $ %>
<% 
	include_once( "../../modules/utils.inc.php" ); 
	$tok =  $authenticated = $_COOKIE["c_pass_token"];
	$u   =  $sessionUserId = $_COOKIE["c_uid"];
	if( $tok && $tok == md5( getPasswdForUser( $u )) ) {

	$debug = 0;
%>

<p />

<%
	if( $id ) {

		$qs = "UPDATE linksFeatures SET deleted = 1 WHERE ID = $id";
		if( $debug )
			echo $qs;
		$con = mysql_connect( );
		mysql_selectdb( getDBName() );

		$q = mysql_query( $qs );
		if( $q ) {
			echo "deleted the feature request...";
			if( !$debug ) {
%>
<meta http-equiv=Refresh content="1; URL=/contribute/features" />
<%
			}
		} else {
			echo "problem occurred; could not delete the request";
		}
		mysql_close( $con );
	} else {
%>

<div class="attention">
please fill out the form completely with a name and description.<br /><a href="javascript:history.go(-1);">&laquo; go back</a>.
</div>

<%
	}
} else {
	echo "you must log in to delete feature requests";
}

%>
Return current item: FeedMeLinks, Social BookmarkingSince2002