Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > import/index.php
<% include_once( "../modules/utils.inc.php" );

	$u   = $sessionUserId = $_COOKIE["c_uid"];
  $tok = $authenticated = $_COOKIE["c_pass_token"];

	if( $tok && $tok == md5( getPasswdForUser( $u ))) {
		include_once( "$modules/header.inc.php" );

%>
<title> Feed Me Links : Import your Favorites </title>

<br />
<center>
	<img src="/img/import-header.gif" alt="" />
	<br />
	<img style="margin-top: 35px;" name="step" src="/img/import-step-1.gif" alt="" />
	<img style="margin-top: 90px;" src="/img/import-browse-to-begin.gif" alt="" />
</center>

<%
		# needed by multiple blocks, so define these once and the includes can all share them
		$b = get_bookmarks_info( $u );
		
		$file_name  = $b["file_name"];
		$field_name = $b["field_name"];
		$dir        = $b["dir"];
		$path       = $b["path"];

		$show_form = true;

		# if we have an upload file, prep it:
		include_once( "handle-upload.inc.php" );

		# show the upload form
		if( $show_form )
			include_once( "upload-form.inc.php" );
		
		else { # import the pending bookmarks that were just uploaded
%>
<script language="javascript">
	document.images['step'].src = '/img/import-step-2.gif';
</script>
<%
			shout( "Processing...", "Please wait while we load your file... <h1>COOL LOADING ANIMATION HERE...</h1>" );
			echo bounceTo( "/import/ready-to-import" );
		}

		include_once( "$modules/footer.inc.php" );
	} else {
		warn( "Please log in first..." );
		echo bounceTo( $site . "/login?bounceToPage=import/" );
	}
%>
Return current item: FeedMeLinks, Social BookmarkingSince2002