<?php
//
// SourceForge: Breaking Down the Barriers to Open Source Development
// Copyright 1999-2000 (c) The SourceForge Crew
// http://sourceforge.net
//
// $Id: users,v 1.3 2000/11/06 22:33:54 tperdue Exp $

require ('pre.php');    

$expl_pathinfo = explode('/',$REQUEST_URI);

//project name wasn't passed in the URL

if (!$expl_pathinfo[2]) {
	exit_error('Error','No User Name Provided');
}

//get the user_id based on the user_name in the URL

$res_user=user_get_result_set_from_unix($expl_pathinfo[2]);

//user was not found

if (db_numrows($res_user) < 1) {

	exit_error("Invalid User","That user does not exist.");

} else {

	//set up the group_id
	$user_id=db_result($res_user,0,'user_id');

	$user=&user_get_object($user_id,$res_user);

	//now show the project page
	include ('user_home.php');

}

?>
